Skip to content

Instantly share code, notes, and snippets.

server {
listen 443;
server_name git.eatabrick.org;
error_log /var/log/nginx/git.error.log;
access_log /var/log/nginx/git.access.log;
# ssl because cox sucks
ssl on;
ssl_certificate /etc/nginx/ssl/git.eatabrick.org;
# path to git projects (<project>.git)
$projectroot = "/home/git/repositories/";
# directory to use for temp files
$git_temp = "/tmp";
# html text to include at home page
$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
@bentglasstube
bentglasstube / pwm.sh
Created May 31, 2012 19:05
bash password manager
#!/bin/sh
FILE="$HOME/Dropbox/passwords.gpg"
output=""
search=""
while (( "$#" )); do
if [[ $1 == "-o" ]]; then
output="yes"
else
@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
@bentglasstube
bentglasstube / file with spaces
Created June 5, 2012 07:26
testing uri hash encoding
how does this encode
@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 / 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() {
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 / 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;
@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";
}