Skip to content

Instantly share code, notes, and snippets.

$ git bisect start
$ git bisect bad master ## that's ec091b6af2ad6f33f3b36c39171d7ef65b12668b, early in the 1.9 window
$ git bisect good 753452fac6f6963b5a6e38a239b05362385a3842 ## the release commit for 1.7.5
Bisecting: a merge base must be tested
[7a622740655bb5fcbd160eb96887032314842e6e] net/http: make Transport use new connection if over HTTP/2 concurrency limit
$ git bisect good
Bisecting: 1487 revisions left to test after this (roughly 11 steps)
C:\repos\winio-zstd-panic\bin>winio-zstd-panic.exe
******************************
client: making connection...
fatal error:
client: connected
unexpected signal during runtime execution
[signal 0xc0000005 code=0x0 addr=0xffffffffffffffff pc=0x40e395]
goroutine 18 [running]:
runtime.throw(0x4fd587, 0x2a)
<!DOCTYPE html>
<html>
<head>
<title>bezier demo</title>
<script type="text/javascript">
// globals
var c = null;
var ctx = null;
@mappu
mappu / gist:6971832
Last active December 25, 2015 11:49
# gununu.nipah.co.uk downloader
import urllib.request
import re
# Download all 334 pages.
# But range() counts up until one-less, because fuck you that's why (well, off-by-one indicing, that's why)
for i in range(1, 334 + 1):
print("Page " + str(i) + " of 334...")
#!/bin/bash
# heavensgate.sh
# Download all current available heavensgate.co.uk podcast episodes.
XMLSRC="http://audiops.net/_promo/heavensgate_facebook/list_audioplayer.php"
BASEDL="http://audiops.net/_promo/heavensgate_facebook/"
OUTDIR="`dirname $0`/heavensgate"
mkdir -p "$OUTDIR"
import time
import random
start = time.time()
SAMPLE_SIZE = 100000
def nothing():
time.time() # Man, python hates empty blocks
@mappu
mappu / MbCharacterStream.php
Last active December 21, 2015 00:09
Replacement \Swift_CharacterStream implementation based on the mb_ extension.
<?php
/**
* A CharacterStream implementation which skips over all the manual processing
* performed by NgCharacterStream in favour of using the mb_ extension.
*
* @package Swift
* @author mappu
*/
class Swift_CharacterStream_MbCharacterStream implements Swift_CharacterStream {
@mappu
mappu / gist:5632522
Last active December 17, 2015 15:29
#!/bin/bash
# Nyaaget (mappy 2013)
# Downloads torrents from nyaa and automatically adds them to transmission
#
# Usage: ./nyaaget "search terms"
#
# To run automatically every two hours:
# Run crontab -e to edit your user's crontab, and add a line like
# 0 */2 * * * /home/me/nyaaget/nyaaget.sh "Miya-k Miyakawa-ke no Kuufuku"