msjche

~/.zshrc - laptop - Gentoo

Sep 1st, 2013
771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.98 KB | None | 0 0
  1. ## 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 EDITOR="vim"
  30. export PAGER="less"
  31. export BROWSER="dwb"
  32. export MOVPLAY="vlc"
  33. export PICVIEW="feh"
  34. export SNDPLAY="mplayer"
  35. export TERMINAL="uxterm"
  36.  
  37. # File Extensions
  38. for ext in html org php com net no; do alias -s $ext=$BROWSER; done
  39. for ext in txt tex py PKGBUID; do alias -s $ext=$EDITOR; done
  40. for ext in png jpg gif; do alias -s $ext=$PICVIEW; done
  41. for ext in mpg wmv avi mkv; do alias -s $ext=$MOVPLAY; done
  42. for ext in wav mp3 ogg; do alias -s $ext=$SNDPLAY; done
  43.  
  44. ########################################################
  45. ######################## ALIASES #######################
  46. ########################################################
  47.  
  48. ## System
  49. alias shutdown='sudo shutdown -hP now'
  50.  
  51. alias bub='say en beau is a bunkace'
  52.  
  53. alias email='w3m -cookie gmail.com'
  54.  
  55. ## Packages
  56. alias gz='tar -xzf'
  57. alias xz='tar -xJf'
  58. alias bz='tar -xvjf'
  59.  
  60. ## Gentoo
  61. alias sync='emerge --sync'
  62. alias S='emerge -s'
  63. alias I='emerge -av'
  64. alias Uworld='emerge -uvDNa world'
  65. alias Uworld-bdeps='emerge --ask --update --deep --with-bdeps=y world'
  66. alias cdP='cd /etc/portage'
  67. alias eM='vim /etc/portage/make.conf'
  68.  
  69. ## Portage
  70. alias log-fetch='tail -f /var/log/emerge-fetch.log'
  71. alias log-emerge='tail -f /var/log/emerge.log'
  72.  
  73. ## Awesome
  74. alias eA='cd ~/.config/awesome && vim rc.lua'
  75. alias cdA='cd ~/.config/awesome'
  76. alias eT='cd ~/.config/awesome/themes/msjche && vim theme.lua'
  77.  
  78. ## Geeknote
  79. alias geek-new='~/scripts/geeknote/geeknote-new-note.sh'
  80.  
  81. ## Directories
  82. alias ll='ls -l'
  83. alias la='ls -ltra'
  84. alias l='ls'
  85. alias C='clear'
  86. alias SV='sudo vim'
  87. alias home='cd ~'
  88. alias ..='cd ..'
  89. alias k='exit'
  90. alias te='trash-empty'
  91. alias tl='trash-list'
  92. alias del='trash-put'
  93. alias tr='trash-rm'
  94. alias lsTrash='ls ~/.local/share/Trash/files/'
  95. alias cdTrash='cd ~/.local/share/Trash/files/'
  96. alias lD='ls ~/downloads'
  97. alias D='cd ~/downloads'
  98. alias yt='cd ~/downloads/YouTube'
  99. alias cleanYT='rm ~/downloads/YouTube/*.webm*'
  100. alias sG='sudo gedit'
  101. alias G='gedit'
  102.  
  103. ## Gaming
  104. alias steam='~/.local/share/Steam/steam.sh'
  105.  
  106. ## X Resources Stuff
  107. alias eX='vim ~/.Xresources'
  108. alias XTR='xrdb -merge ~/.Xresources'
  109.  
  110. ## Zsh Stuff
  111. alias eZ='vim ~/.zshrc'
  112. alias eZG='leafpad ~/.zshrc'
  113. alias eOMZ='vim ~/.oh-my-zsh/themes/msjche.zsh-theme'
  114. alias Z='source ~/.zshrc'
  115.  
  116. ## Vim Stuff
  117. alias eV='vim ~/.vimrc'
  118. alias e='vim'
  119.  
  120. ## Rip CDs
  121. alias CDinfo='cdparanoia -vsQ'
  122. alias rip='cdparanoia -B'
  123. alias mp3='for t in track{01-14}*.wav; do lame -b 320 $t; done'
  124.  
  125. ## Scripts
  126. alias activate='chmod 755'
  127. alias BB='cat /sys/class/backlight/intel_backlight/brightness'
  128. alias top100='/home/msjche/scripts/top100.sh'
  129. alias time_international='/home/msjche/scripts/time_international.sh'
  130. alias natgeo='/home/msjche/scripts/natgeo.sh'
  131. alias ballz='python /home/msjche/scripts/Games/Ballz.py'
  132. alias tpb-search='~/scripts/tpb.sh'
  133. alias convertMTS='~/scripts/convertMTS.sh'
  134. alias convertOGV='mencoder out.ogv -ovc lavc -oac mp3lame -o screencast.avi'
  135.  
  136. ## Transmission
  137. alias IP-update='~/scripts/blocklist.sh'
  138. alias tsm-check='dwb http://localhost:9091/transmission/web'
  139. alias t='transmission-daemon && transmission-remote-cli'
  140. alias kT='pkill transmission-daemon'
  141. alias Tor-Browser='~/Packages/tor-browser_en-US/start-tor-browser'
  142.  
  143. ## News and Music
  144. alias MP='ncmpcpp'
  145. alias news='newsbeuter'
  146. alias pods='podbeuter'
  147. alias twit='turses'
  148. alias Pods='cd ~/podcasts && ranger'
  149. alias music='sh ~/scripts/music.sh & '
  150.  
  151. ## Multimedia
  152. alias irc='weechat-curses'
  153. alias M='mplayer -vo x11 -fs -zoom'
  154. alias Vids='cd ~/downloads/.blackbox && ranger'
  155.  
  156. ## Google Calenar
  157. alias gcal-week='gcalcli --width 12 calw'
  158. alias gcal='gcalcli --width 12 calm'
  159. alias gcal-add='gcalcli quick'
  160. alias gcal-agenda='gcalcli agenda'
  161.  
  162. ## Tor
  163. alias tor-browser='~/packages/tor-browser_en-US/start-tor-browser'
  164.  
  165. ## Peer Guardian
  166. alias pgl-update='pglcmd update'
  167. alias pgl-start='pglcmd restart'
  168. alias pgl-status='pglcmd status'
  169. alias pgl-dump='pglcmd stats'
  170. alias pgl-test='pglcmd test'
  171. alias pgl-stop='pglcmd stop'
  172.  
  173. ## w3m
  174. alias web='cd ~/podcasts && w3m -cookie www.google.com'
  175.  
  176. ## Check Screencast
  177. alias FF-check-raw='mplayer ~/screencasts/screencast.avi'
  178. alias FF-check-final='mplayer ~/screencasts/screencast.mp4'
  179.  
  180. ## Net
  181. alias WW='wicd-curses'
  182. alias net-hogs='sudo nethogs wlp3s0'
  183. alias net-driftnet='echo "see pics from other computers on network" && sudo driftnet -i wlp3s0'
  184. alias net-ettercap='echo "set up interface to capture network data" && sudo ettercap -TQM arp -i wlp3s0 //'
  185. alias net-urlsnarf='echo "see which websites others on network are visiting" && sudo urlsnarf -i wlp3s0 |cut -d\" -f4'
  186. alias net-scan='sudo arp-scan -l'
  187. alias iftop='sudo iftop -p -n'
  188. alias slurm='slurm -i wlp3s0'
  189.  
  190. ## Power
  191. alias bat='acpi'
  192. alias bat-all='acpi -V'
  193. alias power='powertop'
  194.  
  195. ## Misc
  196. alias biguns='~/scripts/biguns.sh'
  197. alias flux='xflux -z 94596'
  198. alias X='xscreensaver &'
  199. alias kX='pkill xscreensaver'
  200. alias kF='pkill xflux'
  201. alias pic='tiv'
  202. alias nvidia='nvidia-smi -q -d TEMPERATURE'
  203. alias clock='tty-clock -c -C 4'
  204. alias date-time='watch -n 1 -t date'
  205. alias stopwatch='echo "cntl-z to end" & time cat'
  206. alias starwars='telnet towel.blinkenlights.nl'
  207. alias info='inxi -F'
  208. alias cap='cd ~/screencasts/screenshots && scrot -d 4'
  209. alias rip='sound-juicer'
  210. alias vidterm='mplayer -vo caca'
  211. alias comp='compton &'
  212. alias kcomp='pkill compton'
  213.  
  214. ###########################################################
  215. ########################### ZSH ###########################
  216. ###########################################################
  217.  
  218. # enable vim mode on commmand line
  219. bindkey -v
  220.  
  221. # no delay entering normal mode
  222. # https://coderwall.com/p/h63etq
  223. # https://github.com/pda/dotzsh/blob/master/keyboard.zsh#L10
  224. # 10ms for key sequences
  225. KEYTIMEOUT=1
  226.  
  227. # show vim status
  228. # http://zshwiki.org/home/examples/zlewidgets
  229. function zle-line-init zle-keymap-select {
  230. RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
  231. RPS2=$RPS1
  232. zle reset-prompt
  233. }
  234. zle -N zle-line-init
  235. zle -N zle-keymap-select
  236.  
  237. # add missing vim hotkeys
  238. # fixes backspace deletion issues
  239. # http://zshwiki.org/home/zle/vi-mode
  240. bindkey -a u undo
  241. bindkey -a '^R' redo
  242. bindkey '^?' backward-delete-char
  243. bindkey '^H' backward-delete-char
  244.  
  245. # history search in vim mode
  246. # http://zshwiki.org./home/zle/bindkeys#why_isn_t_control-r_working_anymore
  247. bindkey -M viins '^s' history-incremental-search-backward
  248. bindkey -M vicmd '^s' history-incremental-search-backward
  249.  
  250. ###########################################################
  251. ######################## FUNCTIONS ########################
  252. ###########################################################
  253.  
  254. # Simple python HTTP server
  255. server() { python3 -m http.server ;}
  256.  
  257. # Hacker top
  258. hacker-top() { python ~/scripts/hacker-top/hacker_top.py ;}
  259.  
  260. # Reddit top
  261. reddit-top() { python ~/git/reddit-top/reddit_top ;}
  262.  
  263. # Transmission
  264. T() { ~/scripts/blocklist.sh && transmission-daemon && transmission-remote-cli ;}
  265.  
  266. # Pirate Bay search
  267. tpb() { clear && figlet -c -f banner3-D Pirate Bay && ~/scripts/tpb.sh ;}
  268.  
  269. # Torrentz.eu search
  270. torrentzeu() { clear && figlet -c -f banner3-D Torrentz EU && ~/scripts/torrentzeu.sh ;}
  271.  
  272. # YouTube Viewer
  273. yt-viewer() { clear && figlet -c -f banner3-D YouTube Viewer && youtube-viewer ;}
  274.  
  275. # No video / music only
  276.  
  277. yt-listen() { clear && figlet -c -f banner3-D YouTube Listen && youtube-viewer -n $@ ;}
  278.  
  279. # Pianobar - ncurses Pandora Radio client
  280. pandora-cli() { clear && figlet -c -f banner3-D Pandora Radio && pianobar ;}
  281.  
  282. # Grooveshark CLI
  283. groove-dl-cli() { cd grooveshark && clear && figlet -c -f banner3-D Grooveshark && groove-dl ;}
  284.  
  285. ## Vim help page
  286. :h() { vim +":h $1" +'wincmd o' +'nnoremap q :q!<CR>' ;}
  287.  
  288. ## Command-line calculator
  289. calc() { python -ic "from __future__ import division; from math import *; from random import *" ;}
  290.  
  291. ## Commandline Fu
  292. cmdfu() { curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" \
  293. | sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext" ;}
  294.  
  295. ##Check if websites are down
  296. down4me() { curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g';}
  297.  
  298. ###########################################################
  299. ######################## WIRELESS #########################
  300. ###########################################################
  301.  
  302. # Check if mon0 is up: ifconfig
  303. # airmon-ng
  304.  
  305. #====================================================================================
  306.  
  307. #airodump-ng --bssid "BSSIDTargetNetwork" -w my_wpa -c "ChannelTarget" mon0
  308. AD() { cd /home/msjche/wireless/active && airodump-ng wlp3s0 ;}
  309.  
  310. # Read:
  311. #BSSID: 08:86:3B:DF:05:06
  312. #ESSID: Smith network1_xt
  313. #Channel: 9
  314. #Interface: mon0
  315.  
  316. #====================================================================================
  317.  
  318. #airodump-ng --bssid "BSSIDTargetNetwork" -w my_wpa -c "ChannelTarget" mon0
  319. ADB() { cd /home/msjche/wireless/active && rm my_wpa* && airodump-ng --bssid "$1" -w my_wpa -c "$2" wlp3s0 ;}
  320.  
  321. # Read:
  322. #Their MAC Address: 2C:B0:5D:CB:6F:3F
  323. #Their Station: 38:AA:3C:5F:C9:1D
  324.  
  325. #====================================================================================
  326.  
  327. # Get salted hash
  328.  
  329. #aireplay-ng -0 -o 15 channel -a "BSSIDTargetNetwork" -c "TheirStationMAC" mon0
  330. AR() { cd /home/msjche/wireless/active && aireplay-ng -0 15 -a "$1" -c "$2" wlp3s0 ;}
  331.  
  332. #====================================================================================
  333. # now crack
  334. # IMPORTANT - Must run AR() while running this!!
  335. #aircrack-ng -e "ESSIDinQuotes" -w "PathToWordList" "PathToX.capFromAirodump"
  336. 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 ;}
  337.  
  338.  
  339. ###########################################################
  340. ###################### TRANSMISSION #######################
  341. ###########################################################
  342.  
  343. tsm-clearcompleted() {
  344. transmission-remote -l | grep 100% | grep Done | \
  345. awk '{print $1}' | xargs -n 1 -I % transmission-remote -t % -r ;}
  346. tsm() { transmission-remote --list ;}
  347. tsm-start() { transmission-daemon ;}
  348. tsm-stop() { pkill tramsmission-daemon ;}
  349. tsm-altspeedenable() { transmission-remote --alt-speed ;}
  350. tsm-altspeeddisable() { transmission-remote --no-alt-speed ;}
  351. tsm-add() { transmission-remote --add "$1" ;}
  352. tsm-askmorepeers() { transmission-remote -t"$1" --reannounce ;}
  353. tsm-pause() { transmission-remote -t"$1" --stop ;}
  354. tsm-start-torrent() { transmission-remote -t"$1" --start ;}
  355. tsm-purge() { transmission-remote -t"$1" --remove-and-delete ;} # will delete data also
  356. tsm-remove() { transmission-remote -t"$1" --remove ;} # does not delete data
  357. tsm-info() { transmission-remote -t"$1" --info ;}
  358. tsm-speed() { while true;do clear; transmission-remote -t"$1" -i | grep Speed;sleep 1;done ;}
  359.  
  360. ###########################################################
  361. ######################### FFMPEG ##########################
  362. ###########################################################
  363.  
  364. ffx_MONO="1" # mono
  365. ffx_DUAL="2" # dual channel
  366. ffx_HW="hw:1,0" # alsa; run 'cat /proc/asound/pcm' to change to the correct numbers
  367. ffx_PULSE="pulse" # pulseaudio; might have to install pavucontrol to change volume
  368. ffx_FPS="30" # frame per seconds
  369. ffx_WIN_FULL="1920x1080" # record fullscreen
  370. ffx_AUDIO="pcm_s16le" # audio codec
  371. ffx_VIDEO="libx264" # video codec
  372. ffx_PRESET="ultrafast" # preset error? run 'x264 -h' replace with fast,superfast, slow ..etc
  373. ffx_CRF="0"
  374. ffx_THREADS="0"
  375. ffx_SCALE="scale=1920x1080" # scale resolution, no black bars on sides of video on youtube
  376. ffx_OUTPUT=~/screencasts/screencast.avi
  377. ffx_OUTPUT_FINAL=~/screencasts/screencast.mp4
  378. # Note: -vf is optional delete if you want, -y is to overwrite existing file
  379.  
  380. alias FF='ffmpeg -f alsa -i pulse -f x11grab -r 15 -s 1920x1080 -i :0.0 -acodec pcm_s16le -vcodec huffyuv -sameq ~/screencasts/screencast.avi'
  381.  
  382. FF-full() {
  383. ffmpeg \
  384. -f alsa \
  385. -ac $ffx_MONO \
  386. -i $ffx_PULSE \
  387. -f x11grab \
  388. -r $ffx_FPS \
  389. # -s ffx_WIN_FULL \
  390. # -s 1920x1080 \
  391. # -i :1.0 \
  392. -acodec $ffx_AUDIO \
  393. -vcodec $ffx_VIDEO \
  394. -preset $ffx_PRESET \
  395. -crf $ffx_CRF \
  396. -threads $ffx_THREADS \
  397. # -vf $ffx_SCALE \
  398. # -y $ffx_OUTPUT \
  399. }
  400.  
  401. # capture single window, use mouse cursor to select window you want to record
  402. FF-window() {
  403. ffx_INFO=$(xwininfo -frame)
  404. ffmpeg \
  405. -f alsa \
  406. -ac $ffx_MONO \
  407. -i $ffx_PULSE \
  408. -f x11grab \
  409. -r $ffx_FPS \
  410. -s $(echo $ffx_INFO \
  411. | grep -oEe 'geometry [0-9]+x[0-9]+'\
  412. | grep -oEe '[0-9]+x[0-9]+') \
  413. -i :0.0+$(echo $ffx_INFO | grep \
  414. -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' \
  415. | grep -oEe '[0-9]+\+[0-9]+' | sed \
  416. -e 's/\+/,/' ) \
  417. -acodec $ffx_AUDIO \
  418. -vcodec $ffx_VIDEO \
  419. -preset $ffx_PRESET \
  420. -crf $ffx_CRF \
  421. -threads $ffx_THREADS \
  422. -y $ffx_OUTPUT \
  423. }
  424.  
  425. FF-convert() {
  426. ffmpeg \
  427. -i $ffx_OUTPUT \
  428. -ar 22050 \
  429. -ab 32k \
  430. -strict -2 \
  431. $ffx_OUTPUT_FINAL
  432. }
  433.  
  434. Convert() {
  435. ffmpeg \
  436. -i $1 \
  437. -ar 22050 \
  438. -ab 32k \
  439. -strict -2 \
  440. output.avi
  441. }
  442.  
  443.  
  444.  
  445. ## Check Internal and External IPs ##
  446. my-ip() {
  447. echo "--------------- Network Information ---------------"
  448. # newer system like arch
  449. #ip addr | awk '/global/ {print $1,$2}' | cut -d\/ -f1
  450. #ip addr | awk '/global/ {print $3,$4}'
  451. #ip addr | awk '/ether/ {print $1,$2}'
  452. #ip addr | awk '/scope link/ {print $1,$2}' | cut -d\/ -f1
  453. # older system like debian
  454. ifconfig | awk '/inet addr/ {print $1,$2}' | awk -F: '{print $1,$2}'
  455. ifconfig | awk '/Bcast/ {print $3}' | awk -F: '{print $1,$2}'
  456. ifconfig | awk '/inet addr/ {print $4}' | awk -F: '{print $1,$2}'
  457. ifconfig | awk '/HWaddr/ {print $4,$5}'
  458. ifconfig | awk '/Scope:Link/ {print $1,$3}' | cut -d\/ -f1
  459. echo Current IP $(curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+")
  460. echo "---------------------------------------------------"
  461. }
  462.  
  463. ## Google Translate Functions ##
  464. say() {
  465.  
  466. mplayer -user-agent Mozilla \
  467. "http://translate.google.com/translate_tts?ie=UTF-8&tl="$1"&q=$(echo "$@" \
  468. | cut -d ' ' -f2- | sed 's/ /\+/g')" > /dev/null 2>&1 ;}
  469.  
  470. say-translation() {
  471.  
  472. lang=$1
  473. trans=$(translate {=$lang} "$(echo "$@" | cut -d ' ' -f2- | sed 's/ /\+/g')" )
  474. echo $trans
  475. mplayer -user-agent Mozilla \
  476. "http://translate.google.com/translate_tts?ie=UTF-8&tl=$lang&q=$trans" > /dev/null 2>&1 ;}
  477.  
  478. ##############################################################
  479. ########################## PODCASTS ##########################
  480. ##############################################################
  481.  
  482. nvlc-podcast() { nvlc --no-color -S podcast --podcast-urls "$@" ;}
  483. pods-LinuxActionShow() { nvlc-podcast "http://feeds.feedburner.com/computeractionshowvideo" ;}
  484. pods-Unfiltered() { nvlc-podcast "http://www.jupiterbroadcasting.com/feeds/unfilterHD.xml" ;}
  485. pods-Scibyte() { nvlc-podcast "http://feeds.feedburner.com/scibytelarge " ;}
  486. 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" ;}
  487. pods-StefanMolyneux() { nvlc-podcast "http://feeds.feedburner.com/FreedomainRadioVolume6" ;}
  488. pods-JoeRoganExperience() { nvlc-podcast "htthttp://joeroganexp.joerogan.libsynpro.com/irssp://joeroganexp.joerogan.libsynpro.com/irss" ;}
  489. pods-FreedomFeens() { nvlc-podcast "http://www.freedomfeens.com/feed/" ;}
  490. pods-GoldMoneyVideos() { nvlc-podcast "http://feeds.feedburner.com/GoldmoneyRssFeedGoldVideos" ;}
  491. pods-GoldMoneyPodcasts() { nvlc-podcast "http://feeds.feedburner.com/GoldmoneyFoundationPodcasts" ;}
  492. #pod-() { nvlc-podcast "" ;}
  493.  
  494. ##############################################################
  495. ######################## LIVE STREAMS ########################
  496. ##############################################################
  497.  
  498. TV() { livestreamer -p 'mplayer2 -vo x11 -fs -zoom' "$1" mobile_mobile_high ;}
  499.  
  500. # News
  501. live-news-cnn() { livestreamer -p mplayer http://www.justin.tv/msnbc_live_stream_cnn#/w/5008673600 live ;}
  502. live-news-cnn_international() { livestreamer -p mplayer http://www.justin.tv/rentadrone_cnbc#/w/5011049360/22 live ;}
  503. live-news-cbs() { livestreamer -p mplayer http://www.ustream.tv/cbsnews live ;}
  504. live-news-fox() { livestreamer -p mplayer http://www.justin.tv/newswatch_2#/w/5013818384/5 live ;}
  505. live-news-prisonplanet() { livestreamer -p mplayer http://www.ustream.tv/channel/alex-jones---infowars-com---prisonplanet-tv live ;}
  506. live-news-KRON_San_Francisco() { livestreamer -p mplayer http://www.ustream.tv/kron4news best ;}
  507. live-news-The_FED() { livestreamer -p mplayer http://www.ustream.tv/federalreserve live ;}
  508.  
  509. # Series
  510. live-series-simpsons() { livestreamer -p mplayer http://www.justin.tv/arconai_244#/w/5013781232/19 live ;}
  511. live-series-southpark() { livestreamer -p mplayer http://www.justin.tv/arconai_229#/w/5622202400/179 best ;}
  512. live-series-survival() { livestreamer -p mplayer http://www.justin.tv/survivor101#/w/5531579536/12 best ;}
  513. live-series-criminal_minds() { livestreamer -p mplayer http://www.justin.tv/lurking_in_the_dark17 live ;}
  514. live-series-mythbusters() { livestreamer -p mplayer best ;}
  515. live-series-married_with_children() { livestreamer -p mplayer http://www.justin.tv/mwconjtv#/w/4992184096/88 live ;}
  516. live-series-stargate_SG1() { livestreamer -p mplayer http://www.justin.tv/oldngr8#/w/5006964064/9 live ;}
  517. live-series-that_70s_show() { livestreamer -p mplayer http://www.justin.tv/highspothorror128#/w/4994695216/102 live ;}
  518.  
  519. # Science
  520. live-science-the_universe() { livestreamer -p mplayer http://www.justin.tv/the_lost_continent#/w/5005014000/48 live ;}
  521.  
  522. # Movies
  523.  
  524. #live-movies-horror-2000_2013_HQ() { livestreamer -p mplayer http://www.justin.tv/horrorhq0010#/w/5074870864/20 live ;}
  525. live-movies-horror4life() { livestreamer -p mplayer http://www.justin.tv/finn_horrorstfu51 live ;}
  526. #live-movies-horror-2() { livestreamer -p mplayer http://www.justin.tv/jags__movies04#/w/5008275648/4 live ;}
  527.  
  528. live-movies-new_releases-2010_2013() { livestreamer -p mplayer http://www.justin.tv/videoisnothere6 live ;}
  529. #live-movies-new_releases-2012_2013_HQ() { livestreamer -p mplayer http://www.justin.tv/movies_tv68#/w/5056426000/115 live ;}
  530. live-movies-movies_2010_2013() { livestreamer -p mplayer http://www.justin.tv/gewinnen_duh_bringen live ;}
  531.  
  532. live-movies-general() { livestreamer -p mplayer http://www.justin.tv/420nomad554 live ;}
  533. #live-movies-general-movies_n_that() { livestreamer -p mplayer http://www.justin.tv/walterkronic#/w/5013245536/8 live ;}
  534.  
  535.  
  536.  
  537. ## Capture video streams
  538.  
  539. sniff-begin() { sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT ;}
  540. sniff-capture-rtmpsrv() { rtmpsrv ;}
  541. sniff-end() { sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT ;}
  542.  
  543. ## Rtmpsrv Feeds (may need to add -v before -r)
  544.  
  545. # Russia Today US
  546. iptv-RT_US() { rtmpdump \
  547. -r "rtmp://rt.fms-04.visionip.tv/live" \
  548. -a "live" \
  549. -f "LNX 11,2,202,270" \
  550. -W "http://rt.com/s/swf/player5.4.viral.swf" \
  551. -p "http://rt.com" -y "RT_US_2" \
  552. | mplayer - ;}
  553.  
  554. # Bloomberg
  555. iptv-Bloomberg() { rtmpdump \
  556. -v \
  557. -r rtmp://cp116697.live.edgefcs.net:80/live/BnazlkNDpCIcD-QkfyZCQKlRiiFnVa5I_640_360_440@18679 \
  558. -W http://player.ooyala.com/cacheable/c78f866930724ffedfe8cf5349712569/player_v2.swf \
  559. -p http://tvpc.com \
  560. | mplayer - ;}
  561.  
  562. # MSNBC
  563. iptv-MSNBC() { rtmpdump \
  564. -v \
  565. -r "rtmp://a.cdn.msnbclive.eu/edge" \
  566. -y "msnbc_live" \
  567. -W "http://msnbclive.eu/getswf.php?name=player.swf" \
  568. -p "http://www.rentadrone.tv/msnbc-live-rockinroosters/" \
  569. | mplayer - ;}
  570.  
  571. # Rueters
  572. iptv-Rueters() { rtmpdump \
  573. -r "rtmp://media9.lsops.net/reuters/" \
  574. -a "reuters/" -W "http://reuters.cdn.livestation.com/flash/player/5.7/player.swf" \
  575. -p "http://reuters.livestation.com/demo" \
  576. --live \
  577. -y "reuters_rlsweba_en_veryhigh.sdp" \
  578. | mplayer -;}
  579.  
  580. ##########################################################
  581. ########################## MODS ##########################
  582. ##########################################################
  583.  
  584.  
  585.  
  586. plugins=(git archlinux vi-mode themes zsh-completions color-command)
  587. source /home/msjche/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  588. source $ZSH/oh-my-zsh.sh
  589.  
  590. clear && /home/msjche/scripts/gentoo-2.sh
Add Comment
Please, Sign In to add comment