This file contains hidden or 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
| import os | |
| import json | |
| import hashlib | |
| import hmac | |
| import base64 | |
| from Crypto.Cipher import AES | |
| from phpserialize import loads, dumps | |
| def mcrypt_decrypt(value, iv): |
This file contains hidden or 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
| # I am not responsible &c | |
| # RCJ 2014 | |
| import sys | |
| import requests | |
| url = 'http://www.nirsoft.net/countryip/' + sys.argv[1] + '.csv' | |
| r = requests.get(url) | |
| if r.status_code != 200: | |
| print "Bad country code: " + sys.argv[1] |
This file contains hidden or 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
| #!/bin/bash | |
| # Gist: 11375877 | |
| # Url: https://gist.github.com/goodevilgenius/11375877 | |
| # | |
| # All memcache functions are supported. | |
| # | |
| # Can also be sourced from other scripts, e.g. | |
| # source membash.sh | |
| # MCSERVER="localhost" |
This file contains hidden or 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
| #!/bin/bash | |
| NAME="hello_app" # Name of the application | |
| DJANGODIR=/webapps/hello_django/hello # Django project directory | |
| SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket | |
| USER=hello # the user to run as | |
| GROUP=webapps # the group to run as | |
| NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
| DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use | |
| DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name |

