Skip to content

Instantly share code, notes, and snippets.

@lesm
Last active July 2, 2020 00:59
Show Gist options
  • Save lesm/ae8bf9a9b285ce58b98cb58a8c3accea to your computer and use it in GitHub Desktop.
Save lesm/ae8bf9a9b285ce58b98cb58a8c3accea to your computer and use it in GitHub Desktop.
psql -U rails -d name_database -f ./file.sql -h localhost
scp user:domain:/path/file .
ssh-add
BRANCH_NAME=my_branch cap staging deploy
git reset --hard origin/master
CREATE EXTENSION unaccent;
Host *
ServerAliveInterval 60
:new-session -s name -c "/home/silva/..."
:attach-session -c "/new/path/..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment