knock

Handy script

Copyright Chris Terry
BSD license
Relies on "nail" on local and "sysstat" on remote



#!/bin/bash

TIMESTAMP=`date +%Y%m%d-%H%M%S`
DATESTAMP=`date +%Y%m%d`
SUBJECT="FAIL at $TIMESTAMP"
SENDER="tuba_man@livejarnal.com"
COPIES="myotheraddress@gmail.com"
RECEIVER="worried_client@comcast.net"
SERVER=`hostname`

#server defined in ~/.ssh/config
ssh server "sar -A" > /var/log/server_health/$DATESTAMP
ssh server "sar -A" > /var/log/server_health/temp

if [ $? == 0 ];
        then
                cp /var/log/server_health/temp /var/log/server_health/current
                rm /var/log/server_health/temp
                if [ -e /var/log/server_health/.mailed ]; then
                        /usr/bin/nail -S smtp=172.17.2.50 -r $SENDER -c $COPIES -s "$TIMESTAMP" $RECEIVER < /var/log/server_health/.mailed
                        rm /var/log/server_health/.mailed
                fi

        else
                #No need to do anything if system continues to stay down
                if [ ! -e /var/log/server_health/.mailed ]; then
                        cp /var/log/server_health/current /var/log/server_health/$TIMESTAMP
                        /usr/bin/nail -S smtp=172.17.2.50 -r $SENDER -c $COPIES -s "$SUBJECT" $RECEIVER < /var/log/server_health/current
                        echo "$SERVER is back up" > /var/log/server_health/.mailed
                fi
fi
knock

www.colorquiz.com

Alrighty, so I took this personality quiz from colorquiz.com and it's probably the quickest test I've ever taken on the net. It's also, suprisingly enough, the most accurate.

Quote from my results on the site:

Your Existing Situation
Avoids excessive effort and needs roots, security, and peaceful companionship.

Your Stress Sources
Delights in the tasteful, the gracious, and the sensitive, but maintains his attitude of critical appraisal and refuses to be swept off his feet unless genuineness and integrity can be absolutely vouched for. Therefore keeps a strict and watchful control on his emotional relationships as he must know exactly where he stands. Demands complete sincerity as a protection against his own tendency to be too trusting.

Your Restrained Characteristics
Trying to calm down and unwind after a period of over-agitation which has left him listless and devoid of energy. In need of peace and quiet; becomes irritable if this is denied him.
Circumstances are forcing him to compromise, to restrain his demands and hopes, and to forgo for the time being some of the things he wants.

Your Desired Objective
Desires release from an unsatisfactory situation and from existing burdens which are both depressing and intolerable. Seeking a way out, but feels there is no solution. Tries to protect himself against becoming involved in arguments and conflict.

Your Actual Problem
Needs to protect himself against his tendency to be too trusting, as he finds it is liable to be misunderstood or exploited by others. As a result, he adopts a critical and stand-offish attitude, being willing to participate only where he can be assured of sincerity and trustworthiness.


Interesting, eh?
knock

(no subject)

What the hell happened to free speech?

http://www.usatoday.com/news/washington/2005-06-22-flag-burning_x.htm?POE=NEWISVA

WASHINGTON — A constitutional amendment to ban desecration of the U.S. flag moved closer to reality Wednesday when the House of Representatives passed it 286-130.

Here's my take on it, taken from the article:

Opponents warn the amendment would alter the Bill of Rights to exclude an expression of free speech. It "elevates a symbol of freedom over freedom itself," Rep. John Conyers, D-Mich., said. "Once we decide to limit freedom of speech, limitations on freedom of the press and freedom of religion may not be far behind."

Here's what a friend of mine says, and I agree completely:
"Now, I'm all for the peremptory kicking in the arse of those who burn the US flag, but how can *I* use my freedom of speech when they can't?!"

I don't want to say more, because I'd just be ranting and repeating myself. That's all for now.
  • Current Music
    Is an Elegy - Youngblood Brass Band
knock

Rant!

Here's a bit of a rant I had in response to somebody trying to censor some extremist right-wing nutcase.



Hmm...I'm gonna go out on a limb here and support this guy's right to say what he wants, but I wouldn't mind seeing him punched in the face. This is not nearly as bad as what I heard about at morning muster yesterday.

Check this out: The sergeant comes in with a few pages of printout from a website, http://www.forsakethetroops.info/ (Formerly Citizens Against the Troops)and reads a bit from it. Now this sort of website is obviously not something I'd like to see, and I'd probably punch the author in the face myself, but the sergeant has the gall to promote the accompanying petition to congress to get this site banned from the internet. (Nevermind the fact that things just don't work like that.)

This is why I lean left. The guys on the right (like my sergeant) would like to see the speech they dislike banned. The guys on the left, although they complain and bitch, would (I hope) still prefer that the option to speak is still there.

As soon as we start putting restrictions on free speech, the "free" part becomes null and void. This is the sort of stuff that makes me glad I'm ready to fight for these rights.

Like I said when I signed the contract:
"I do solemnly swear to uphold and defend the Constitution of the United States of America against all enemies, foreign and domestic."
knock

Earthquake!

I just experienced my first earthquake! I was sitting on the crapper and everything started to move. I thought "hey, who's stomping around upstairs...waitaminute...we don't have an upstairs!" Definitely an exciting event. That's one more natural disaster that I've seen!
knock

(no subject)

Haven't updated in ages. Bwahahhahaha. Chillin' in Twentynine Palms, CA. I'm a member of the Combat Center Band. Entertaining, no?
knock

Too much music!

I can't host my music myself anymore! We're too popular for our own good, or at least for my cable modem. Over 6 gigs transferred in less than 2 days. We're looking for hosting at the moment. More info as it's available.