I hereby claim:
- I am jordanmilne on github.
- I am largenocream (https://keybase.io/largenocream) on keybase.
- I have a public key whose fingerprint is D39D AEC8 56F2 2C2B A0ED BFC6 BADF 89BE FF6F 9ED3
To claim this, I am signing this object:
flashpolicyd runs the policy server that tells flash it can access the port for our echo server. | |
term_echo_server just logs whatever it receives to the console. | |
both are python2 and flashpolicyd must run as root unless you have some other way of binding to low ports. |
>>> def compare_parse(url): | |
... from urllib3.util.url import parse_url | |
... import urlparse | |
... print "urlparse:", repr(urlparse.urlparse(url)) | |
... print "urllib3:", repr(parse_url(url)) | |
... | |
>>> compare_parse("//foo:a@google.com/") | |
urlparse: ParseResult(scheme='', netloc='foo:a@google.com', path='/', params='', query='', fragment='') | |
urllib3: Url(scheme=None, auth=None, host=None, port=None, path='//foo:a@google.com/', query=None, fragment=None) |
#!/bin/bash | |
#find possibly broken source files that will need to be manually fixed | |
( \ | |
find ../code -type f -iname "*.java" -print0 | xargs --null grep -l '// Byte code:' && \ | |
find ../code -type f -iname "*.java" -size 0 \ | |
) | uniq |
import praw | |
from functools import wraps | |
def init_wrapper(func): | |
@wraps(func) | |
def func_wrapper(*args, **kwargs): | |
ret = func(*args, **kwargs) | |
if ret: | |
ret._site_url = ret._site_url.replace('http:', 'https:') | |
ret._short_domain = ret._site_url.replace('http:', 'https:') |
From 2aea5633663dd0b91d55a80a17ad22edfb23731f Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Felix=20Gr=C3=B6bert?= <groebert@google.com> | |
Date: Mon, 7 Oct 2013 15:44:48 +0200 | |
Subject: [PATCH 1/9] pytaint patch | |
--- | |
Include/Python.h | 3 + | |
Include/meritobject.h | 28 + | |
Include/pyerrors.h | 1 + | |
Include/stringobject.h | 53 +- |
I hereby claim:
To claim this, I am signing this object:
LF | |
$ ./stmd --ast foo.md | |
document | |
paragraph | |
str "Normal paragraph" | |
paragraph | |
str "Paragraph 2" | |
paragraph | |
str "foo " |
>>> import simplejson | |
>>> print simplejson.dumps({"foo<>":"<>bar&"}, cls=simplejson.JSONEncoderForHTML) | |
{"foo\u003c\u003e": "\u003c\u003ebar\u0026"} |