Guest
Public paste!

Stythys

By: a guest | Jun 14th, 2008 | Syntax: None | Size: 5.67 KB | Hits: 1,633 | Expires: Never
Copy text to clipboard
  1. reset=`tput sgr0`
  2. bold='\E[1m'
  3. boldoff='\E[0m'
  4. white='\E[37m'
  5. black='\E[30;47m'
  6. red='\E[31m'
  7. green='\E[32m'
  8. yellow='\E[33m'
  9. blue='\E[34m'
  10. magenta='\E[35m'
  11. cyan='\E[36m'
  12. alias rm='junk'
  13. alias ls='ls --color=auto'
  14. alias yaupa='sudo yaourt -Syu --aur'
  15. alias yaup='sudo yaourt -Syu'
  16. alias yain='sudo yaourt -S'
  17. alias yaout='sudo yaourt -Rns'
  18. alias yas='sudo yaourt -Ss'
  19. alias ya='sudo yaourt'
  20. alias pacup='sudo pacman-color -Syu'
  21. alias pacin='sudo pacman-color -S'
  22. alias pacout='sudo pacman-color -R'
  23. alias pacs='sudo pacman-color -Ss'
  24. alias pac='sudo pacman-color'
  25. alias pacsync='sudo pacman-color -Sy'
  26. alias ddclient='sudo ddclient'
  27. alias wlan0-up='sudo iwconfig wlan0 essid Bolton_Home'
  28. alias backup-config='sudo cp /etc/rc.conf /media/disk/Files/config && sudo cp /etc/pacman.conf /media/disk/Files/config && sudo cp /home/syth/.bashrc /media/disk/Files/config/bashrc && sudo cp /etc/X11/xorg.conf /media/disk/Files/config && sudo cp /home/syth/.conkyrc /media/disk/Files/config/conkyrc && sudo cp /home/syth/.archnotify.py /media/disk/Files/config/archnotify.py && sudo cp -a ~/.config/openbox/* /media/disk/Files/config && rsync --delete -av /media/disk/Files/config/ root@twilightlair.net:/var/www/vhosts/twilightlair.net/httpdocs/files/config'
  29. alias backup-sol='cp "/home/syth/.wine/drive_c/windows/profiles/syth/Application Data/Macromedia/Flash Player/#SharedObjects/VF9TE2R8/localhost/n_v14b_userdata.sol" /media/disk/Files/'
  30. alias update-repo='rsync --delete -av /home/ABS/packages/ root@twilightlair.net:/var/www/vhosts/twilightlair.net/httpdocs/files/arch/twilightlair'
  31. alias update-site='rsync -av /home/httpd/website/ root@twilightlair.net:/var/www/vhosts/twilightlair.net/httpdocs'
  32. alias mount-twilightlair='sshfs root@twilightlair.net:/ /mnt/twilightlair'
  33. alias add-syth='useradd -G bin,daemon,disk,wheel,games,network,audio,video,optical,users,locate syth && passwd syth'
  34. alias initial-setup='add-syth && vi /etc/fstab && mkdir /media/disk && mount /dev/sdb1 && cp /media/disk/Files/rc.conf /etc/rc.conf && ndiswrapper -i /media/disk/Files/netmw245.inf && cp /media/disk/Files/pacman.conf /etc/pacman.conf && cp /media/disk/Files/sudoers /etc/sudoers && visudo && cp -a /media/disk/home/* /home/ && reboot'
  35. alias initial-install='pacman -Syuf && pacman -Sf conky-svn mpd slim archlinux-themes-slim abs gmpc sshfs scite apache screen ddclient yaourt xorg gnome-terminal nautilus-cd-burner nautilus lib-compat xf86-video-intel xchat-gnome vlc vlc-plugin visparted-svn unzip nautilus-locked-folder claws-mail claws-mail-extra-plugins spamassassin compiz-decorator-gtk skype recorder qbittorrent gtk-recordmydesktop gettext pacbuilder-svn pkgman pidgin phun pactools mpc perl-mime-lite pacman-color nvu ncftp namcap mumble hwd hamachi gstreamer0.10-ffmpeg gstreamer0.10-bad-plugins trickle gstreamer0.10-ugly-plugins glade gimp gdm flashplugin firefox-spookyet findbrokenpkgs filezilla ecere-sdk curlftpfs bash-completion freeorion glob2 teeworlds tremulous openbox stalonetray obconf obmenu feh xloadimage gnome-power-manager gnome-control-center gnome-desktop gnome-icon-theme gmrun lxappearance notification-daemon libnotify gnome-media gnome-mime-data gnome-mount gnome-screensaver gnome-session gnome-settings-daemon gnome-themes gnome-volume-manager libgail-gnome metacity aurvote audacity archassistant alsa-utils alsa-plugins alacarte xaralx gnochm dia giflib wine'
  36. start()
  37. {
  38.   for arg in $*; do
  39.     sudo /etc/rc.d/$arg start
  40.   done
  41. }
  42. restart()
  43. {
  44.   for arg in $*; do
  45.     sudo /etc/rc.d/$arg restart
  46.   done
  47. }
  48. stop()
  49. {
  50.   for arg in $*; do
  51.     sudo /etc/rc.d/$arg stop
  52.   done
  53. }
  54. logs-pidgin(){
  55.   echo
  56.   echo -ne ""$bold"string: "$reset""; read string; echo
  57.   echo -e "1) Jabber\n2) AIM\n3) MSN\n"
  58.   echo -ne ""$bold"protocol: "$boldoff""; read protocol; echo
  59.   case "$protocol" in
  60.     1) pro1='jabber'; pro2='twilight.lair@gmail.com' ;;
  61.     2) pro1='aim'; pro2='twilightlair0' ;;
  62.  
  63.     3) pro1='msn'; pro2='twilight.lair@gmail.com' ;;
  64.   esac
  65.   case $protocol in
  66.     1)
  67.     echo -e "1) Fed\n2) Greg\n3) Cameron\n4) Jared\n"
  68.     echo -ne ""$bold"buddy: "$boldoff""; read buddy; echo
  69.     case "$buddy" in
  70.       1) handle='mazzini.theomnipotentone@gmail.com' ;;
  71.       2) handle='gregtheturtle@gmail.com' ;;
  72.       3) handle='postophagus@gmail.com' ;;
  73.       4) handle='acopatemydonut@gmail.com' ;;
  74.     esac ;;
  75.     2)
  76.     echo -e "1) CokaznQuatre\n2) Jared\n"
  77.     echo -ne ""$bold"buddy: "$boldoff""; read buddy; echo
  78.     case "$buddy" in
  79.       1) handle='cokaznquatre' ;;
  80.       2) handle='bikesk8run' ;;
  81.     esac ;;
  82.     3)
  83.     echo -e "1) Dan\n2) Evlesoa\n"
  84.     echo -ne ""$bold"buddy: "$boldoff""; read buddy; echo
  85.     case "$buddy" in
  86.       1) handle='dan_gillan11@hotmail.co.uk' ;;
  87.       2) handle='evlesoa@hotmail.com' ;;
  88.     esac ;;
  89.   esac
  90.     grep -l """$string""" ~/.purple/logs/$pro1/$pro2/$handle/* > ~/.search
  91.   firefox ~/.search
  92. }
  93. function junk
  94. {
  95. TODAY=$(date +%d-%m-%y)
  96.  
  97. if [ ! -e $HOME/.junk/$TODAY ]
  98. then
  99.     mkdir -p $HOME/.junk/$TODAY
  100. fi
  101.  
  102. for x in $@
  103. do
  104.     mv $x $HOME/.junk/$TODAY
  105. done
  106. }
  107. note ()
  108. {
  109.         #if file doesn't exist, create it
  110.         [ -f $HOME/.notes ] || touch $HOME/.notes
  111.  
  112.         #no arguments, print file
  113.         if [ $# = 0 ]
  114.         then
  115.                 cat $HOME/.notes
  116.         #clear file
  117.         elif [ $1 = -c ]
  118.         then
  119.                 > $HOME/.notes
  120.         #add all arguments to file
  121.         else
  122.                 echo "$@" >> $HOME/.notes
  123.         fi
  124. }
  125. PS1='\[\e[1;35m\]\u\[\e[m\] \[\e[1;34m\]\W\[\e[m\] \[\e[1;31m\]> \[\e[0m\]'
  126. PS2='>'
  127. echo -e "                Welcome to ${bold}Arch Linux${boldoff}"
  128. sleep 1
  129. clear
  130. #source ~/.custom-prompt.sh
  131. if [ -f /etc/bash_completion ]; then
  132.     . /etc/bash_completion
  133. fi