Skip to content

Instantly share code, notes, and snippets.

@bnrubin
bnrubin / gbpopout.css
Last active January 20, 2021 18:45
Giant Bomb Chat Popout Userstyle
@-moz-document regexp(".*giantbomb\\.com/.*/popout.*") {
.chat-history__reply {
float: unset;
margin-left: 0px;
}
.chat-history__report {
float: right;
}
@bnrubin
bnrubin / config.json
Last active April 10, 2019 23:26
K-Type Config - Fingerprints + Red Outer Flash
{
"header": {
"Variant": "standard",
"Generator": "NONE",
"Base": "Base",
"Date": "2017-10-13",
"KLL": "0.5c",
"Author": "jbondeson (Jeremy Bondeson) 2017",
"Version": "0.2",
"Name": "KType",
import logging
import sys
import traceback
import os
import time
import Queue
class DatedLogFile(logging.FileHandler):
"""A logging handler class that uses a site standard
deb http://ubuntu.mirrors.uk2.net/ubuntu/ trusty main restricted universe multiverse
deb-src http://ubuntu.mirrors.uk2.net/ubuntu/ trusty main restricted universe multiverse
deb http://ubuntu.mirrors.uk2.net/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://ubuntu.mirrors.uk2.net/ubuntu/ trusty-updates main restricted universe multiverse
deb http://ubuntu.mirrors.uk2.net/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://ubuntu.mirrors.uk2.net/ubuntu/ trusty-backports main restricted universe multiverse

Keybase proof

I hereby claim:

  • I am bnrubin on github.
  • I am bnrubin (https://keybase.io/bnrubin) on keybase.
  • I have a public key whose fingerprint is 9B39 4E99 CF5C 1BF3 8ABC CF33 D7D9 7EE2 2CC5 3462

To claim this, I am signing this object:

"""Append module search paths for third-party packages to sys.path.
****************************************************************
* This module is automatically imported during initialization. *
****************************************************************
This will append site-specific paths to the module search path. On
Unix (including Mac OSX), it starts with sys.prefix and
sys.exec_prefix (if different) and appends
lib/python3/dist-packages as well as lib/site-python.
#!/usr/bin/env python
activate_this = '/home/bnrubin/.virtualenvs/celery/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import irssi
#import logging
import re
import redis
from datetime import datetime
import math
@bnrubin
bnrubin / nas_storage
Last active December 28, 2015 20:19
NAS Storage
[bnrubin@phobos ~]$ df -h /mnt/phobos_vol/storage
Filesystem Size Used Avail Capacity Mounted on
phobos_vol/storage 10T 710G 10T 6% /mnt/phobos_vol/storage
@bnrubin
bnrubin / gist:2226155
Created March 28, 2012 13:26
Interactive Fiction Test #2
### playthrough
Zack
An Interactive Fiction by Benjamin Rubin
Release 1 / Serial number 120328 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N)
SD
Bedroom
You awake after a rather strange dream. Unsurprisingly, your bedroom is
just as you left it: messy.
@bnrubin
bnrubin / gist:2220723
Created March 27, 2012 21:54
Interactive Fiction Test
"Some Room"
Lobby is a room. "Within the empty room you see a knob on the floor."
A knob is scenery in the Lobby.
The description of the knob is "This appears to be Ice's brother's knob."
Instead of taking knob: say "It is stuck to the floor!"
########
########