Skip to content

Instantly share code, notes, and snippets.

View jjwatt's full-sized avatar

Jesse Wattenbarger jjwatt

  • North Augusta, SC
View GitHub Profile
@jjwatt
jjwatt / distros.rb
Created December 27, 2012 21:13
quick hack to make build-couchdb work with ruby 1.8 or whatever. I don't really know ruby, but rake kept failing about the Hash initialization, so I found some way to make it work and I think it's related to differences in ruby 1.8 and 1.9. So far the build seems to be working with this. This is build-couchdb/tasks/lib/distros.rb
# Distribution (platform) detection
def detect_distro
# OSX
if `uname`.chomp == 'Darwin'
os_release = %x[ sysctl -n kern.osrelease ].chomp
return [:osx, os_release]
end
# Solaris
@jjwatt
jjwatt / Vagrantfile
Last active August 29, 2015 13:56 — forked from erochest/Vagrantfile
# vi: set ft=ruby :
# -*- mode: ruby -*-
VAGRANTFILE_API_VERSION = "2"
BASE_URL="http://cloud-images.ubuntu.com/vagrant"
PRECISE32_URL="#{BASE_URL}/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box"
PRECISE64_URL="#{BASE_URL}/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
QUANTAL32_URL="#{BASE_URL}/quantal/current/quantal-server-cloudimg-i386-vagrant-disk1.box"
QUANTAL64_URL="#{BASE_URL}/quantal/current/quantal-server-cloudimg-amd64-vagrant-disk1.box"
RARING32_URL="#{BASE_URL}/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box"
RARING64_URL="#{BASE_URL}/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box"
@jjwatt
jjwatt / coolquery.clj
Last active September 7, 2019 09:37
core.async database query fn
(ns
#^{:author "Jesse Wattenbarger"
:doc "pulled out of a production program for gist."}
coolquery.core
(:gen-class)
(:require [clojure.java.io :as io]
[clojure.core.async :as a :refer
[chan go go-loop close! <!! <! >! >!!]]
[jdbc.core :as jdbc] ;; good jdbc interop
))
@jjwatt
jjwatt / suds_memcache.py
Created July 9, 2016 21:32
python suds on appengine using memcache
"""Overrides some stuff in suds to make suds play well with app engine.
For more info, see this blog post:
http://omiethenull.blogspot.in/2010/08/suds-and-appengine.html
"""
"""
Created on Aug 25, 2010
@author: jesse.j.wattenbarger@gmail.com (Jesse Wattenbarger)
"""
@jjwatt
jjwatt / readme.md
Created November 30, 2016 04:30 — forked from coderbyheart/readme.md
QL-720NW

QL-720NW printing with Arch Linux (32-Bit)

brother-ql720nw-lpr

PKGBUILD

# Maintainer:  Markus Tacker <m@cto.hiv>
# Based on the QL-700 PKGBUILD -> Jacob Alexander <triplehaata@gmail.com>
pkgname=brother-ql720nw-lpr

pkgver=1.0.1

@jjwatt
jjwatt / net_neutrality_letter_to_loudermilk.md
Last active December 19, 2017 14:50
Letter to my Georgia's 11th district congressman (Loudermilk) re: net neutrality

Mr. Loudermilk,

I am a resident of your district, and an employee for a large Internet company. My company's views do echo my own, but I am not representing them here. These views are my own.

The FCC’s 2015 Open Internet Order was a huge victory for Internet users. Thanks to the millions of us who spoke up for a free and open Internet, we won essential net neutrality protections.

Now those protections could disappear, as FCC Chairman Ajit Pai is about to reverse the Open Internet Order and give major telecommunications companies an unprecedented level of control over how we use the Internet.

Under Pai’s plan, the FCC would relinquish its authority to enforce its common-sense, light-touch net neutrality rules, thus giving ISPs free rein to engage in unfair practices like site blocking and throttling.

@jjwatt
jjwatt / molecule.yml
Created November 15, 2018 22:34
molecule base configs and scenario configs
---
# project/roles/your-role/molecule/default/molecule.yml
dependency:
name: galaxy
driver:
name: docker
provisioner:
name: ansible
log: True
lint:
@jjwatt
jjwatt / emacs_and_anki_ir.md
Last active January 1, 2019 17:16
thoughts on IR, Anki and emacs integration

I've been very close to installing SuperMemo in a VM or wine just to try out Incremental Reading, but then I found this:

https://buboflash.eu

I still might do it at some point just so I can see how it works, but this and Anki would probably be more than enough (and both of them seem to respect my freedom!). I have a lot of respect for Woz, and he's brilliant, but I can't see myself using proprietary and Windows-only software even if it hung the moon.

Of course, my version of an ultimate SRS and IR tool would basically bring all the SuperMemo functionality into emacs and org-mode. Web pages and pdfs would present a challenge. Anyway, at least with Anki, we have emacs anki-editor, and org-drill. There's an IR plugin for Anki, too, but I haven't used it yet. It seems like the Buboflash chrome extension could give me a lot of what I would need around web pages for IR an

@jjwatt
jjwatt / keybase.md
Created April 10, 2019 02:23
keybase.md

Keybase proof

I hereby claim:

  • I am jjwatt on github.
  • I am jjwatt (https://keybase.io/jjwatt) on keybase.
  • I have a public key whose fingerprint is 01EF 9314 E563 8E1E 44FC EF55 9CBD 4CF4 09E7 C52B

To claim this, I am signing this object:

@jjwatt
jjwatt / tmux.conf
Created August 10, 2019 22:33
my minimum .tmux.conf
set -g prefix "`"
bind "`" send-prefix
set -g mode-keys "vi"
set -g default-terminal "screen-256color"