Advertisement
metalx1000

zshrc.local 2015

Mar 25th, 2015
798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.83 KB | None | 0 0
  1. alias blender="/usr/local/bin/blender/blender"
  2. export PATH=$PATH:/sbin
  3. browser="google-chrome"
  4. browser2="midori"
  5. editor="vim"
  6.  
  7. archive(){
  8.  
  9.   $browser https://www.flickr.com/photos/upload/
  10.   $browser https://archive.org/upload/
  11.   $browser https://vimeo.com/upload
  12.   $browser http://www.dailymotion.com/upload
  13.   $browser https://www.youtube.com/upload
  14.   $browser https://plus.google.com/photos
  15.  
  16.   #$browser2 https://www.youtube.com/upload &
  17.   #$browser2 https://plus.google.com/photos &
  18. }
  19.  
  20. credit(){
  21.   $browser https://www.discover.com/
  22.   $browser https://www.chase.com/
  23.   $browser https://rcam.target.com/
  24.   $browser https://www.americanexpress.com/
  25.   $browser https://www.suncoastcreditunion.com/
  26. }
  27.  
  28. my_update(){
  29.   echo "Getting My Scripts..."
  30.   dir="/usr/local/bin/"
  31.   git="https://raw.githubusercontent.com/metalx1000/"
  32.   url="${git}MyBin/master/linux/shell/"
  33.   tmp_sh="/tmp/go.sh"
  34.  
  35.   scripts=("comic2html" "get_pastebin" "get_github" "make_chrome" "ps1_remote" "make_phaser")
  36.   for i in "${scripts[@]}"
  37.   do
  38.     echo "Getting $i"
  39.     sudo rm "${dir}${i}"
  40.     sudo wget "${url}${i}.sh" -O "${dir}${i}" -q
  41.     sudo chmod +x "${dir}${i}"
  42.   done
  43.  
  44.   rm "$tmp_sh"
  45.   wget "${git}HTML-Starters/master/installer.sh" -O "$tmp_sh" -q
  46.   chmod +x "$tmp_sh"
  47.   sudo "$tmp_sh"
  48.   rm "$tmp_sh"
  49.  
  50. }
  51.  
  52. rcget(){
  53.   mv $HOME/.zshrc.local /tmp/rc_$(date +%s)
  54.   wget "http://pastebin.com/raw.php?i=x7CxJRdk" -O $HOME/.zshrc.local
  55.   dos2unix $HOME/.zshrc.local
  56.   zsh
  57. }
  58.  
  59. rcadd(){
  60.   cat $HOME/.zshrc.local|xclip
  61.   $browser "http://pastebin.com/edit.php?i=x7CxJRdk"
  62. }
  63.  
  64. plus_photos(){
  65. #resized photo for backing up to Google+
  66. #saves on space
  67. dir="upload"
  68. mkdir "$dir"
  69. for i in `ls *.{jpg,jpeg,png,JPG} 2> /dev/null`
  70. do
  71.   echo "Resizing $i..."
  72.   convert -resize 2048 "$i" "$dir/$i"
  73. done
  74.  
  75. $browser "https://plus.google.com/photos"
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement