msjche

~/.zshrc - laptop - Arch

May 3rd, 2014
1,556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.75 KB | None | 0 0
  1. #scratch# Oh-My-Zsh
  2. ZSH=~/.oh-my-zsh
  3. ZSH_THEME="msjche" #kardan agnoster af-magic bira clean candy gentoo terminalparty
  4.  
  5. # Lines configured by zsh-newuser-install
  6. HISTFILE=~/.histfile
  7. HISTSIZE=1000
  8. SAVEHIST=1000
  9.  
  10. # Set to this to use case-sensitive completion
  11. CASE_SENSITIVE="true"
  12.  
  13. # Comment this out to disable bi-weekly auto-update checks
  14. DISABLE_AUTO_UPDATE="true"
  15.  
  16. # Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
  17. # export UPDATE_ZSH_DAYS=13
  18.  
  19. # Uncomment following line if you want to disable colors in ls
  20. # DISABLE_LS_COLORS="true"
  21.  
  22. # Uncomment following line if you want to disable autosetting terminal title.
  23. # DISABLE_AUTO_TITLE="true"
  24.  
  25. # Uncomment following line if you want red dots to be displayed while waiting for completion
  26. COMPLETION_WAITING_DOTS="true"
  27.  
  28. # Default Programs
  29. #export NMON=cmknt
  30. export EDITOR="vim"
  31. export PAGER="less"
  32. export BROWSER="dwb"
  33. export MOVPLAY="vlc"
  34. export PICVIEW="feh"
  35. export SNDPLAY="mplayer"
  36. export TERMINAL="uxterm"
  37.  
  38. # File Extensions
  39. for ext in html org php com net no; do alias -s $ext=$BROWSER; done
  40. for ext in txt tex py PKGBUID; do alias -s $ext=$EDITOR; done
  41. for ext in png jpg gif; do alias -s $ext=$PICVIEW; done
  42. for ext in mpg wmv avi mkv; do alias -s $ext=$MOVPLAY; done
  43. for ext in wav mp3 ogg; do alias -s $ext=$SNDPLAY; done
  44.  
  45. ########################################################
  46. ######################## ALIASES #######################
  47. ########################################################
  48.  
  49. ## System
  50. alias shutdown='sudo shutdown -P now'
  51. alias Stat='uname -a;systemd-analyze time;wc -l /lib/modules/$(uname -r)/modules.order;lsinitcpio -a /boot/initramfs-linux.img'
  52. alias laptop-mode='grep -r '^\(CONTROL\|ENABLE\)_' /etc/laptop-mode/conf.d'
  53. alias keys='xev'
  54. alias bub='say en beau is a bunkace'
  55. alias unblock-wireless='rfkill unblock all && ifconfig set wlp3s0 up'
  56.  
  57. ## DEs
  58. alias Gnome='sudo /home/msjche/Scripts/gnome.sh'
  59. alias Awesome='sudo /home/msjche/Scripts/awesome.sh'
  60.  
  61. ## Flash iso to usb drive
  62. #dd bs=4M if=/path/to/archlinux.iso of=/dev/sdb && sync
  63.  
  64. ## Work
  65. alias Maildownload='cp -r ~/Dropbox/.thunderbird ~'
  66. alias Mailupload='cp -r ~/.thunderbird ~/Dropbox/'
  67.  
  68. ## Fun
  69. alias aquarium='asciiquarium'
  70.  
  71. ## Bitcoin
  72. alias bc='btc'
  73.  
  74. ## Games
  75. alias sudoku='nsudoku'
  76. alias tetris='bastet'
  77. alias mario='mupen64plus --windowed ~/ROMs/N64/SuperMario64.v64'
  78. alias kart='mupen64plus --windowed ~/ROMs/N64/MarioKart64.v64'
  79. alias zelda='mupen64plus --windowed ~/ROMs/N64/Zelda64.v64'
  80. alias zeldamajora='mupen64plus --windowed ~/ROMs/N64/ZeldaMajorasMask.z64'
  81. alias ps2='pcsx2'
  82.  
  83. ## Packages
  84. alias extract='dtrx'
  85. alias gz='tar -xzf'
  86. alias xz='tar -xJf'
  87. alias bz='tar -xvjf'
  88.  
  89. ## Pacman
  90. alias UU='packer-color -Syyu'
  91. alias UUA='yaourt -Syyua --devel'
  92. alias P='packer-color'
  93. alias PI='packer-color -S'
  94. alias Y='yaourt'
  95. alias pac='sudo pacman -S'
  96. alias pac-r='sudo pacman -R'
  97. alias Log='tail -f /var/log/pacman.log'
  98.  
  99. ## Awesome
  100. alias eA='cd ~/.config/awesome && vim rc.lua'
  101. alias cdA='cd ~/.config/awesome'
  102. alias eTH='cd ~/.config/awesome/themes/holo && vim theme.lua'
  103. alias eTP='cd ~/.config/awesome/themes/powerarrow-darker && vim theme.lua'
  104. alias BG='~/Scripts/background.sh'
  105.  
  106. ## Theming
  107. alias HO='~/Scripts/Theming/holo.sh'
  108. alias PAD='~/Scripts/Theming/powerarrow-darker.sh'
  109. alias PAF='~/Scripts/Theming/powerarrowf.sh'
  110.  
  111. ## Tmux
  112. alias eT='vim ~/.tmux.conf'
  113.  
  114. ## Geeknote
  115. alias geek-new='~/Scripts/geeknote/geeknote-new-note.sh'
  116.  
  117. ## Directories
  118. alias space='ncdu'
  119. alias space-color='cdu'
  120. alias ll='ls -l'
  121. alias la='ls -ltra'
  122. alias l='ls'
  123. alias C='clear'
  124. alias se='sudo vim'
  125. alias e='vim'
  126. alias home='cd ~'
  127. alias ..='cd ..'
  128. alias ...='cd ...'
  129. alias ....='cd ....'
  130. alias .....='cd .....'
  131. alias k='exit'
  132. alias te='trash-empty'
  133. alias tl='trash-list'
  134. alias del='trash-put'
  135. alias tr='trash-rm'
  136. alias lsTrash='ls ~/.local/share/Trash/files/'
  137. alias cdTrash='cd ~/.local/share/Trash/files/'
  138. alias lD='ls ~/Downloads'
  139. alias D='cd ~/Downloads'
  140.  
  141. ## YouTube
  142. alias yt='cd ~/Downloads/YouTube'
  143. alias cleanYT='rm ~/Downloads/YouTube/*.*'
  144. alias DL='cd ~/Downloads/YouTube && youtube-dl -ic'
  145.  
  146. ## X Resources Stuff
  147. alias eX='vim ~/.Xresources'
  148. alias XTR='xrdb -merge ~/.Xresources'
  149.  
  150. ## Zsh Stuff
  151. alias eZ='vim ~/.zshrc'
  152. alias eZG='leafpad ~/.zshrc'
  153. alias eOMZ='vim ~/.oh-my-zsh/themes/msjche.zsh-theme'
  154. alias Z='source ~/.zshrc'
  155.  
  156. ## Vim Stuff
  157. alias eV='vim ~/.vimrc'
  158. alias e='vim'
  159.  
  160. ## Rip CDs
  161. alias CDinfo='cdparanoia -vsQ'
  162. alias rip='cdparanoia -B'
  163. alias mp3='for t in track{01-14}*.wav; do lame -b 320 $t; done'
  164.  
  165. ## Scripts
  166. alias colordump='~/Scripts/colordump.sh'
  167. alias activate='chmod 755'
  168. alias top100='/home/msjche/Scripts/top100.sh'
  169. alias time_international='/home/msjche/Scripts/time_international.sh'
  170. alias natgeo='/home/msjche/Scripts/natgeo.sh'
  171. alias ballz='python /home/msjche/Scripts/Games/Ballz.py'
  172. alias tpbs='clear && figlet -c TPB Search && ~/Scripts/tpb.sh'
  173. alias convertMTS='~/Scripts/convertMTS.sh'
  174. alias convertOGV='mencoder out.ogv -ovc lavc -oac mp3lame -o screencast.avi'
  175.  
  176. ## Transmission
  177. alias IP-update='~/Scripts/blocklist.sh'
  178. alias tsm-check='dwb http://localhost:9091/transmission/web'
  179. alias t='transmission-daemon && transmission-remote-cli'
  180. alias kT='killall transmission-daemon'
  181.  
  182. ## News and Music
  183. alias MP='ncmpcpp'
  184. alias news='newsbeuter'
  185. alias nix='cortex linux'
  186. alias pods='podbeuter'
  187. alias twit='turses'
  188. alias Pods='cd ~/Podcasts && ranger'
  189. alias music='sh ~/Scripts/music.sh & '
  190.  
  191. ## Multimedia
  192. alias irc='weechat-curses'
  193. alias M='mplayer -vo x11 -fs -zoom'
  194. alias Vids='cd ~/Downloads/.blackbox && ranger'
  195.  
  196. ## Google Calenar
  197. alias gcal-week='gcalcli --width 12 calw'
  198. alias gcal='gcalcli --width 12 calm'
  199. alias gcal-add='gcalcli quick'
  200. alias gcal-agenda='gcalcli agenda'
  201.  
  202. ## Peer Guardian
  203. alias pgl-update='pglcmd update'
  204. alias pgl-start='pglcmd restart'
  205. alias pgl-status='pglcmd status'
  206. alias pgl-dump='pglcmd stats'
  207. alias pgl-test='pglcmd test'
  208. alias pgl-stop='pglcmd stop'
  209.  
  210. ## w3m
  211. alias web='cd ~/Podcasts && w3m -cookie www.google.com'
  212.  
  213. ## Check Screencast
  214. alias FF-check-raw='mplayer ~/Screencasts/screencast.avi'
  215. alias FF-check-final='mplayer ~/Screencasts/screencast.mp4'
  216.  
  217. ## Net
  218. alias WW='wicd-curses'
  219. alias hogs='sudo nethogs wlp3s0'
  220. alias net-driftnet='echo "see pics from other computers on network" && sudo driftnet -i wlp3s0'
  221. alias net-ettercap='echo "set up interface to capture network data" && sudo ettercap -TQM arp -i wlp3s0 //'
  222. alias net-urlsnarf='echo "see which websites others on network are visiting" && sudo urlsnarf -i wlp3s0 |cut -d\" -f4'
  223. alias net-scan='sudo arp-scan -l -I wlp3s0'
  224. alias net-stat='netstat -t -v -c -ee'
  225. alias net-traf='sudo iptraf-ng'
  226. alias net-bmon='bmon'
  227. alias net-dump='sudo tcpdump -i wlp3s0'
  228. alias net-wifi='wavemon'
  229. alias net-nmon='nmon'
  230. alias net-speedtest='speedtest-cli'
  231. alias iftop='sudo iftop -p -n'
  232. alias slurm='slurm -i wlp3s0'
  233.  
  234. ## Power
  235. alias bat='acpi'
  236. alias bat-all='acpi -V'
  237. alias power='powertop'
  238.  
  239. ## Misc
  240. alias biguns='~/Scripts/biguns.sh'
  241. alias flux='xflux -z 94596'
  242. alias X='xscreensaver &'
  243. alias kX='pkill xscreensaver'
  244. alias kF='pkill xflux'
  245. alias pic='tiv'
  246. alias clock='tty-clock -c -C 4'
  247. alias clock-graph='clockywock'
  248. alias date-time='watch -n 1 -t date'
  249. alias stopwatch='echo "cntl-z to end" & time cat'
  250. alias starwars='telnet towel.blinkenlights.nl'
  251. alias info='inxi -F'
  252. alias cap='cd ~/Screencasts/screenshots && scrot -d 4'
  253. alias rip='abcde'
  254. alias vidterm='mplayer -vo caca'
  255. alias graph='gnuplot'
  256.  
  257. ## Sparklines - CLI visualizations
  258. alias spark-earthquake='curl http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt --silent | sed '1d' | cut -d, -f9 | sparklines'
  259. alias spark-wifi='~/Scripts/wifi.sh'
  260.  
  261. ###########################################################
  262. ########################### ZSH ###########################
  263. ###########################################################
  264.  
  265. # enable vim mode on commmand line
  266. bindkey -v
  267.  
  268. # no delay entering normal mode
  269. # https://coderwall.com/p/h63etq
  270. # https://github.com/pda/dotzsh/blob/master/keyboard.zsh#L10
  271. # 10ms for key sequences
  272. KEYTIMEOUT=1
  273.  
  274. # show vim status
  275. # http://zshwiki.org/home/examples/zlewidgets
  276. function zle-line-init zle-keymap-select {
  277. RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
  278. RPS2=$RPS1
  279. zle reset-prompt
  280. }
  281. zle -N zle-line-init
  282. zle -N zle-keymap-select
  283.  
  284. # add missing vim hotkeys
  285. # fixes backspace deletion issues
  286. # http://zshwiki.org/home/zle/vi-mode
  287. bindkey -a u undo
  288. bindkey -a '^R' redo
  289. bindkey '^?' backward-delete-char
  290. bindkey '^H' backward-delete-char
  291.  
  292. # history search in vim mode
  293. # http://zshwiki.org./home/zle/bindkeys#why_isn_t_control-r_working_anymore
  294. bindkey -M viins '^s' history-incremental-search-backward
  295. bindkey -M vicmd '^s' history-incremental-search-backward
  296.  
  297. ###########################################################
  298. ######################## FUNCTIONS ########################
  299. ###########################################################
  300.  
  301. # Best of YouTube
  302. bestofyoutube() { cd ~/Downloads/YouTube && ~/Scripts/bestofyoutube.sh }
  303.  
  304.  
  305. # Simple python HTTP server
  306. server() { python3 -m http.server ;}
  307.  
  308. # Hacker top
  309. hacker-top() { python ~/Scripts/hacker-top/hacker_top.py ;}
  310.  
  311. # Reddit top
  312. reddit-top() { python ~/git/reddit-top/reddit_top ;}
  313.  
  314. # Transmission
  315. T() { ~/Scripts/blocklist.sh && transmission-daemon && sleep 3 && transmission-remote-cli ;}
  316.  
  317. # Pirate Bay search
  318. tpb() { clear && figlet -c Pirate Bay && ~/Scripts/tpb.sh ;}
  319.  
  320. # Torrentz.eu search
  321. torrentzeu() { clear && figlet -c Torrentz EU && ~/Scripts/torrentzeu.sh ;}
  322.  
  323. # YouTube Viewer
  324. yt-viewer() { clear && figlet -c YouTube Viewer && youtube-viewer ;}
  325.  
  326. # No video / music only
  327.  
  328. yt-listen() { clear && figlet -c YouTube Listen && youtube-viewer -n $@ ;}
  329.  
  330. # Pianobar - ncurses Pandora Radio client
  331. pandora-cli() { clear && figlet -c Pandora CLI && pianobar ;}
  332.  
  333. # PMS- ncurses Spotify client
  334. spotify-cli() { clear && cd ~/Music && figlet -c Spotify CLI && python3 ~/Scripts/pms/pms.py ;}
  335.  
  336. # Grooveshark CLI
  337. groove-dl-cli() { cd grooveshark && clear && figlet -c Grooveshark && groove-dl ;}
  338.  
  339. ## Vim help page
  340. :h() { vim +":h $1" +'wincmd o' +'nnoremap q :q!<CR>' ;}
  341.  
  342. ## Command-line calculator
  343. calc() { python -ic "from __future__ import division; from math import *; from random import *" ;}
  344.  
  345. ## Commandline Fu
  346. cmdfu() { curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" \
  347. | sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext" ;}
  348.  
  349. ##Check if websites are down
  350. down4me() { curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g';}
  351.  
  352. ###########################################################
  353. ######################## WIRELESS #########################
  354. ###########################################################
  355.  
  356. # Check if mon0 is up: ifconfig
  357. # airmon-ng
  358.  
  359. #====================================================================================
  360.  
  361. #airodump-ng --bssid "BSSIDTargetNetwork" -w my_wpa -c "ChannelTarget" mon0
  362. AD() { cd /home/msjche/Wireless/active && airodump-ng wlp3s0 ;}
  363.  
  364. # Read:
  365. #BSSID: 08:86:3B:DF:05:06
  366. #ESSID: Smith network1_xt
  367. #Channel: 9
  368. #Interface: mon0
  369.  
  370. #====================================================================================
  371.  
  372. #airodump-ng --bssid "BSSIDTargetNetwork" -w my_wpa -c "ChannelTarget" mon0
  373. ADB() { cd /home/msjche/Wireless/active && rm my_wpa* && airodump-ng --bssid "$1" -w my_wpa -c "$2" wlp3s0 ;}
  374.  
  375. # Read:
  376. #Their MAC Address: 2C:B0:5D:CB:6F:3F
  377. #Their Station: 38:AA:3C:5F:C9:1D
  378.  
  379. #====================================================================================
  380.  
  381. # Get salted hash
  382.  
  383. #aireplay-ng -0 -o 15 channel -a "BSSIDTargetNetwork" -c "TheirStationMAC" mon0
  384. AR() { cd /home/msjche/Wireless/active && aireplay-ng -0 15 -a "$1" -c "$2" wlp3s0 ;}
  385.  
  386. #====================================================================================
  387. # now crack
  388. # IMPORTANT - Must run AR() while running this!!
  389. #aircrack-ng -e "ESSIDinQuotes" -w "PathToWordList" "PathToX.capFromAirodump"
  390. AC() { md /home/msjche/Wireless/active && aircrack-ng -e "$1" -w /home/msjche/Wireless/WordListCollection/oCustom-WPA.txt /home/msjche/Wireless/active/my_wpa-01.cap ;}
  391.  
  392.  
  393. ###########################################################
  394. ###################### TRANSMISSION #######################
  395. ###########################################################
  396.  
  397. tsm-clearcompleted() {
  398. transmission-remote -l | grep 100% | grep Done | \
  399. awk '{print $1}' | xargs -n 1 -I % transmission-remote -t % -r ;}
  400. tsm() { transmission-remote --list ;}
  401. tsm-start() { transmission-daemon ;}
  402. tsm-stop() { pkill tramsmission-daemon ;}
  403. tsm-altspeedenable() { transmission-remote --alt-speed ;}
  404. tsm-altspeeddisable() { transmission-remote --no-alt-speed ;}
  405. tsm-add() { transmission-remote --add "$1" ;}
  406. tsm-askmorepeers() { transmission-remote -t"$1" --reannounce ;}
  407. tsm-pause() { transmission-remote -t"$1" --stop ;}
  408. tsm-start-torrent() { transmission-remote -t"$1" --start ;}
  409. tsm-purge() { transmission-remote -t"$1" --remove-and-delete ;} # will delete data also
  410. tsm-remove() { transmission-remote -t"$1" --remove ;} # does not delete data
  411. tsm-info() { transmission-remote -t"$1" --info ;}
  412. tsm-speed() { while true;do clear; transmission-remote -t"$1" -i | grep Speed;sleep 1;done ;}
  413.  
  414. ###########################################################
  415. ######################### FFMPEG ##########################
  416. ###########################################################
  417.  
  418. ffx_MONO="1" # mono
  419. ffx_DUAL="2" # dual channel
  420. ffx_HW="hw:1,0" # alsa; run 'cat /proc/asound/pcm' to change to the correct numbers
  421. ffx_PULSE="pulse" # pulseaudio; might have to install pavucontrol to change volume
  422. ffx_FPS="30" # frame per seconds
  423. ffx_WIN_FULL="1920x1080" # record fullscreen
  424. ffx_AUDIO="pcm_s16le" # audio codec
  425. ffx_VIDEO="libx264" # video codec
  426. ffx_PRESET="ultrafast" # preset error? run 'x264 -h' replace with fast,superfast, slow ..etc
  427. ffx_CRF="0"
  428. ffx_THREADS="0"
  429. ffx_SCALE="scale=1920x1080" # scale resolution, no black bars on sides of video on youtube
  430. ffx_OUTPUT=~/Screencasts/screencast.avi
  431. ffx_OUTPUT_FINAL=~/Screencasts/screencast.mp4
  432. # Note: -vf is optional delete if you want, -y is to overwrite existing file
  433.  
  434. ## Concatinate (combine) two or more videos
  435. #ffmpeg -i "concat:input1.avi|input2.avi..." -c copy output.avi
  436.  
  437. FF-full() {
  438. ffmpeg \
  439. -f alsa \
  440. -ac $ffx_MONO \
  441. -i $ffx_PULSE \
  442. -f x11grab \
  443. -r $ffx_FPS \
  444. -s $ffx_WIN_FULL \
  445. -s 1920x1080 \
  446. -i :0.0 \
  447. -acodec $ffx_AUDIO \
  448. -vcodec $ffx_VIDEO \
  449. -preset $ffx_PRESET \
  450. -crf $ffx_CRF \
  451. -threads $ffx_THREADS \
  452. -vf $ffx_SCALE \
  453. -y $ffx_OUTPUT \
  454. }
  455.  
  456. # capture single window, use mouse cursor to select window you want to record
  457. FF-window() {
  458. ffx_INFO=$(xwininfo -frame)
  459. ffmpeg \
  460. -f alsa \
  461. -ac $ffx_MONO \
  462. -i $ffx_PULSE \
  463. -f x11grab \
  464. -r $ffx_FPS \
  465. -s $(echo $ffx_INFO \
  466. | grep -oEe 'geometry [0-9]+x[0-9]+'\
  467. | grep -oEe '[0-9]+x[0-9]+') \
  468. -i :0.0+$(echo $ffx_INFO | grep \
  469. -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' \
  470. | grep -oEe '[0-9]+\+[0-9]+' | sed \
  471. -e 's/\+/,/' ) \
  472. -acodec $ffx_AUDIO \
  473. -vcodec $ffx_VIDEO \
  474. -preset $ffx_PRESET \
  475. -crf $ffx_CRF \
  476. -threads $ffx_THREADS \
  477. -y $ffx_OUTPUT \
  478. }
  479.  
  480. FF-convert() {
  481. ffmpeg \
  482. -i $1 \
  483. -ar 22050 \
  484. -ab 32k \
  485. -strict -2 \
  486. $ffx_OUTPUT_FINAL
  487. }
  488.  
  489. Convert2mp4() {
  490. ffmpeg \
  491. -i $1 \
  492. -ar 22050 \
  493. -ab 32k \
  494. -strict -2 \
  495. output.mpeg
  496. }
  497.  
  498.  
  499.  
  500. ## Check Internal and External IPs ##
  501. my-ip() {
  502. echo "--------------- Network Information ---------------"
  503. # newer system like arch
  504. #ip addr | awk '/global/ {print $1,$2}' | cut -d\/ -f1
  505. #ip addr | awk '/global/ {print $3,$4}'
  506. #ip addr | awk '/ether/ {print $1,$2}'
  507. #ip addr | awk '/scope link/ {print $1,$2}' | cut -d\/ -f1
  508. # older system like debian
  509. ifconfig | awk '/inet addr/ {print $1,$2}' | awk -F: '{print $1,$2}'
  510. ifconfig | awk '/Bcast/ {print $3}' | awk -F: '{print $1,$2}'
  511. ifconfig | awk '/inet addr/ {print $4}' | awk -F: '{print $1,$2}'
  512. ifconfig | awk '/HWaddr/ {print $4,$5}'
  513. ifconfig | awk '/Scope:Link/ {print $1,$3}' | cut -d\/ -f1
  514. echo Current IP $(curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+")
  515. echo "---------------------------------------------------"
  516. }
  517.  
  518. ## Google Translate Functions ##
  519. say() {
  520.  
  521. mplayer -user-agent Mozilla \
  522. "http://translate.google.com/translate_tts?ie=UTF-8&tl="$1"&q=$(echo "$@" \
  523. | cut -d ' ' -f2- | sed 's/ /\+/g')" > /dev/null 2>&1 ;}
  524.  
  525. say-translation() {
  526.  
  527. lang=$1
  528. trans=$(translate {=$lang} "$(echo "$@" | cut -d ' ' -f2- | sed 's/ /\+/g')" )
  529. echo $trans
  530. mplayer -user-agent Mozilla \
  531. "http://translate.google.com/translate_tts?ie=UTF-8&tl=$lang&q=$trans" > /dev/null 2>&1 ;}
  532.  
  533. ##############################################################
  534. ########################## PODCASTS ##########################
  535. ##############################################################
  536.  
  537. nvlc-podcast() { nvlc --no-color -S podcast --podcast-urls "$@" ;}
  538. pods-LinuxActionShow() { nvlc-podcast "http://feeds.feedburner.com/computeractionshowvideo" ;}
  539. pods-Unfiltered() { nvlc-podcast "http://www.jupiterbroadcasting.com/feeds/unfilterHD.xml" ;}
  540. pods-Scibyte() { nvlc-podcast "http://feeds.feedburner.com/scibytelarge " ;}
  541. pods-RonPaul() { nvlc-podcast "https://www.google.com/url?q=http://www.ronpaul2012podcast.com/feed/&sa=U&ei=h8NIUbzfJoXJiQL4uoCoDw&ved=0CDYQFjAI&sig2=N2y3rxIlKxYDRI-Z9U8yRw&usg=AFQjCNGmGih9EAkV2JfSw2Nj64V90Jk5qg" ;}
  542. pods-StefanMolyneux() { nvlc-podcast "http://feeds.feedburner.com/FreedomainRadioVolume6" ;}
  543. pods-JoeRoganExperience() { nvlc-podcast "htthttp://joeroganexp.joerogan.libsynpro.com/irssp://joeroganexp.joerogan.libsynpro.com/irss" ;}
  544. pods-FreedomFeens() { nvlc-podcast "http://www.freedomfeens.com/feed/" ;}
  545. pods-GoldMoneyVideos() { nvlc-podcast "http://feeds.feedburner.com/GoldmoneyRssFeedGoldVideos" ;}
  546. pods-GoldMoneyPodcasts() { nvlc-podcast "http://feeds.feedburner.com/GoldmoneyFoundationPodcasts" ;}
  547. #pod-() { nvlc-podcast "" ;}
  548.  
  549. ##############################################################
  550. ######################## LIVE STREAMS ########################
  551. ##############################################################
  552.  
  553. TV-m() { livestreamer -p mplayer "$1" best ;}
  554. TV-v() { livestreamer -p vlc "$1" best ;}
  555.  
  556. # News
  557. live-news-cnn() { livestreamer -p mplayer http://www.justin.tv/msnbc_live_stream_cnn#/w/5008673600 live ;}
  558. live-news-cnn_international() { livestreamer -p mplayer http://www.justin.tv/rentadrone_cnbc#/w/5011049360/22 live ;}
  559. live-news-cbs() { livestreamer -p mplayer http://www.ustream.tv/cbsnews live ;}
  560. live-news-fox() { livestreamer -p mplayer http://www.justin.tv/newswatch_2#/w/5013818384/5 live ;}
  561. live-news-prisonplanet() { livestreamer -p mplayer http://www.ustream.tv/channel/alex-jones---infowars-com---prisonplanet-tv live ;}
  562. live-news-KRON_San_Francisco() { livestreamer -p mplayer http://www.ustream.tv/kron4news best ;}
  563. live-news-The_FED() { livestreamer -p mplayer http://www.ustream.tv/federalreserve live ;}
  564.  
  565. # Series
  566. live-series-simpsons() { livestreamer -p mplayer http://www.justin.tv/arconai_244#/w/5013781232/19 live ;}
  567. live-series-southpark() { livestreamer -p mplayer http://www.justin.tv/arconai_229#/w/5622202400/179 best ;}
  568. live-series-survival() { livestreamer -p mplayer http://www.justin.tv/survivor101#/w/5531579536/12 best ;}
  569. live-series-criminal_minds() { livestreamer -p mplayer http://www.justin.tv/lurking_in_the_dark17 live ;}
  570. live-series-mythbusters() { livestreamer -p mplayer best ;}
  571. live-series-married_with_children() { livestreamer -p mplayer http://www.justin.tv/mwconjtv#/w/4992184096/88 live ;}
  572. live-series-stargate_SG1() { livestreamer -p mplayer http://www.justin.tv/oldngr8#/w/5006964064/9 live ;}
  573. live-series-that_70s_show() { livestreamer -p mplayer http://www.justin.tv/highspothorror128#/w/4994695216/102 live ;}
  574.  
  575. # Science
  576. live-science-the_universe() { livestreamer -p mplayer http://www.justin.tv/the_lost_continent#/w/5005014000/48 live ;}
  577.  
  578. # Movies
  579.  
  580. #live-movies-horror-2000_2013_HQ() { livestreamer -p mplayer http://www.justin.tv/horrorhq0010#/w/5074870864/20 live ;}
  581. live-movies-horror4life() { livestreamer -p mplayer http://www.justin.tv/finn_horrorstfu51 live ;}
  582. #live-movies-horror-2() { livestreamer -p mplayer http://www.justin.tv/jags__movies04#/w/5008275648/4 live ;}
  583.  
  584. live-movies-new_releases-2010_2013() { livestreamer -p mplayer http://www.justin.tv/videoisnothere6 live ;}
  585. #live-movies-new_releases-2012_2013_HQ() { livestreamer -p mplayer http://www.justin.tv/movies_tv68#/w/5056426000/115 live ;}
  586. live-movies-movies_2010_2013() { livestreamer -p mplayer http://www.justin.tv/gewinnen_duh_bringen live ;}
  587.  
  588. live-movies-general() { livestreamer -p mplayer http://www.justin.tv/420nomad554 live ;}
  589. #live-movies-general-movies_n_that() { livestreamer -p mplayer http://www.justin.tv/walterkronic#/w/5013245536/8 live ;}
  590.  
  591.  
  592.  
  593. ## Capture video streams
  594.  
  595. sniff-begin() { sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT ;}
  596. sniff-capture-rtmpsrv() { rtmpsrv ;}
  597. sniff-end() { sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT ;}
  598.  
  599. ## Rtmpsrv Feeds (may need to add -v before -r)
  600.  
  601. # Jupiter Broadcasting
  602. live-JupiterBroadcasting() { vlc rtsp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream }
  603.  
  604.  
  605. # Russia Today US
  606. iptv-RT_US() { rtmpdump \
  607. -r "rtmp://rt.fms-04.visionip.tv/live" \
  608. -a "live" \
  609. -f "LNX 11,2,202,270" \
  610. -W "http://rt.com/s/swf/player5.4.viral.swf" \
  611. -p "http://rt.com" -y "RT_US_2" \
  612. | mplayer - ;}
  613.  
  614. # Bloomberg
  615. iptv-Bloomberg() { rtmpdump \
  616. -v \
  617. -r rtmp://cp116697.live.edgefcs.net:80/live/BnazlkNDpCIcD-QkfyZCQKlRiiFnVa5I_640_360_440@18679 \
  618. -W http://player.ooyala.com/cacheable/c78f866930724ffedfe8cf5349712569/player_v2.swf \
  619. -p http://tvpc.com \
  620. | mplayer - ;}
  621.  
  622. # MSNBC
  623. iptv-MSNBC() { rtmpdump \
  624. -v \
  625. -r "rtmp://a.cdn.msnbclive.eu/edge" \
  626. -y "msnbc_live" \
  627. -W "http://msnbclive.eu/getswf.php?name=player.swf" \
  628. -p "http://www.rentadrone.tv/msnbc-live-rockinroosters/" \
  629. | mplayer - ;}
  630.  
  631. # Rueters
  632. iptv-Rueters() { rtmpdump \
  633. -r "rtmp://media9.lsops.net/reuters/" \
  634. -a "reuters/" -W "http://reuters.cdn.livestation.com/flash/player/5.7/player.swf" \
  635. -p "http://reuters.livestation.com/demo" \
  636. --live \
  637. -y "reuters_rlsweba_en_veryhigh.sdp" \
  638. | mplayer -;}
  639.  
  640. ##########################################################
  641. ########################## MODS ##########################
  642. ##########################################################
  643.  
  644.  
  645.  
  646. plugins=(git archlinux vi-mode themes zsh-completions color-command)
  647. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  648. source $ZSH/oh-my-zsh.sh
  649.  
  650. clear && archey3
Add Comment
Please, Sign In to add comment