Skip to content

Instantly share code, notes, and snippets.

@jul
jul / get_unbound_adblock.sh
Last active September 3, 2025 09:51
update unbound adblocklist
#!/bin/bash
#
# FUCKING PUBLIC LICENCE
# This code belongs to me jul@github.com/@obnoxiousJul and all (insert <#alias>) contributing in making it fun.
# And fucking stop being Pissenlit Würzel Schleckers met bigoudis with open source devs and maintainers
# v 0.6 updated source of doh, and oisd, works on linuxmint, use always_null from unbound for adblocking
# v 0.5.1 cross devuan/debian restarting of unbound
# v 0.5 having fun
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
[13:07:30] <mitsuhiko> does anyone have any ideas why upstart sometimes i unable to pickup changes?
[13:07:41] <mitsuhiko> how does one go about debugging upstart?
[13:13:39] jodh (~jodh@host-78-146-12-30.as13285.net) left IRC. (Ping timeout: 265 seconds)
[13:17:24] jodh (~jodh@host-78-147-31-235.as13285.net) joined the channel.
[13:29:39] <mitsuhiko> does this ring a bell to anyone? https://gist.github.com/5f9061af79bb8b38d240
[13:29:59] Md (~md@freenode/staff/md) joined the channel.
[13:30:00] <mitsuhiko> service start just hangs
[13:31:14] <mitsuhiko> i can confirm it does not even manage to start the executable
[13:31:19] <mitsuhiko> god knows what it waitpids for
[13:32:43] robotfuel (~robotfuel@ubuntu/member/robotfuel) joined the channel.
@jul
jul / python_makes_me_sexy.py
Created April 28, 2012 21:55
telling a story in python
#!/usr/bin/env python
me = "freaky"
print "before I was %s" % me
from re import compile as cum
twist = lambda x : str(x).encode("rot-13")
D = 8
print "I was always thinking of s%sx" % chr(int( "".join(reduce( lambda x : x+y , cum("(.)(.)").findall("69") ))))
print "coding transformed me the following way"
print "I became %s" % (8==D and twist(cum( "(.)(.).(y)").sub( twist("x") + 'v' + twist(chr(69)) + chr(69), me)))