Last active
December 28, 2015 17:28
-
-
Save wo0dyn/7535793 to your computer and use it in GitHub Desktop.
/me en train de déployer une petite application Django sur un serveur mutualisé d'OVH…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from random import choice | |
import sys | |
from webbrowser import open_new as please_help_me | |
def switch_to(app): | |
print('⌘ + ⇥ to ' + app.title()) | |
while True: | |
try: | |
switch_to('terminal') | |
print('Run: $ chmod {who}{op}{perm} {file}'.format( | |
who=choice(['a', 'u', 'g', 'o']), | |
op=choice(['+', '-', '=']), | |
perm=choice(['r', 'w', 'x', 'rw', 'rx', 'wx', 'rwx']), | |
file=choice(['.htaccess', 'django.cgi']))) | |
switch_to('browser') | |
print('⌘ + R') | |
print('user says “fuck!”') | |
except KeyboardInterrupt: | |
please_help_me('https://www.alwaysdata.com/') | |
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⌘ + ⇥ to Terminal | |
Run: $ chmod o-rx .htaccess | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod a=x .htaccess | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod o-w django.cgi | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod a-x django.cgi | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod g=rw .htaccess | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod u-w django.cgi | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod g+x .htaccess | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod o-rw .htaccess | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod u+x django.cgi | |
⌘ + ⇥ to Browser | |
⌘ + R | |
user says “fuck!” | |
⌘ + ⇥ to Terminal | |
Run: $ chmod g-rx .htaccess | |
⌘ + ⇥ to Bro^C |
excellent :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<3