I hereby claim:
- I am tusbar on github.
- I am tusbar (https://keybase.io/tusbar) on keybase.
- I have a public key whose fingerprint is 97DF 71BE 194E EA40 D4F6 FD21 FFB8 4101 F521 7D21
To claim this, I am signing this object:
--- tsocks.c.orig 2006-01-28 16:36:44.000000000 -0800 | |
+++ tsocks.c 2006-01-28 16:27:51.000000000 -0800 | |
@@ -99,6 +99,7 @@ | |
static int read_socksv4_req(struct connreq *conn); | |
static int read_socksv5_connect(struct connreq *conn); | |
static int read_socksv5_auth(struct connreq *conn); | |
+void _init(void) __attribute__ ((constructor)); | |
void _init(void) { | |
#ifdef USE_OLD_DLSYM |
cd /your/local/path/to/tweet-search/ | |
rm last-results.html | |
search.py {query} | |
open last-results.html |
define([ | |
"underscore" | |
], function (_) { | |
return { | |
_msJsonDateFormat: /\/Date\((\d+)(?:([\-+])(\d+))?\)\//i, | |
toJSON: function (date) { | |
if (!_.isDate(date)) { | |
return null; | |
} |
#! /usr/bin/env bash | |
cd /usr/share/redmine | |
log=log/fetch_repositories | |
pid=tmp/pids/fetch_repositories.pid | |
function log() { | |
date=$(/bin/date --rfc-3339=seconds) |
use strict; | |
use vars qw($VERSION %IRSSI); | |
use Irssi; | |
use utf8; | |
$VERSION = '1.0'; | |
%IRSSI = ( | |
authors=> 'tusbar', | |
contact=> 'b@pk.am', |
#!/usr/bin/env sh | |
url="$1" | |
while [ "$url" ]; | |
do | |
code=$(curl -I -s -o /dev/null -w "%{http_code}" "$url") | |
url=$(curl -I -s -o /dev/null -w "%{redirect_url}\n" "$url") | |
echo "$code $url" | |
done |
from mako.template import Template | |
with file('template.html') as foo: | |
print Template( | |
foo.read(), | |
output_encoding='utf-8', | |
input_encoding='utf-8', | |
default_filters=['decode.utf8', 'h'], | |
encoding_errors='replace' | |
).render() |
import json | |
def build_dict_prefix(current, new): | |
if current: | |
return '{}.{}'.format(current, new) | |
return new | |
def build_list_prefix(current, index): |
I hereby claim:
To claim this, I am signing this object:
document.querySelectorAll('input[type="radio"][value="10"]').forEach(r => { r.checked = true }); | |
document.querySelector('form').submit(); |