Skip to content

Instantly share code, notes, and snippets.

@wo0dyn
Last active December 28, 2015 17:28
Show Gist options
  • Save wo0dyn/7535793 to your computer and use it in GitHub Desktop.
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…
# -*- 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)
⌘ + ⇥ 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
@nferrari
Copy link

<3

@magopian
Copy link

excellent :)

@wo0dyn
Copy link
Author

wo0dyn commented Nov 19, 2013

@nferrari @magopian › Thx dudes! 😉

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