- install python 2.7.9 from here https://www.python.org/downloads/; if using a different python, then you may need to install pip using get-pip.py
- add the directory located at C:\python27\scripts to the end of your path with
;C:\python27\scipts
- upgrade pip to ensure that you have a version that supports installing wheels -
pip install -U pip
- run
pip install virtualenv
- run
virtualenv venv
- if using:
cmd
run.\venv\activate
powershell
run.\venv\Scripts\activate.ps1
. By default,powershell
doesn't allow execution of unsigned scripts. This can be turned off by setting the execution policy to a more permissive setting. This can be done with open powershell and typing:Set-ExecutionPolicy Unrestricted
. You will then be prompted about whether or not you'd like to really allow this; to accept typeY
and hit enter.git bash prompt
runsource ./venv/Scripts/activate
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
import os | |
import pem | |
from twisted.application.service import Application | |
from twisted.application.internet import ( | |
TCPServer, | |
SSLServer | |
) |
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
> There's two routes I see to making our system resilient. | |
There are two routes... | |
> And of course they nothing in this attack | |
And of course they do nothing ... |
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
from __future__ import print_function | |
""" | |
The "tests" here are intended to be used as benchmarks to help in performance | |
optimization. | |
""" | |
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor, as_completed | |
from time import time |
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
> create table spam(spot inet[]); | |
> insert into spam values (ARRAY['192.168.1.1'::inet]); | |
> account_service=> select * from spam; | |
spot | |
--------------- | |
{192.168.1.1} |
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
from twisted.internet import reactor | |
from twisted.web.server import Site | |
from twisted.web.resource import Resource | |
class Page(Resource): | |
def render_GET(self, request): | |
return "hi".encode('utf-8') |
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
""" | |
Dump current deferred state. | |
> Anyway, given a tree of deferreds, this will produce a whatever.dot | |
> file, which can be fed to graphviz' "dot -Tpdf whatever.dot > | |
> whatever.pdf", >and the pdf has a rather nice-looking graph of the | |
> deferreds. | |
http://twistedmatrix.com/pipermail/twisted-python/2012-July/025867.html |
I hereby claim:
- I am derwolfe on github.
- I am derwolfe (https://keybase.io/derwolfe) on keybase.
- I have a public key whose fingerprint is A274 2664 0C95 BAF9 A452 E51C BC97 2703 EE6A 93EC
To claim this, I am signing this object:
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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
I am cycling my GPG key. | |
My old key has fingerprint: | |
B256 481D 41F3 7AF2 29C2 A3D2 A008 BD38 361C 4770 | |
My new key has fingerprint: |
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
klein |
NewerOlder