Browse Miscellaneous Aliases

alias upgrade='apt-get update && apt-get upgrade && apt-get clean'
alias freq='cut -f1 -d" " ~/.bash_history | sort | uniq -c | sort -nr | head -n 30'
alias tm='ps -ef | grep'
for i in $(ls ~/script); do alias s_$i='sh ~/script/$i';done;
alias dist-upgrade="sudo apt-get -qq update ; sudo apt-get dist-upgrade --assume-yes --force-yes"
alias tube='display http://www.tfl.gov.uk/assets/downloads/standard-tube-map.gif'
alias please="sudo"
alias update-aliases="wget -q -O - \"$@\" https://alias.sh/user/$ALIAS_SH_USER_ID/alias > ~/.zsh_alias_sh && source ~/.zsh_alias_sh"
 
function adal {
desc="ADD DESCRIPTION..."
if [ -n "$3" ]; then
desc="$3"
fi  
echo "" >> ~/.bash_aliases
echo "###" >> ~/.bash_aliases
echo "##
 
$desc" >> ~/.bash_aliases
echo "#" >> ~/.bash_aliases
echo "" >> ~/.bash_aliases
echo "alias '$1'='$2'" >> ~/.bash_aliases
source ~/.bash_aliases
echo "" && echo "- Alias added -" && echo ""
}
alias update='asciiart_update && arch_news && echo -e "\\e[01;31m> Mise à jour\\e[00m" && yaourt -Syua'
 
arch_news () {echo -e "\n\\e[01;31m> News Archlinux.fr\\e[00m\n$(curl -s archlinux.fr/feed | sed '/<title\|<pubDate/!d;s/\t*//g;s/<\/*title>/ - /g;s/[0-9]*:.*/\\e[00m/g;s/&#8217;/'"'"'/g;s/&#8211;/-/g;/Archlinux.fr/d;s/intervention manuelle requise/\\033[1;33mintervention manuelle requise\\e[00m/g;' | sed 'N;s/\n<pubDate>/\\033[1;34m/g;P;D;') \n"} #'
 
asciiart_update () {echo ''
echo -e "\\033[1;33m  | |   |  |- _ \\033[0;02m"
echo -e "\\033[1;33m  |_||)(|(||_(/_\\033[0;02m"
echo -e "\\033[1;33m     |          \\033[0;02m"}
alias wotgobblemem='ps -o time,ppid,pid,nice,pcpu,pmem,user,comm -A | sort -n -k 6 | tail -15'
remotediff () {
  vimdiff <(curl -s $1) <(curl -s $2)
}
n (){
($* ; notify-send "Command over" "$*")
}
fkill(){
    ps aux | grep "$1" | grep -v grep | awk '{print $2;}' | while read p; do kill -9 $p; done
}
 

Pages