View hosted-on-cloudflare.py
#!/usr/bin/python3
import argparse
# pip install urlextract dnspython tldextract
import dns.name
import dns.resolver
import urlextract
import tldextract
View friendcode.py
#!/usr/bin/python3
# Released into the public domain, where possible (http://creativecommons.org/publicdomain/zero/1.0/)
import sys
import re
import hashlib
fc = sys.argv[1]
parts = re.match('^(\d{4})-(\d{4})-(\d{4})$', fc)
View movember-everywhere.user.js
// ==UserScript==
// @name Movember everywhere!
// @namespace http://november.mustdie.de/
// @description Replace November with Movember
// @include *
// @version 6
// @downloadURL https://gist.github.com/TobiX/69b75e601b9bc0f39adf/raw/movember-everywhere.user.js
// @grant none
// ==/UserScript==
View pre-commit
#!/bin/sh
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook
# Make sure that the log message contains some text.
if ! $SVNLOOK log -t "$TXN" "$REPOS" | \
grep "[a-zA-Z0-9]" > /dev/null
View kill-mcafee.user.js
// ==UserScript==
// @name Disable Flash McAfee Offer
// @icon https://get3.adobe.com/favicon.ico
// @namespace http://flash.mustdie.de/
// @include http*://get*.adobe.com/*flashplayer*
// @downloadURL https://gist.githubusercontent.com/TobiX/289db6350f1c60edd460/raw/kill-mcafee.user.js
// @version 5
// @grant none
// ==/UserScript==
View music-dup-finder.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
import acoustid
import xdg.BaseDirectory
import apsw
def setwal(db):
View laola.rb
#!/usr/bin/env ruby
# we do ECMA-48 / vt100 only - this may be portable or not...
TIOCGWINSZ = 0x5413
Alternative = true
if !Alternative then
NormalPerson = [
' o ',
'/O\\ ',
View Debian Timescale Output
--- Debian history ---
Version 0.93R6 was released 1995-10-26
235 days (0.64384 years) later came Version 1.1 (buzz)
178 days (0.48767 years) later came Version 1.2 (rex)
175 days (0.47945 years) later came Version 1.3 (bo)
414 days (1.13425 years) later came Version 2.0 (hamm)
228 days (0.62466 years) later came Version 2.1 (slink)
525 days (1.43836 years) later came Version 2.2 (potato) (freeze time: 212 days)
703 days (1.92603 years) later came Version 3.0 (woody) (freeze time: 383 days)
1053 days (2.88493 years) later came Version 3.1 (sarge) (freeze time: 34 days)
View SynCrtSock.pas.diff
Index: SynCrtSock.pas
===================================================================
--- SynCrtSock.pas (revision 53301)
+++ SynCrtSock.pas (working copy)
@@ -900,9 +900,12 @@
/// WinINet exception type
EWinINet = class(Exception)
+ private
+ fCode: Cardinal;
View gist:4131070
--- SynCrtSock.pas.orig 2012-11-21 08:16:54.000000000 +0100
+++ SynCrtSock.pas 2012-11-22 13:43:38.000000000 +0100
@@ -938,6 +938,8 @@
// corresponding to the file (e.g. by calling GetMimeContentType() function
// from SynCommons supplyings the file name)
HTTP_RESP_STATICFILE = '!STATICFILE';
+ // While reading an HTTP response, read it in blocks of this size. 8K for now.
+ HTTP_RESP_BLOCK_SIZE = 8*1024;
/// create a TCrtSocket, returning nil on error