Skip to content

Instantly share code, notes, and snippets.

@proxypoke
proxypoke / numreplies.yaml
Created Mar 31, 2012
IRC Numeric Replies in YAML
View numreplies.yaml
# This file is a transcription of RFC 1459 section 6 into YAML, so that
# programs written in any language may utilize it. It describes the
# various numeric replies an IRC server may send, their canonical name,
# number and a short description, if available.
#
# Copywrong (c) 2012 slowpoke (Proxy) < proxypoke at lavabit dot com >
# This file is licensed under the terms of the WTFPL v2.
#
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@proxypoke
proxypoke / pre-commit.sh
Created May 24, 2012
go pre-commit git hook
View pre-commit.sh
#!/bin/bash
# Author: slowpoke <proxypoke at lavabit dot com>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
#
# A pre-commit hook for go projects. In addition to the standard
View anti-license.txt
THE ANTI-LICENSE
ver. β
This is not a license.
This is a manifesto.
There is no copyright.
There is only free information.
There is no intellectual property.
@proxypoke
proxypoke / zfs_aur.patch
Created Jul 11, 2012
zfs patch for the AUR package (by green)
View zfs_aur.patch
diff -Nru zfs.orig/configure.ac-patch zfs/configure.ac-patch
--- zfs.orig/configure.ac-patch 1970-01-01 03:00:00.000000000 +0300
+++ zfs/configure.ac-patch 2012-06-30 23:43:57.168640000 +0400
@@ -0,0 +1,21 @@
+--- configure.ac.orig 2012-06-30 23:38:54.438597000 +0400
++++ configure.ac 2012-06-30 23:40:12.943990000 +0400
+@@ -60,8 +60,18 @@
+ dracut/90zfs/Makefile
+ udev/Makefile
+ udev/rules.d/Makefile
@proxypoke
proxypoke / zfs_aur.patch
Created Jul 11, 2012
zfs patch for the AUR package (by green)
View zfs_aur.patch
diff -Nru zfs.orig/configure.ac-patch zfs/configure.ac-patch
--- zfs.orig/configure.ac-patch 1970-01-01 03:00:00.000000000 +0300
+++ zfs/configure.ac-patch 2012-06-30 23:43:57.168640000 +0400
@@ -0,0 +1,21 @@
+--- configure.ac.orig 2012-06-30 23:38:54.438597000 +0400
++++ configure.ac 2012-06-30 23:40:12.943990000 +0400
+@@ -60,8 +60,18 @@
+ dracut/90zfs/Makefile
+ udev/Makefile
+ udev/rules.d/Makefile
View go_read_the_source.md

Go read the source

I'd like to confess something.

In all my time coding Python, which I still consider my primary and favorite language, I haven't read much source code of the standard library, and never once taken a look at the internals of CPython. Okay, I lied, I once read the documentation about the sorting algorithm, [Timsort][], but that's about it.

@proxypoke
proxypoke / dupfiles.py
Created Aug 14, 2012
dupfile.py -- find duplicate files in a folder hierarchy
View dupfiles.py
#!/usr/bin/env python
# Recursively find duplicate files.
#
# Author: slowpoke (Proxy) < mail at slowpoke dot io >
#
# This program is free software under the non-terms
# of the Anti-License. Do whatever the fuck you want.
import argparse
import hashlib
@proxypoke
proxypoke / kosmos.vim
Created Nov 6, 2012
a vim colorscheme
View kosmos.vim
" Name: KOS-MOS vim colorscheme
" Author: slowpoke <mail at slowpoke dot io>
" License: WTFPLv2
" Version: 0.1 (Work in Progress)
" About: A colorscheme inspired by and in dedication to the lovely female
" android from the Xenosaga series.
" some boilerplate
set background=dark
highlight clear
View gist:4285774
LD [M] /home/slowpoke/src/linux-ck/zfs/zfs/src/zfs-0.6.0-rc12/module/zfs/zfs.o
Building modules, stage 2.
MODPOST 6 modules
FATAL: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'delayed_work_timer_fn'
make[4]: *** [__modpost] Error 1
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/usr/src/linux-3.7.0-1-ck'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/slowpoke/src/linux-ck/zfs/zfs/src/zfs-0.6.0-rc12/module'
make[1]: *** [all-recursive] Error 1
View bernd.py
#!/usr/bin/python
import blackbox
import re
ach = re.compile("(\s+|^)ach\s+[^\s]+\s*", re.I)
def main():
irc = blackbox.IRC(ssl=True)
You can’t perform that action at this time.