- not rekt
- robrecht
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 datetime import date, timedelta | |
from textwrap import wrap | |
years = timedelta(weeks=52) | |
tris = { | |
"fullname": "Tristram Oaten", | |
"email": "tris@blackgateresearch.com", | |
"bio": """I specialise in functional and object-oriented Javascript,Python and Django development | |
and high-availability Linux systems administration in a heterogeneous environment. |
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
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "`basename $0` {start|stop}" | |
exit | |
fi | |
case "$1" in | |
start) | |
/usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 & |
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
./manage.py schemamigration cms --auto; ./manage.py migrate && ./manage.py graph_models cms -g -o cms.svg && ./manage.py runserver_plus |
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 requests | |
available = lambda d: "is still available" in requests.get("http://www.checkdomain.com/cgi-bin/checkdomain.pl?domain={domain}.com".format(domain=str(d))).text |
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
while true | |
do | |
awk 'function wl() { | |
rate=64000; | |
return (rate/160)*(0.87055^(int(rand()*10)))}; | |
BEGIN { | |
srand(); | |
wla=wl(); | |
while(1) { | |
wlb=wla; |
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
class Literal: | |
'class for literal object creation from dictionaries' | |
def __init__(self, **kwargs): | |
self.__dict__.update(kwargs) |
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 random import choice | |
location = [ | |
"Go on a search for as many good climbing trees as possible", | |
"Go to a major chain bookstore", | |
"Have them dressed up as a ghost and you dress up as Pacman", | |
"Create photo evidence suggesting that you went on an adventure", | |
"Dress up as superheroes", | |
"Build forts out of furniture and blankets", |
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 smtpd | |
import asyncore | |
server = smtpd.DebuggingServer(('0.0.0.0', 25), None) | |
print "Server running, all emails sent to this server will be echoed to the screen." | |
asyncore.loop() |
Copy and paste this into your PR description. Sections are fine to be blank, but own the fact they are blank and leave them in. No documentation can be ok, but it must be deliberate.
## Description
A few sentences describing the overall goals of the pull request's commits.
## Related
List related PRs, issues, trello cards, etc.