#Inizializzazione rxvt echo "loading..." sleep 1 clear cowsay -f tux 'Welcome to urxvt on KinG-InFeT PC' echo "Kernel:" uname -r alias sprunger="curl -F 'sprunge=<-' http://sprunge.us" alias moc=mocp function imageshack { if [ $# == 0 ]; then echo "Usage: imageshack "; return; fi FILE=$1 EXT="`echo $FILE | awk '{split($0, a, "."); if (length(a) > 1){print a[length(a)];}}'`" if [[ "$EXT" == "" ]]; then echo "Bad Extension"; return; fi RES="`curl -s -F "fileupload=@$FILE;type=image/$EXT" http://www.imageshack.us/upload_api.php | grep "image_link" | awk '{split($0, a, ">"); split(a[2], b, "<"); print b[1]}'`" if [[ "$RES" == "" ]]; then echo "Failed to upload image"; return; else echo "$RES"; fi } function sprunge { cat $1 | sprunger } function chmod_htdocs { echo "chmod -> /opt/lampp/htdocs/" echo "loading..." sleep 1 chmod -R 777 /opt/lampp/htdocs/ echo "Complete!" } PS1="\[\033[01;31m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] "