Advertisement
Guest User

Untitled

a guest
May 5th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.70 KB | None | 0 0
  1. # Path to Oh My Fish install.
  2. set -gx OMF_PATH /Users/augusts/.local/share/omf
  3. source $OMF_PATH/init.fish
  4.  
  5. # Path to your oh-my-fish.
  6. set PATH /Applications/Postgres.app/Contents/Versions/9.4/bin $PATH
  7. set PATH ~/bin $PATH
  8. set PATH /usr/local/bin $PATH
  9. set -x RACK_ENV development
  10. set -x EDITOR atom
  11. set fish_path $HOME/.oh-my-fish
  12. set -x SECRET_KEY_BASE a0d7c54e36f35be8288d79229d7df09600c56e24e50a984799ab98e09dd60ea1008965126c6412002e06c01ec3defb65e0c13908845f82c0bdfe82937f9f113c
  13. rvm default
  14.  
  15.  
  16. alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder'
  17. alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder'
  18. alias resque!="command rake resque:work 'QUEUE=*'"
  19.  
  20. alias clean_empty="find . -depth -type f -empty -delete; and find . -depth -type d -empty -delete"
  21. alias keys="cd /Library/Keyboard\ Layouts/"
  22. alias background="cd /Library/Desktop\ Pictures"
  23. alias here="open ."
  24. alias a="atom --dev ."
  25. alias skripti="cd ~/scripts"
  26.  
  27. alias dt="cd ~/Desktop; and rvm use 2.2.3@global"
  28. alias ls="command ls -ABCFG"
  29. alias cls="command clear"
  30. alias db:migrate="command rake db:migrate RAILS_ENV=test; and rake db:seed RAILS_ENV=test; and rake db:migrate; and rake db:seed"
  31. alias rspec="command env cov=ignore rspec"
  32. alias nomail="sudo rm /var/mail/augusts"
  33.  
  34. # config files
  35. alias opsh="command atom ~/.config/fish/config.fish"
  36. alias sopsh="command atom ~/.ssh/config"
  37. alias again=". ~/.config/fish/config.fish"
  38. alias ropsh="command sudo atom ~/.irbrc"
  39. alias dumpit="pg_dump --format=c -h localhost --username augusts manabalss > ~/Desktop/latest.dump"
  40.  
  41. # commands
  42. alias rez_small="sips --resampleWidth 172"
  43. alias lookup="command ps aux | grep"
  44. alias fresh="command git checkout --"
  45.  
  46. # Rails
  47. alias go!="rails s -b 127.0.0.1 -p 3000"
  48. alias gop="bundle exec puma -p 3000 -C config/development_puma.rb"
  49. alias co!="rails c"
  50. alias migrate="rake db:migrate; and rake db:migrate RAILS_ENV=test"
  51. alias c-spec="command env cov=true rspec"
  52.  
  53. # Git & Cap
  54. alias push="command git push"
  55. function puhs
  56. echo "you probably meant 'push', ran dat."
  57. push
  58. end
  59. alias puush="command git push origin master"
  60. alias pull="command git pull"
  61. alias puull="command git pull origin master"
  62. alias com="command git commit -am"
  63. alias gits="command git status"
  64. alias ffs="command cap deploy:cold"
  65. alias CPD="command cap production deploy"
  66. alias turn="command git checkout"
  67.  
  68.  
  69. # Atom hacks
  70. alias ent="command atom ~/Documents/Copy/Dev\ Env/1Entries.rb"
  71. alias a_cpp="command atom ~/Documents/cpp"
  72. alias a_sl="command atom ~/Documents/SwissLanguages"
  73. alias a_sha="command atom ~/Documents/SHProduct"
  74. alias a_nord="command atom ~/Documents/nordenhealth"
  75. alias a_mg="command atom ~/Documents/mailigen_platform"
  76.  
  77. # dumpfile scp commands # Define scp variables in ~/.ssh/config /Users/augusts/.config/fish/config.fish
  78.  
  79. #CPP Produkcija
  80. alias scp_cpp="scp CPP:/home/deployer/apps/cpp/latest.dump ~/Desktop/"
  81. #Norden Produkcija
  82. alias scp_nord="scp -P 39011 NORD:/home/deployer/apps/nordenhealth/latest.dump ~/Desktop/"
  83. #MB
  84. alias scp_mb="scp MB:/home/deployer/apps/manabalss/latest.dump ~/Desktop/"
  85. #SL
  86. alias scp_sl="scp SL:/home/deployer/apps/SwissLanguages/latest.dump ~/Desktop/"
  87. #SHProduct
  88. alias scp_sha="scp deployer@37.139.8.70:/home/deployer/apps/shproduct/latest.dump ~/Desktop/"
  89. #Dokku
  90. alias scp_dokku="scp root@146.185.130.153:/root/latest.dump ~/Desktop/"
  91. #Dokku2
  92. alias scp_dokku2="scp root@178.62.175.11:/home/dokku/latest.dump ~/Desktop/"
  93. #Mailigen platform
  94. alias scp_mg="scp MG:/home/deployer/apps/mailigen_platform/latest.dump ~/Desktop/"
  95. # blog.stockholmhealth.com
  96. alias scp_blog_stock="scp -rp root@37.139.25.144:/var/www/html ~/Desktop/"
  97.  
  98.  
  99. alias dev_noti="cd ~/Documents/development_notification; and rvm use 2.2.3@dev_noti"
  100.  
  101. # CPP paths
  102. alias cpp="cd ~/Documents/cpp; and rvm use 2.3.0@cpp"
  103. alias CPP="command ssh -p 9917 deployer@146.185.168.135"
  104. function restore_cpp
  105. cpp
  106. rake db:drop db:create
  107. pg_restore --verbose --clean --no-acl --no-owner -h localhost -U augusts -d cpp ~/Desktop/latest.dump
  108. rake db:migrate db:seed
  109. end
  110.  
  111. # Norden paths
  112. alias nord="cd ~/Documents/nordenhealth; and rvm use 2.0.0@nord"
  113. alias staging="command ssh deployer@188.226.246.199"
  114. alias NORD="command ssh -p 39011 deployer@37.139.21.15"
  115. function restore_nord
  116. nord
  117. rake db:drop db:create
  118. pg_restore --verbose --clean --no-acl --no-owner -h localhost -U augusts -d nord ~/Desktop/latest.dump
  119. rake db:migrate db:seed
  120. end
  121.  
  122. # Swisslanguages paths
  123. function sl
  124. cd ~/Documents/SwissLanguages
  125. rvm use 2.1.2@swiss
  126. end
  127. alias SL="ssh SL"
  128. function restore_sl
  129. sl
  130. rake db:drop db:create
  131. pg_restore --verbose --clean --no-acl --no-owner -h localhost -U augusts -d swiss ~/Desktop/latest.dump
  132. rake db:migrate db:seed
  133. end
  134.  
  135. # Swisslanguages_game paths
  136. function slg
  137. cd ~/Documents/sl_game
  138. rvm use 2.2.3@sl_game
  139. end
  140. alias SLG="ssh -p 7361 deployer@178.62.187.22"
  141. function restore_slg
  142. slg
  143. rake db:drop db:create
  144. pg_restore --verbose --clean --no-acl --no-owner -h localhost -U augusts -d sl_game ~/Desktop/latest.dump
  145. rake db:migrate db:seed
  146. end
  147.  
  148. # SH Product paths
  149. alias sha="cd ~/Documents/SHProduct; and rvm use 2.1.2@sha"
  150. alias creative_subs="cd ~/Documents/creative_subscriptions; and rvm use 2.1.2@sha"
  151. alias SH="ssh SH"
  152. alias SH_S="ssh -p 57123 deployer@146.185.130.153"
  153. function restore_sha
  154. sha
  155. rake db:drop db:create
  156. pg_restore --verbose --clean --no-acl --no-owner -h localhost -U augusts -d sha ~/Desktop/latest.dump
  157. rake db:migrate db:seed
  158. rake db:migrate db:seed RAILS_ENV=test
  159. end
  160.  
  161. # ManaBalss
  162. alias manab="cd ~/Documents/manabalss; and rvm use 2.1.3@MB"
  163. alias MB="ssh -p 32541 deployer@37.139.0.211"
  164. alias MB_S="ssh MB_S"
  165. function restore_manab
  166. manab
  167. rake db:drop db:create
  168. pg_restore --verbose --clean --no-acl --no-owner -h localhost -U augusts -d manabalss ~/Desktop/latest.dump
  169. rake db:migrate db:seed
  170. end
  171.  
  172. # Dokku
  173. alias DOKKU="ssh DOKKU"
  174. # Ja kāds no konteineeriem gļuko, paskaties gist dokku workflow restart pavēles
  175.  
  176. # Dokku2 (blogs)
  177. alias DOKKU2="ssh root@DOKKU2"
  178.  
  179. # Mailigen Platform
  180. alias mailigen_platform="cd ~/Documents/mailigen_platform; and rvm use 2.2.2@mailigen"
  181. alias mg="cd ~/Documents/mailigen_platform; and rvm use 2.2.2@mailigen"
  182. alias MG="ssh -p 39222 deployer@146.185.183.196"
  183. function restore_mg
  184. mailigen_platform
  185. rake db:drop db:create
  186. pg_restore --verbose --clean --no-acl --no-owner -h localhost -U augusts -d mailigen_platform ~/Desktop/latest.dump
  187. rake db:migrate db:seed
  188. end
  189.  
  190. # GeoLocale gem
  191. alias geo_locale="cd ~/Documents/geo_locale; and rvm use 2.0.0@geo_locale"
  192.  
  193. # CPS gem
  194. alias cps="cd ~/Documents/complete_payment_systems; and rvm use 2.1.5@cps"
  195.  
  196. # SacPS gem
  197. alias SacPS="cd ~/Documents/SacPS; and rvm use 2.2.0@SacPS"
  198.  
  199. # Leadersend gem
  200. alias LS="cd ~/Documents/leadersend; and rvm use 2.1.2@LS"
  201.  
  202. # Priscilla gem
  203. alias PR="cd ~/Documents/priscilla; and rvm use 2.1.2@PR"
  204.  
  205. # Redirected
  206. alias red="cd ~/Documents/Redirecter; and rvm use 2.1.2@red"
  207.  
  208. # Redirected
  209. alias nic_red="cd ~/Documents/NicRedirecterTemplate; and rvm use 2.2.3@nic_red"
  210.  
  211. # Prezidenti path
  212. alias candy="manab; and cd vendor/engines/prezidenti"
  213.  
  214. # AB_test path
  215. alias ab_test="cd ~/Documents/ab_manager; and rvm use 2.1.3@ab_manager"
  216.  
  217. # Creative subscriptions path
  218. alias creative_subs="cd ~/Documents/creative_subscriptions; and rvm use 2.1.2@subs"
  219. alias cs="cd ~/Documents/creative_subscriptions; and rvm use 2.1.2@subs"
  220.  
  221. # Creative tracking path
  222. alias creative_track="cd ~/Documents/creative_tracking; and rvm use 2.1.2@track"
  223.  
  224. # Eyeglobal app path
  225. alias eyeglobal="cd ~/Documents/eyeglobal_app; and rvm use 2.2.2@eyeglobal"
  226.  
  227. # Creativegs
  228. alias creativegs="cd ~/Documents/creativegs; and rvm use 2.2.3@hompeage"
  229.  
  230. # Minichat path (failed)
  231. alias minichat="cd ~/Documents/SitepointMiniChat; and rvm use 2.0.0@minichat"
  232.  
  233. # test shortcode
  234. alias shortcode_test="cd ~/Documents/shortcode_test; and rvm use 2.2.3@test"
  235.  
  236. # blogCMS
  237. alias uzveselibu="cd ~/Documents/blogCMS; and rvm use 2.2.3@blogCMS"
  238.  
  239.  
  240. ####### Aux ############
  241. alias ranger="cd ~/Documents/ranger; and rvm use 2.2.0@ranger"
  242. alias hashrush="cd ~/Documents/hashrush; and rvm use 2.1.2@rush"
  243. alias cru="cd ~/Documents/creative_rails_utilities; and rvm use 2.2.0@cru"
  244.  
  245.  
  246. # makes a script globally readable in a bin folder
  247. function scriptize
  248. sudo chmod 744 $argv
  249. sudo chmod -x $argv
  250. end
  251.  
  252. # prints given string given times `do_str = 8`
  253. function do_str
  254. for i in (seq $argv[2])
  255. printf $argv[1]
  256. end
  257. end
  258.  
  259. # same. maybe faster `underl` `underl = 8`
  260. function underl -a char -a length
  261. printf '%*s\n' $length "" | tr ' ' $char
  262. end
  263.  
  264. function down
  265. sudo shutdown -h $argv
  266. end
  267. function antigua
  268. cd ~/.atom/packages/antigua-dark-syntax/
  269. a
  270. end
  271.  
  272. # Load oh-my-fish configuration.
  273. . $fish_path/oh-my-fish.fish
  274.  
  275.  
  276. set -g -x fish_greeting ''
  277. echo -e "Proceed to \033[38;5;208m☣ fishy ☣\033[0;00m business!"
  278.  
  279. #function fish_prompt
  280. # echo "☣"
  281. #end
  282. rvm default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement