Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| from django.contrib.sessions.backends.base import SessionBase, CreateError | |
| from django.conf import settings | |
| from django.utils.encoding import force_unicode | |
| import redis | |
| class SessionStore(SessionBase): | |
| """ Redis store for sessions""" | |
| def __init__(self, session_key=None): | |
| self.redis = redis.Redis( |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import os, sys, codecs | |
| BUFSIZE = 4096 | |
| BOMLEN = len(codecs.BOM_UTF8) | |
| path = sys.argv[1] | |
| with open(path, "r+b") as fp: | |
| chunk = fp.read(BUFSIZE) | |
| if chunk.startswith(codecs.BOM_UTF8): | |
| i = 0 |
| sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction |
| <?xml version="1.0" encoding="ISO-8859-1"?> | |
| <vxml version="2.0" lang="en"> | |
| <form> | |
| <block> | |
| <prompt bargein="false">Hello world! | |
| </prompt> | |
| </block> | |
| </form> | |
| </vxml> |
| FALLOUT | |
| VAULT-13 PERSONNEL RECORD | |
| 25 July 2241 0824 hours | |
| Name: O Age: 33 Gender: Male | |
| Level: 01 Exp: 0 Next Level: 1,000 | |
| ::: Statistics ::: | |
| Strength: 04 Hit Points: 028/027 Sequence: 04 | |
| Perception: 09 Armor Class: 009 Healing Rate: 01 |
| rate "999999" | |
| cl_updaterate "128" | |
| cl_cmdrate "128" | |
| cl_interp_ratio "1" | |
| cl_interp "0" | |
| fps_max "999" | |
| volume "0.3" |