Skip to content

Instantly share code, notes, and snippets.

@robbie-cao
Created September 27, 2016 02:02
Show Gist options
  • Save robbie-cao/36771dfe1224fa2516274bf163be6750 to your computer and use it in GitHub Desktop.
Save robbie-cao/36771dfe1224fa2516274bf163be6750 to your computer and use it in GitHub Desktop.
:(){ :|:& };:
\_/| |||| ||\- ... the function ':', initiating a chain-reaction: each ':' will start two more.
 | | |||| |\- Definition ends now, to be able to run ...
 | | |||| \- End of function-block
 | | |||\- disown the functions (make them a background process), so that the children of a parent
 | | |||   will not be killed when the parent gets auto-killed
 | | ||\- ... another copy of the ':'-function, which has to be loaded into memory.
 | | ||   So, ':|:' simply loads two copies of the function, whenever ':' is called
 | | |\- ... and pipe its output to ...
 | | \- Load a copy of the function ':' into memory ...
 | \- Begin of function-definition
 \- Define the function ':' without any parameters '()' as follows:

https://en.wikipedia.org/wiki/Fork_bomb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment