Advertisement
Guest User

Untitled

a guest
May 20th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. # ██████╗ █████╗ ███████╗██╗ ██╗██████╗ ██████╗
  2. # ██╔══██╗██╔══██╗██╔════╝██║ ██║██╔══██╗██╔════╝
  3. # ██████╔╝███████║███████╗███████║██████╔╝██║
  4. # ██╔══██╗██╔══██║╚════██║██╔══██║██╔══██╗██║
  5. # ██████╔╝██║ ██║███████║██║ ██║██║ ██║╚██████╗
  6. # ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
  7.  
  8. ## exports ##
  9.  
  10. export PS1="\[\e[95m\]╰─➤ \[\e[m\] \[\e[1;34m\]\W\[\e[m\] "
  11. export HOMEBREW_CASK_OPTS="--appdir=/Applications"
  12. export EDITOR=vi
  13. export PATH=$PATH:/Users/jonny/Scripts/bin
  14. export PTPIMG_API_KEY=##########
  15.  
  16. ## basic aliases ##
  17.  
  18. alias c="clear"
  19. alias f='open -a Finder ./'
  20. alias feral="ssh ##########.feralhosting.com"
  21. alias ns="notify-send"
  22. alias ls="ls -1a"
  23.  
  24. ## config ##
  25.  
  26. alias brc="vi ~/.bashrc"
  27. alias mpdconf="vi ~/.mpd/mpd.conf"
  28. alias ncmpcppconf="vi ~/.ncmpcpp/config"
  29. alias ncmpcpp2conf="vi ~/.ncmpcpp/config2"
  30. alias beetsconf="vi ~/.config/beets/config.yaml"
  31. alias mpvconf="vi ~/.config/mpv/mpv.conf"
  32. alias neofetchconf="vi ~/.config/neofetch/config"
  33. alias pyartconf="vi ~/scripts/pyart.py"
  34.  
  35. ## files ##
  36.  
  37. alias size="du -sh"
  38. alias countf="tree -L 1 | tail -1"
  39. alias sortcount="cd /volumes/ext/torrents/sort/; tree -L 1 | tail -1; cd ~"
  40.  
  41. ## chat ##
  42.  
  43. alias bitlbee="/usr/local/Cellar/bitlbee/3.5.1/sbin/bitlbee -D"
  44. alias weechat="weechat --dir ~/.weechat --upgrade"
  45. alias tw="tmux attach -t weechat"
  46. alias twitchchat="weechat -d .twitch"
  47.  
  48. ## music ##
  49.  
  50. alias ncmpcpp2="ncmpcpp -c .ncmpcpp/config2"
  51. alias ncmpcpp3="ncmpcpp -c .ncmpcpp/config3"
  52. alias mpdr="kilall mpd;mpd;mpc play;ncmpcpp"
  53. alias mpdr2="kilall mpd;mpd;mpc play;ncmpcpp2"
  54. alias pyart="python /Users/jonny/scripts/elements/pyart.py"
  55. alias pyart_hotel="python /Users/jonny/scripts/elements/pyart_hotel.py"
  56. alias mpdas="nohup mpdas &"
  57. alias music="echo -e \"\n\";echo -e \"BEET STATS\\n\";beet stats;echo -e \"\n\";echo -e \"LEFT TO SORT\\n\"; sortcount; echo -e \"\n\""
  58.  
  59. ## torrents ##
  60.  
  61. alias mt="mktorrent -s RED -p -a https://flacsfor.me/#########/announce"
  62. alias mi='mediainfo'
  63. # alias ptpimg="/Users/Jonny/Scripts/ptpimg_uploader.py"
  64.  
  65. function micheck() {
  66. mediainfo "$1" | grep 'Bit depth'; mediainfo "$1" | grep 'Sampling rate'
  67. }
  68.  
  69. function t() {
  70. cd desktop; mt "$1";mediainfo "$1" | grep 'Bit depth'; cd ~
  71. }
  72.  
  73.  
  74. ## beets alias' ##
  75.  
  76. alias bi="beet import"
  77. alias bu="beet up"
  78.  
  79. ## functions ##
  80.  
  81.  
  82. # function lvstrmr() {
  83. # livestreamer --twitch-oauth-token ########### http://twitch.tv/$1 best -p /Applications/mpv.app/Contents/MacOS/mpv
  84. # }
  85.  
  86. function stream() {
  87. streamlink -p mpv twitch.tv/$1 best
  88. }
  89.  
  90. function webm() {
  91. ffmpeg -i "$1" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm
  92. }
  93.  
  94. pman()
  95. {
  96. man -t "${1}" | open -f -a /Applications/Preview.app/
  97. }
  98.  
  99. process()
  100. {
  101. ps aux | grep $1
  102. }
  103.  
  104. 0x0() {
  105. [ -n "$2" ] && local fn=";filename=$2"
  106. echo $(curl --http1.1 -# -o /dev/stdout -F "file=@$1$fn" https://0x0.st)
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement