Saturday, June 11, 2011

.bashrc startup script

echo "You are logged on $HOSTNAME"
echo "Additional information:$NC " ; uname -a
echo "Users logged on:$NC " ; w -h
echo "Current date :$NC " ; date
echo "Machine stats :$NC " ; uptime

NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"

if [[ $EUID == 0 ]] ; then
PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
else
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] $PWD \[\033[00m\]$ '
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] $PWD \[\033[00m\]$ '
fi


export EDITOR='nano'
export VISUAL='gedit'
set history=40

if [ "$TERM" != "dumb" ]; then
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias dir='ls -ba'
alias cls='clear'
alias mroe='more'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias ll='ls -lA --color=yes'
alias hist='history'
alias vdir='ls --color=auto --format=long'
fi

echo "Memory stats :$NC " ; free -m
echo "Disk usage :$NC " ; df -lh
echo "WiFi IP Address :$NC" ; /sbin/ifconfig wlan0 | awk '/inet/ { print $2 } ' | sed -e s/addr://

Monday, January 24, 2011

A new project for 2011

WEBSITE LINKS TO SOURCE CODE FOR UBUNTU:

Gcc/g++ ANSI C soruce code examples & more. Past versions of sorce code that work with ubuntu.

I have started A new data-bank of source code. Think of it as A Internet version of a junk yard. sure..

Famous Jr Bob Dobbs quotes:

* "Try Summum. I'm down with masturbatory pleasure."

* "You'll PAY to know what you really think."

* "They may be Pink, but their money's still green!"

* "Don't just eat that hamburger, eat the HELL out of it!"

* "You know how dumb the average person is? Well, by definition, half of 'em are even dumber than THAT."

* "I'd like my monkey brains well done."

* "So far we've had a rain day and a sun day. I think it's time for a snow day."

* "You don't use your mind to think about your religion."

* "This 'Church of the SubGenius' is the best scam I ever pulled."

* "Ivan Stang? Douglas St. Clair Smith? Who are they? I never met the guy."

* "Pull off your pants, and ROLL AROUND IN YOUR MISTAKES. Then send me your life savings."

* "Pull the wool over your own eyes."

* "Fuck `em if they can't take a joke."