Skip to content

Instantly share code, notes, and snippets.

@bronsen
Last active May 18, 2022 07:36
Show Gist options
  • Save bronsen/9000037 to your computer and use it in GitHub Desktop.
Save bronsen/9000037 to your computer and use it in GitHub Desktop.
feierabend!
#!/usr/bin/zsh
echo 'Commencing Feierabend'
git stash
git switch main
git stash pop
git commit -a -m 'Feierabend'
git push --force origin main
/usr/bin/expect -c "spawn fab production deploy; expect 'out: sudo password:'; send 'dieRuthbacktsogut';"
echo 'Feierabend accomplished'
sudo shutdown -h now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment