This file contains hidden or 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
INSTRUCTIONS: | |
sudo apt-get install vim git curl |
This file contains hidden or 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
(ActiveRecord::Base.connection.tables.map { |model| model.capitalize.singularize.camelize }).sort_by{|word| word.downcase}.reject {|r| r == "SchemaMigration" || r == "Session" } |
This file contains hidden or 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
openssl req -new -newkey rsa:2048 -nodes -keyout app.swisslanguages.com.key -out app.swisslanguages.com.csr |
This file contains hidden or 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
for CHAR in (ls phrase/locales/phrase.* | cut -d "." -f2) | |
grep firstdata_lv phrase/locales/phrase.$CHAR.yml | grep code | sed -e 's/firstdata_lv/cps_lv/g' > ~/Documents/cps_translations/$CHAR.yml | |
end |
This file contains hidden or 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
for TRANS in `cat ~/transactions`; do echo "__"$TRANS"__" && cat ~/apps/nordenhealth/shared/log/unicorn.log | grep '"VK_SERVICE"=>"1101"' | grep '"VK_STAMP"=>"'$TRANS'"' ; done | |
for TRANS in `echo 102344`; do echo "__"$TRANS"__" && cat ~/apps/nordenhealth/shared/log/unicorn.log | grep '"VK_SERVICE"=>"1101"' | grep '"VK_STAMP"=>"'$TRANS'"' ; done |
This file contains hidden or 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
ssh deployer@$ip | |
pg_dump --format=c -h localhost --username norden nordenhealth > latest.dump | |
scp deployer@$ip:/home/deployer/latest.dump ~/Desktop/ | |
rake db:drop db:create;and pg_restore --verbose --clean --no-acl --no-owner -h localhost -U girts -d nordenhealth_development ~/Desktop/latest.dump |
This file contains hidden or 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 your oh-my-fish. | |
set fish_path $HOME/.oh-my-fish | |
set fish_plugins git rails rvm | |
# Theme | |
set fish_theme robbyrussell | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/ | |
# Example format: set fish_plugins autojump bundler |
This file contains hidden or 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
sudo su postgres -c psql | |
ALTER USER myuser WITH SUPERUSER; |
This file contains hidden or 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
sudo apt-get install postgresql postgresql-contrib | |
sudo -u postgres createuser sac |
This file contains hidden or 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
1. gem uninstall net-ssh | |
2. bundle install | |
3. sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id | |
4. sudo chmod +x /usr/local/bin/ssh-copy-id | |
5. ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected] |