Skip to content

Instantly share code, notes, and snippets.

@aleozlx
Created May 1, 2019 20:35
Show Gist options
  • Select an option

  • Save aleozlx/e3de6276ac88f272dfabdf71965d8d7e to your computer and use it in GitHub Desktop.

Select an option

Save aleozlx/e3de6276ac88f272dfabdf71965d8d7e to your computer and use it in GitHub Desktop.
rabbithole.py
import os; os.system('mkdir -p /tmp/rabbithole && cd /tmp/rabbithole && ln -sf . 0 && ln -sf . 1'); [print(i[0]) for i in os.walk('.', followlinks=True)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment