Skip to content

Instantly share code, notes, and snippets.

@DoWhileGeek
Last active October 16, 2019 15:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DoWhileGeek/5679012d20818372835b to your computer and use it in GitHub Desktop.
Save DoWhileGeek/5679012d20818372835b to your computer and use it in GitHub Desktop.
sudo woodo command line script
#!/usr/bin/env python
import os
def main():
if os.geteuid() != 0: # checks if sudo
print("It's a weird tree.")
else:
sudowoodo = """
_ __
/ `\ (~._ ./ )'
\__/ __`-_\__/ ./'
_ \ \/ \ \ |_ __'
( ) \__/ -^ \ / \'
\_/ " \ | o o |.. / __'
\\. --' ==== / || / \\'
\ . . |---__.\__/'
/ : / | |'
/ : / \_/'
--/ :: ('
( | ( (____'
.-- .. ----**.____)'
\___/
"""
print(sudowoodo)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment