Advertisement
Guest User

bbox.plugin.zsh

a guest
Aug 18th, 2013
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. ## FUNZIONI ##
  2.  
  3. function sysclean()
  4. {
  5. printf "\nCLEANER: Processing apt-get clean...\n\n"
  6. sudo apt-get clean
  7. printf "\nCLEANER: clean done.\n"
  8. printf "\nCLEANER: Processing apt-get autoclean...\n\n"
  9. sudo apt-get autoclean
  10. printf "\nCLEANER: autoclean done.\n"
  11. printf "\nCLEANER: Processing apt-get autoremove...\n\n"
  12. sudo apt-get autoremove
  13. printf "\nCLEANER: autoremove done.\n"
  14.  
  15. lista="./eliminabili.txt"
  16.  
  17. printf "\nCLEANER: Generating the list of removed application's comfiguration files..."
  18. ( sudo dpkg -l | grep -E "^rc" | cut -f3 -d' ' ) > $lista
  19. printf " done. (List saved in %s)" $lista
  20.  
  21. printf "\nCLEANER: Start cleaning..."
  22. for file in $(cat $lista)
  23. do
  24. sudo dpkg --purge $file
  25. done
  26.  
  27. printf "\nCLEANER: done.\n"
  28.  
  29. }
  30.  
  31. function aspe()
  32. {
  33. #Pensaci un attimo#
  34. echo "Pensaci un attimo:"
  35. echo "Hai 10 secondi per decidere..."
  36. for i in {0..9}; do echo -ne "."; sleep 1; done
  37.  
  38. ### ENGLISH VERSION ###
  39. #Think it a moment#
  40. #echo "Think it:"
  41. #echo "You have 10 seconds..."
  42. #for i in {0..9}; do echo -ne "."; sleep 1; done
  43. }
  44.  
  45. function ripigliami()
  46. {
  47. #Quando sei perso e non sai che fare
  48. #questa funzione fa a caso tuo!!
  49. echo "Sei qui: $PWD"
  50. echo "Sei tu: `whoami` "
  51. echo "Con UID: $UID"
  52. #echo "Alle: `date '+%X' `"
  53. echo "Up: `uptime`"
  54. echo "Ce la fai?"
  55.  
  56. ### ENGLISH VERSION ###
  57. #When you are lost and you don't know
  58. #what you have to do, this is for you!!
  59. #echo "You are here": $PWD"
  60. #echo "You are: `whoami` "
  61. #echo "Whit UID: $UID"
  62. ##echo "At: `date '+%X' `"
  63. #echo "Up: `uptime`"
  64. #echo "Are you ok?"
  65.  
  66. }
  67.  
  68. #NETWORKING STUFF#
  69. alias ping="ping -c 5"
  70. alias net_lis="sudo netstat -plev"
  71. alias net_stat="sudo netstat -s"
  72. alias int_net="sudo nano /etc/network/interfaces"
  73. alias pxc="proxychains"
  74. alias mon0="sudo airmon-ng start wlan0"
  75. alias publ="curl ifconfig.me"
  76. alias publ-v="curl ifconfig.me/all"
  77. alias tmh="ssh weveg@publ.ip.lol" #Take Me Home ;)
  78. ##Att!!##
  79. #alias cert="openssl req -new -x509 -nodes -out cert.pem -keyout cert.key -days 365"
  80.  
  81.  
  82. #VARIE#
  83. alias -s {png,jpg,JPG,jpeg,PNG,gif,GIF}=xdg-open
  84. alias -s {txt,sh,php,py,pl,rb}=gedit
  85. alias -s {mp3,ogg,flac,mpg,mpeg,avi,ogm,wmv,m4v,mp4,mov}=vlc
  86. alias ora="date '+%X'"
  87. alias day="date '+%D'"
  88. alias estragz="tar -zxvf"
  89. alias estrabz="tar -jxvf"
  90. alias mktar="tar -cf"
  91. alias scrot="scrot -c -d 5"
  92. alias cl="clear"
  93. alias erase="rm -rf"
  94. alias l+="ls */**"
  95. alias -g N="> /dev/null"
  96. alias -g G="|grep "
  97. alias -g C="| ccze -A"
  98. alias -g line='| wc -l'
  99. alias -g Sn='| sort -n'
  100. alias -g Snr='| sort -nr'
  101.  
  102. alias help_me="cat ~/.mybin/help_me.txt"
  103. alias help_mod="nano ~/.mybin/help_me.txt"
  104. alias plugbox_mod="nano ~/.oh-my-zsh/plugins/bbox/bbox.plugin.zsh"
  105. alias zsource="source ~/.zshrc"
  106.  
  107. #alias flux_menu="nano ~/.fluxbox/fluxbox-menu"
  108. #alias flux_start="nano ~/.fluxbox/startup"
  109. #alias flux_app="nano ~/.fluxbox/apps "
  110.  
  111.  
  112. #YOUR TOOLS#
  113. ### PUT HERE YOUR SCRIPT SHORTCUT ###
  114. #e.g
  115. #alias metpay="sudo ~/.mybin/./MetPay.sh"
  116.  
  117. alias gerix="sudo python ~/.mybin/gerix-wifi-cracker-master/./gerix.py"
  118.  
  119. #APT#
  120. alias upd="sudo apt-get update"
  121. alias upg="sudo apt-get upgrade"
  122. alias dupg="sudo apt-get dist-upgrade"
  123. alias inst="sudo apt-get -y install"
  124. alias remov="sudo apt-get remove"
  125. alias aure="sudo apt-get autoremove"
  126. alias clean="sudo apt-get clean"
  127. alias aclean="sudo apt-get autoclean"
  128. alias casea="sudo apt-cache search"
  129. alias repo="sudo nano /etc/apt/sources.list"
  130. alias threpo="sudo nano /etc/apt/sources.list.d/backbox-three-precise.list"
  131. alias instdeb="sudo dpkg -i"
  132. alias apti="sudo aptitude"
  133.  
  134. #SYSTEM#
  135. alias tool_upd="sudo backbox-update"
  136. alias log_kern="cat /var/log/kern.log"
  137. alias log_sys="cat /var/log/syslog"
  138. alias log_auth="cat /var/log/auth.log"
  139. alias forum="firefox http://forum.backbox.org/ &"
  140. alias crypt="sudo truecrypt"
  141. alias rw-='chmod 600'
  142. alias rwx='chmod 700'
  143. alias r--='chmod 644'
  144. alias r-x='chmod 755'
  145. alias duf='du -s *(/N) | sort -nr | cut -f 2- | while read a; do du -sh "$a"; done'
  146. alias gpsea='gpg --search-keys'
  147. alias gplst='gpg --list-keys --with-fingerprint'
  148. alias gpsig='gpg --list-sigs'
  149. alias db='sudo /etc/init.d/postgresql start'
  150.  
  151. alias msf='sudo msfconsole'
  152. alias sniff='sudo ettercap -G &'
  153. alias shark='sudo wireshark &'
  154. alias anon='vidalia &'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement