Skip to content

Instantly share code, notes, and snippets.

@bronsen
Last active May 18, 2022 07:36
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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