Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"image"
"log"
"os"
"github.com/BurntSushi/xgb/randr"
"github.com/BurntSushi/xgbutil"
@proxypoke
proxypoke / np_pp.py
Created April 28, 2013 13:19
Display the currently playing song on Pingie Pie++!
#!/usr/bin/env python3
import time
import requests # pip install requests
import sh # pip install sh
MPD_HOST = "mpd.rzl"
SCROLL_WIDTH = 20
@proxypoke
proxypoke / mkrole
Created August 27, 2014 16:55
mkrole - create an ansible role skeleton
#!/bin/sh
# create the directory structure and some files
# for an ansible role
ROLE=$1
if [ -z "$ROLE" ]; then
echo "need a role name"
exit 1
fi
@proxypoke
proxypoke / kosmos.vim
Created November 6, 2012 08:29
a vim colorscheme
" 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
@proxypoke
proxypoke / pre-commit.sh
Created May 24, 2012 13:32
go pre-commit git hook
#!/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
@proxypoke
proxypoke / dupfiles.py
Created August 14, 2012 19:54
dupfile.py -- find duplicate files in a folder hierarchy
#!/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 / numreplies.yaml
Created March 31, 2012 13:50
IRC Numeric Replies in 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