Skip to content

Instantly share code, notes, and snippets.

@bentglasstube
bentglasstube / quest.pl
Created November 27, 2012 19:12
Random quest generator
#!/usr/bin/perl
use strict;
use warnings;
my %data = (
subject => [
'A <modifier> <person> named <name>',
'A <modifier> <person> named <name>',
'<title> <name>',
@bentglasstube
bentglasstube / HexBase64.pm
Created September 16, 2012 01:14
Generate base64 to base16 look-up tables
package HexBase64;
use strict;
use warnings;
use base 'Exporter';
our @EXPORT = (qw(base64_to_hex hex_to_base64));
# lookup tables for conversion
Steve: wtf is a gramophone
Alan: ben franklink invetned it
record player with the horn thing
Steve: dude
Alan: instead of speakers
Steve: is he like the oscar meyer version of ben franklin?
Alan: yup
Steve: awesome
does he taste like a hot god?
Alan: he was made of sausage links
@bentglasstube
bentglasstube / notify.pm
Created September 14, 2012 21:06
Notification plugin for ZNC
use base 'ZNC::Module';
sub module_types {
$ZNC::CModInfo::UserModule;
}
sub description {
"Notify you when you are not attached to ZNC";
}
@bentglasstube
bentglasstube / ZNC.pm
Created September 14, 2012 21:02
ZNC Perl Module Source
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
package ZNC;
use base qw(Exporter);
use base qw(DynaLoader);
package ZNCc;
checking for file conflicts...
filesystem: /var/lock exists in filesystem
filesystem: /var/run exists in filesystem
fontconfig: /etc/fonts/conf.d/20-unhint-small-vera.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/29-replace-bitmap-fonts.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-metric-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/30-urw-aliases.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/40-nonlatin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/45-latin.conf exists in filesystem
fontconfig: /etc/fonts/conf.d/49-sansserif.conf exists in filesystem
@bentglasstube
bentglasstube / phone_dock.c
Created August 2, 2012 06:32
Arduino sketch for Galaxy Nexus dock
// Dock configuration
const int DOCK_TYPE = 50; // 50 Desk 100 Car
const int DOCK_CHARGE = 50; // 50 AC 100 USB
const int DOCK_AUDIO = 100; // 50 Yes 100 No
// Pin configuration
const int pinLed = 0;
const int pinData = 2;
void setup() {
@bentglasstube
bentglasstube / names.txt
Created June 19, 2012 17:43
team names
Scrotal Kabuki
Prison Grape
Ready to Receive Sausage
I Only Pull It Out When It's Wrinkly
Is It Winkin'?
Leech Blow Job
I Rock That Smell
Dick Smooch
You Can Rub It On Your Pants
Gettin' Lucky with Rufies
@bentglasstube
bentglasstube / file with spaces
Created June 5, 2012 07:26
testing uri hash encoding
how does this encode
@bentglasstube
bentglasstube / Makefile
Created June 5, 2012 04:42
blosxom-git-deploy
.PHONY: all clean server
all: htdocs/index.html htdocs/style.min.css
htdocs/index.html: data/*
perl blosxom.cgi -password=awesome
find htdocs -mindepth 2 -name 'index.rss' -delete
htdocs/style.min.css: style.less
lessc -x style.less > htdocs/style.min.css