#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 # Usage: imageshack # Upload an image on imageshack.us 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 } # Usage: sprunge # Upload the file's content on sprunge.us (PERMANENT) function sprunge { cat $1 | sprunger } # Usage: tmPaste # Upload the file's content on theworm.tx (30 Days validate) function tmpaste() { cat $1 | curl -s -F 'code=<-' paste.theworm.tw } function chmod_htdocs { echo "chmod -> /opt/lampp/htdocs/" echo "loading..." sleep 1 chmod -R 777 /opt/lampp/htdocs/ echo "Complete!" } function screen { echo "Screen.." scrot tmp.png echo "Uploading image..." imageshack tmp.png echo "Deleting image..." rm tmp.png echo "Done." } PS1="\[\033[01;31m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] "