Skip to content

Instantly share code, notes, and snippets.

@jseguillon
Created September 1, 2021 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jseguillon/1262bef4e572a46c0f0df70069c75c6a to your computer and use it in GitHub Desktop.
Save jseguillon/1262bef4e572a46c0f0df70069c75c6a to your computer and use it in GitHub Desktop.
bashrodinger
alias πŸ”¬="bash -c '\
touch πŸ“¦; \
chmod u+w πŸ“¦; chmod u-r πŸ“¦; \
(while true; \
do \
[ \$(shuf -i 0-1 -n 1) == 0 ] && \
echo πŸ±πŸ’£ > πŸ“¦ \
|| echo πŸ’€πŸ’₯ > πŸ“¦ ; \
sleep 0.1; \
done) &\
jobs -p %1 > /tmp/πŸ“¦.πŸ”‘' 2> /dev/null"
alias πŸ‘€="bash -c '\
chmod u-w πŸ“¦; chmod u+r πŸ“¦; \
echo πŸ“¦ = \$(cat πŸ“¦)'"
alias πŸ›‘="bash -c 'kill \$(cat /tmp/πŸ“¦.πŸ”‘) > /dev/null 2>1 \
|| true'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment