Created
May 2, 2017 11:07
-
-
Save Epigene/52772bc546017587e986ab793701d0fc to your computer and use it in GitHub Desktop.
Fishy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to Oh My Fish install. | |
set -gx OMF_PATH "/Users/developer/.local/share/omf" | |
# Customize Oh My Fish configuration path. | |
#set -gx OMF_CONFIG "/Users/developer/.config/omf" | |
source $OMF_PATH/init.fish | |
# Path to your oh-my-fish. | |
set PATH /Applications/Postgres.app/Contents/Versions/9.5/bin $PATH | |
set PATH ~/bin $PATH | |
set PATH /usr/local/bin $PATH | |
set -x RACK_ENV development | |
set -x EDITOR atom | |
set -x SECRET_KEY_BASE a0d7c54e36f35be8288d79229d7df09600c56e24e50a984799ab98e09dd60ea1008965126c6412002e06c01ec3defb65e0c13908845f82c0bdfe82937f9f113c | |
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder' | |
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder' | |
alias resque!="command rake resque:work 'QUEUE=*'" | |
alias sidekiq!="command sidekiq -c 1 -q priority -q default -q low" | |
alias clean_empty="find . -depth -type f -empty -delete; and find . -depth -type d -empty -delete" | |
alias keys="cd /Library/Keyboard\ Layouts/" | |
alias background="cd /Library/Desktop\ Pictures" | |
alias here="open ." | |
alias a="atom --dev ." | |
alias skripti="cd ~/scripts" | |
alias dt="cd ~/Desktop; and rvm use 2.2.3@global" | |
alias ls="command ls -ABCFG" | |
alias cls="command clear" | |
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" | |
alias rspec="command env cov=ignore rspec" | |
alias nomail="sudo rm /var/mail/developer" | |
alias flush_dns_cache="sudo dscacheutil -flushcache; and sudo killall -HUP mDNSResponder; and say cache flushed" | |
# config files | |
alias opsh="command atom ~/.config/fish/config.fish" | |
alias sopsh="command atom ~/.ssh/config" | |
alias again=". ~/.config/fish/config.fish" | |
alias ropsh="command sudo atom ~/.irbrc" | |
alias dumpit="pg_dump --format=c -h localhost manabalss > ~/Desktop/latest.dump" | |
# commands | |
alias rez_small="sips --resampleWidth 172" | |
alias lookup="command ps aux | grep" | |
alias fresh="command git checkout --" | |
# Rails | |
alias go!="rails s -b 127.0.0.1 -p 3000" | |
alias gos!="bundle exec puma -C config/puma.rb" | |
alias co!="rails c" | |
alias cos!="spring rails c" | |
# Git & Cap | |
alias push="command git push" | |
function puhs | |
echo "you probably meant 'push', ran dat." | |
push | |
end | |
alias puush="command git push origin master" | |
alias pull="command git pull" | |
alias puull="command git pull origin master" | |
function com | |
git add . | |
git commit -am $argv | |
end | |
alias gits="command git status" | |
alias ffs="command cap deploy:cold" | |
alias CPD="command cap production deploy" | |
alias turn="command git checkout" | |
# Atom hacks | |
alias ent="command atom ~/Documents/Copy/Dev\ Env/1Entries.rb" | |
alias a_cpp="command atom ~/Documents/cpp" | |
alias a_sl="command atom ~/Documents/SwissLanguages" | |
alias a_sha="command atom ~/Documents/SHProduct" | |
alias a_nord="command atom ~/Documents/nordenhealth" | |
alias a_mg="command atom ~/Documents/" | |
# dumpfile scp commands # Define scp variables in ~/.ssh/config /Users/augusts/.config/fish/config.fish | |
alias ssh_opsh="sudo nano ~/.ssh/config" | |
#CPP Produkcija | |
alias scp_cpp="scp CPP:/home/deployer/apps/cpp/latest.dump ~/Desktop/cpp.dump" | |
alias scp_s_cpp="scp CPP:/home/deployer/apps/cpp/s_latest.dump ~/Desktop/s_cpp.dump" | |
#Norden Produkcija | |
alias scp_nord="scp NORD:/home/deployer/apps/nordenhealth/latest.dump ~/Desktop/nord.dump" | |
alias scp_s_nord="scp NORD:/home/deployer/apps/nordenhealth/s_latest.dump ~/Desktop/s_nord.dump" | |
#SL | |
alias scp_sl="scp SL:/home/deployer/apps/SwissLanguages/latest.dump ~/Desktop/sl.dump" | |
#SLG | |
alias scp_slg="scp SLG:/home/deployer/apps/sl_game/latest.dump ~/Desktop/" | |
#SHProduct | |
alias scp_sha="scp SH:/home/deployer/apps/shproduct/latest.dump ~/Desktop/sha.dump" | |
#Dokku | |
alias scp_dokku="scp root@146.185.130.153:/root/latest.dump ~/Desktop/" | |
#Dokku2 | |
alias scp_dokku2="scp root@178.62.175.11:/home/dokku/latest.dump ~/Desktop/" | |
#Mailigen platform | |
alias scp_mg="scp MG:/home/deployer/apps/contact_platform/latest.dump ~/Desktop/cp.dump" | |
alias scp_cp="scp_mg" | |
# blog.stockholmhealth.com | |
alias scp_blog_stock="scp -rp root@37.139.25.144:/var/www/html ~/Desktop/" | |
alias dev_noti="cd ~/Documents/development_notification; and rvm use 2.2.3@dev_noti" | |
# CPP paths | |
alias cpp="cd ~/Documents/cpp; and rvm use 2.3.0@cpp" | |
alias CPP="command ssh -p 9917 deployer@146.185.168.135" | |
function restore_cpp | |
cpp | |
rake db:drop db:create | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d cpp ~/Desktop/cpp.dump | |
rake db:migrate db:seed | |
end | |
alias paypal="cd /Users/developer/Documents/creative-paypal-express; and rvm use 2.1.2@paypal" | |
# Norden paths | |
alias nord="cd ~/Documents/nordenhealth; and rvm use 2.0.0@nord" | |
alias staging="command ssh deployer@188.226.246.199" | |
alias NORD="command ssh -p 39011 deployer@37.139.21.15" | |
function restore_nord | |
nord | |
rake db:drop db:create | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d nord ~/Desktop/nord.dump | |
rake db:migrate db:seed | |
end | |
# Swisslanguages paths | |
function sl | |
cd ~/Documents/SwissLanguages | |
rvm use 2.1.2@swiss | |
end | |
alias SL="ssh SL" | |
function restore_sl | |
sl | |
rake db:drop db:create | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d swiss ~/Desktop/sl.dump | |
rake db:migrate db:seed | |
end | |
# Swisslanguages_game paths | |
function slg | |
cd ~/Documents/sl_game | |
rvm use 2.2.3@sl_game | |
end | |
alias SLG="ssh -p 7361 deployer@178.62.187.22" | |
function restore_slg | |
slg | |
rake db:drop db:create | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d sl_game ~/Desktop/latest.dump | |
rake db:migrate db:seed | |
end | |
# SH Product paths | |
alias sha="cd ~/Documents/SHProduct; and rvm use 2.1.2@sha" | |
alias creative_subs="cd ~/Documents/creative_subscriptions; and rvm use 2.1.2@sha" | |
alias SH="ssh SH" | |
alias SH_S="ssh -p 57123 deployer@146.185.130.153" | |
function restore_sha | |
sha | |
rake db:drop db:create | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d sha ~/Desktop/sha.dump | |
rake db:migrate db:seed | |
rake db:migrate db:seed RAILS_ENV=test | |
end | |
alias ccb="cd ~/Documents/ccb; and rvm use 2.3.1@ccb" | |
alias cbs="ccb" | |
alias crb="cd ~/Documents/crb; and rvm use 2.3.1@crb" | |
alias pbs="crb" | |
alias flash-example="cd ~/Documents/creative-flash-example; and rvm use 2.3.1@creative-flash-example" | |
# Dokku | |
alias DOKKU="ssh DOKKU" | |
# Ja kāds no konteineeriem gļuko, paskaties gist dokku workflow restart pavēles | |
# Dokku2 (blogs) | |
alias DOKKU2="ssh root@DOKKU2" | |
alias BLOGS="ssh root@BLOGS" | |
# STAGING dokku droplet | |
alias STAGING="ssh STAGING" | |
# mailigen gem | |
alias mailigen="cd ~/Documents/mailigen; and rvm use 2.0.0@mailigen_gem" | |
# Contact Platform | |
alias contact_platform="cd ~/Documents/contact_platform; and rvm use 2.2.2@mailigen" | |
alias mg="cd ~/Documents/contact_platform; and rvm use 2.2.2@mailigen" | |
alias MG="ssh -p 39222 deployer@146.185.183.196" | |
function restore_cp | |
mg | |
rake db:drop db:create | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d cp ~/Desktop/cp.dump | |
rake db:migrate db:seed | |
end | |
function restore_mg | |
restore_cp | |
end | |
# GeoLocale gem | |
alias geo_locale="cd ~/Documents/geo_locale; and rvm use 2.0.0@geo_locale" | |
# CPS gem | |
alias cps="cd ~/Documents/complete_payment_systems; and rvm use 2.1.5@cps" | |
# SacPS gem | |
alias SacPS="cd ~/Documents/SacPS; and rvm use 2.2.0@SacPS" | |
# Leadersend gem | |
alias LS="cd ~/Documents/leadersend; and rvm use 2.1.2@LS" | |
# Priscilla gem | |
alias PR="cd ~/Documents/priscilla; and rvm use 2.1.2@PR" | |
# dokku droplet 1 | |
alias APPS="ssh APPS" | |
# Priscilla gem | |
alias APPS2="ssh APPS2" | |
alias CWP="ssh CWP" # log into Creative website, the WP site | |
# Redirected | |
alias red="cd ~/Documents/Redirecter; and rvm use 2.1.2@red" | |
# Redirected | |
alias nic_red="cd ~/Documents/NicRedirecterTemplate; and rvm use 2.2.3@nic_red" | |
# PP-Adaptive gem | |
alias pp="cd ~/Documents/pp-adaptive; and rvm use 2.2.0@pp-adaptive" | |
# Prezidenti path | |
alias candy="manab; and cd vendor/engines/prezidenti" | |
# AB_test path | |
alias ab_test="cd ~/Documents/ab_manager; and rvm use 2.1.3@ab_manager" | |
# creative-lab path | |
alias lab="cd ~/Documents/creative-lab; and rvm use 2.3.1@lab" | |
# Creative subscriptions path | |
alias cs="cd ~/Documents/creative_subscriptions; and rvm use 2.1.2@cs" | |
# Creative tracking path | |
alias creative_track="cd ~/Documents/activity_tracker; and rvm use 2.1.2@track" | |
# Eyeglobal app path | |
alias eye="cd ~/Documents/eyeglobal_app; and rvm use 2.3.1@eye" | |
# Creativegs | |
alias creativegs="cd ~/Documents/creativegs; and rvm use 2.2.3@hompeage" | |
# Minichat path (failed) | |
alias minichat="cd ~/Documents/SitepointMiniChat; and rvm use 2.0.0@minichat" | |
# test shortcode | |
alias shortcode_test="cd ~/Documents/shortcode_test; and rvm use 2.2.3@test" | |
# blogCMS | |
alias uzveselibu="cd ~/Documents/blogCMS; and rvm use 2.2.3@blogCMS" | |
# Creative Invoice Platform | |
alias cip="cd ~/Documents/creative_invoice_platform; and rvm use 2.3.1@cip" | |
# Creative Invoice Platform | |
alias cpn="cd ~/Documents/creative_push_notifications; and rvm use 2.1.2@cpn" | |
# BanklinkGS | |
alias banklink="cd ~/Documents/banklink_gs; and rvm use 2.0.0@banklink" | |
# Crossales | |
alias cross="cd ~/Documents/crossales; and rvm use 2.2.2@cross" | |
alias docs="cd ~/Documents/Documentation" | |
alias a_docs="docs; and atom ." | |
####### Aux ############ | |
alias ranger="cd ~/Documents/ranger; and rvm use 2.2.0@ranger" | |
alias hashrush="cd ~/Documents/hashrush; and rvm use 2.1.2@rush" | |
alias cru="cd ~/Documents/creative_rails_utilities; and rvm use 2.2.0@cru" | |
# makes a script globally readable in a bin folder | |
function scriptize | |
sudo chmod 744 $argv | |
sudo chmod -x $argv | |
end | |
# prints given string given times `do_str = 8` | |
function do_str | |
for i in (seq $argv[2]) | |
printf $argv[1] | |
end | |
end | |
# same. maybe faster `underl` `underl = 8` | |
function underl -a char -a length | |
printf '%*s\n' $length "" | tr ' ' $char | |
end | |
function down | |
sudo shutdown -h $argv | |
end | |
function antigua | |
cd ~/.atom/packages/antigua-dark-syntax/ | |
a | |
end | |
function regenerate | |
sha | |
mina rake[aux:decrease_level_progress[$argv[1]]] | |
end | |
function bomb -a process_name | |
ps -ef | grep $process_name | grep -v grep | awk '{print $2}' | xargs kill | |
echo -e "Killed all processes containing $process_name" | |
end | |
set -g -x fish_greeting '' | |
echo -e "Proceed to \033[38;5;208m☣ fishy ☣\033[0;00m business!" | |
redis-server --port 6390 --daemonize yes | |
echo -e "Booted redis:6390" | |
#function fish_prompt | |
# echo "☣" | |
#end | |
rvm default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment