Skip to content

Instantly share code, notes, and snippets.

@fabien7337
fabien7337 / gist:8043859
Created December 19, 2013 18:26
Git Branch/Rebase Workflow
git co master
git pull
git co -b new_branch_for_task
git add modified_files
git ci -m "adding new feature"
git fetch origin
git rebase origin/master
git co master
git pull
git rebase new_branch_for_task
@fabien7337
fabien7337 / Nginx SSL
Last active February 12, 2016 15:13
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
sudo service nginx stop
cd /opt/letsencrypt
./letsencrypt-auto certonly --standalone -d example.com -d www.example.com
# In Nginx conf file
ssl on;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;