Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## FUNZIONI ##
- function sysclean()
- {
- printf "\nCLEANER: Processing apt-get clean...\n\n"
- sudo apt-get clean
- printf "\nCLEANER: clean done.\n"
- printf "\nCLEANER: Processing apt-get autoclean...\n\n"
- sudo apt-get autoclean
- printf "\nCLEANER: autoclean done.\n"
- printf "\nCLEANER: Processing apt-get autoremove...\n\n"
- sudo apt-get autoremove
- printf "\nCLEANER: autoremove done.\n"
- lista="./eliminabili.txt"
- printf "\nCLEANER: Generating the list of removed application's comfiguration files..."
- ( sudo dpkg -l | grep -E "^rc" | cut -f3 -d' ' ) > $lista
- printf " done. (List saved in %s)" $lista
- printf "\nCLEANER: Start cleaning..."
- for file in $(cat $lista)
- do
- sudo dpkg --purge $file
- done
- printf "\nCLEANER: done.\n"
- }
- function aspe()
- {
- #Pensaci un attimo#
- echo "Pensaci un attimo:"
- echo "Hai 10 secondi per decidere..."
- for i in {0..9}; do echo -ne "."; sleep 1; done
- ### ENGLISH VERSION ###
- #Think it a moment#
- #echo "Think it:"
- #echo "You have 10 seconds..."
- #for i in {0..9}; do echo -ne "."; sleep 1; done
- }
- function ripigliami()
- {
- #Quando sei perso e non sai che fare
- #questa funzione fa a caso tuo!!
- echo "Sei qui: $PWD"
- echo "Sei tu: `whoami` "
- echo "Con UID: $UID"
- #echo "Alle: `date '+%X' `"
- echo "Up: `uptime`"
- echo "Ce la fai?"
- ### ENGLISH VERSION ###
- #When you are lost and you don't know
- #what you have to do, this is for you!!
- #echo "You are here": $PWD"
- #echo "You are: `whoami` "
- #echo "Whit UID: $UID"
- ##echo "At: `date '+%X' `"
- #echo "Up: `uptime`"
- #echo "Are you ok?"
- }
- #NETWORKING STUFF#
- alias ping="ping -c 5"
- alias net_lis="sudo netstat -plev"
- alias net_stat="sudo netstat -s"
- alias int_net="sudo nano /etc/network/interfaces"
- alias pxc="proxychains"
- alias mon0="sudo airmon-ng start wlan0"
- alias publ="curl ifconfig.me"
- alias publ-v="curl ifconfig.me/all"
- alias tmh="ssh weveg@publ.ip.lol" #Take Me Home ;)
- ##Att!!##
- #alias cert="openssl req -new -x509 -nodes -out cert.pem -keyout cert.key -days 365"
- #VARIE#
- alias -s {png,jpg,JPG,jpeg,PNG,gif,GIF}=xdg-open
- alias -s {txt,sh,php,py,pl,rb}=gedit
- alias -s {mp3,ogg,flac,mpg,mpeg,avi,ogm,wmv,m4v,mp4,mov}=vlc
- alias ora="date '+%X'"
- alias day="date '+%D'"
- alias estragz="tar -zxvf"
- alias estrabz="tar -jxvf"
- alias mktar="tar -cf"
- alias scrot="scrot -c -d 5"
- alias cl="clear"
- alias erase="rm -rf"
- alias l+="ls */**"
- alias -g N="> /dev/null"
- alias -g G="|grep "
- alias -g C="| ccze -A"
- alias -g line='| wc -l'
- alias -g Sn='| sort -n'
- alias -g Snr='| sort -nr'
- alias help_me="cat ~/.mybin/help_me.txt"
- alias help_mod="nano ~/.mybin/help_me.txt"
- alias plugbox_mod="nano ~/.oh-my-zsh/plugins/bbox/bbox.plugin.zsh"
- alias zsource="source ~/.zshrc"
- #alias flux_menu="nano ~/.fluxbox/fluxbox-menu"
- #alias flux_start="nano ~/.fluxbox/startup"
- #alias flux_app="nano ~/.fluxbox/apps "
- #YOUR TOOLS#
- ### PUT HERE YOUR SCRIPT SHORTCUT ###
- #e.g
- #alias metpay="sudo ~/.mybin/./MetPay.sh"
- alias gerix="sudo python ~/.mybin/gerix-wifi-cracker-master/./gerix.py"
- #APT#
- alias upd="sudo apt-get update"
- alias upg="sudo apt-get upgrade"
- alias dupg="sudo apt-get dist-upgrade"
- alias inst="sudo apt-get -y install"
- alias remov="sudo apt-get remove"
- alias aure="sudo apt-get autoremove"
- alias clean="sudo apt-get clean"
- alias aclean="sudo apt-get autoclean"
- alias casea="sudo apt-cache search"
- alias repo="sudo nano /etc/apt/sources.list"
- alias threpo="sudo nano /etc/apt/sources.list.d/backbox-three-precise.list"
- alias instdeb="sudo dpkg -i"
- alias apti="sudo aptitude"
- #SYSTEM#
- alias tool_upd="sudo backbox-update"
- alias log_kern="cat /var/log/kern.log"
- alias log_sys="cat /var/log/syslog"
- alias log_auth="cat /var/log/auth.log"
- alias forum="firefox http://forum.backbox.org/ &"
- alias crypt="sudo truecrypt"
- alias rw-='chmod 600'
- alias rwx='chmod 700'
- alias r--='chmod 644'
- alias r-x='chmod 755'
- alias duf='du -s *(/N) | sort -nr | cut -f 2- | while read a; do du -sh "$a"; done'
- alias gpsea='gpg --search-keys'
- alias gplst='gpg --list-keys --with-fingerprint'
- alias gpsig='gpg --list-sigs'
- alias db='sudo /etc/init.d/postgresql start'
- alias msf='sudo msfconsole'
- alias sniff='sudo ettercap -G &'
- alias shark='sudo wireshark &'
- alias anon='vidalia &'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement