Skip to content

Instantly share code, notes, and snippets.

View kitchen's full-sized avatar
🚴‍♂️
traveling the world

Jeremy Kitchen kitchen

🚴‍♂️
traveling the world
View GitHub Profile
@kitchen
kitchen / .vimrc
Created September 20, 2012 00:55
my .vimrc
" shut off the old vi compatibility garboo!
set nocompatible
set encoding=utf-8
" show the current file position and percentage in the status bar
set ruler
" does some fun tab completion stuffs when in command mode
set wildmenu
@kitchen
kitchen / gist:4069226
Created November 13, 2012 23:50
tinydns gmail MX records
@scriptkitchen.com::ASPMX.L.GOOGLE.COM:1:86400
@scriptkitchen.com::ALT1.ASPMX.L.GOOGLE.COM:5:86400
@scriptkitchen.com::ALT1.ASPMX.L.GOOGLE.COM:5:86400
@scriptkitchen.com::ASPMX2.GOOGLEMAIL.COM:10:86400
@scriptkitchen.com::ASPMX3.GOOGLEMAIL.COM:10:86400
@kitchen
kitchen / gist:4091687
Created November 16, 2012 22:53
cakephp 2.1.2 unit test failure
MemcacheEngineTest::testZeroDuration
1
Failed asserting that 'Could not write with duration 0' is true.
@kitchen
kitchen / next!
Created December 18, 2012 20:25
more output. the DEBUG line is from line 584 in ConfigParser.py, inside the _interpolate function
[2012-12-18 12:40:05,881] INFO Starting worker...
[2012-12-18 12:40:05,886] INFO Unhandled Exception:
[2012-12-18 12:40:05,886] INFO Traceback (most recent call last):
File "/usr/bin/beaver", line 7, in <module>
execfile(__file__)
File "/home/jkitchen/Development/logstash/beaver/beaver/worker.py", line 267, in run_worker
l = Worker(file_config, beaver_config, transport.callback, logger, ssh_tunnel=ssh_tunnel)
File "/home/jkitchen/Development/logstash/beaver/beaver/worker.py", line 61, in __init__
self.update_files()
File "/home/jkitchen/Development/logstash/beaver/beaver/worker.py", line 138, in update_files
@kitchen
kitchen / gist:4507298
Created January 11, 2013 01:46
exception from logstash input plugin
Failed to get event from kestrel {:name=>"127.0.0.1:22133 logstash", :exception=>#<NoMethodError: undefined method `host' for "127.0.0.1:22133":String>, :backtrace=>["/home/jkitchen/Development/logstash/source/lib/logstash/event.rb:103:in `source='", "/home/jkitchen/Development/logstash/source/lib/logstash/inputs/base.rb:82:in `to_event'", "/home/jkitchen/Development/logstash/source/lib/logstash/inputs/kestrel.rb:62:in `run'", "org/jruby/RubyKernel.java:1392:in `loop'", "/home/jkitchen/Development/logstash/source/lib/logstash/inputs/kestrel.rb:58:in `run'", "/home/jkitchen/Development/logstash/source/lib/logstash/agent.rb:714:in `run_input'", "/home/jkitchen/Development/logstash/source/lib/logstash/agent.rb:367:in `start_input'"], :level=>:warn}
@kitchen
kitchen / gist:5078946
Created March 3, 2013 23:51
vagrant up with elasticsearch
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
#!/usr/bin/perl
# gitweb - simple web interface to track changes in git repositories
#
# (C) 2005-2006, Kay Sievers <kay.sievers@vrfy.org>
# (C) 2005, Christian Gierke
#
# This program is licensed under the GPLv2
use 5.008;
@kitchen
kitchen / flac-to-alac.bash
Created June 16, 2013 02:07
uses avconv to convert .flac files to .alac. Is case-friendly and will skip files it has already converted. public domain where applicable. Come on, it's a 27 line bash script!
#!/bin/bash
downloaddir=$1
if [[ -z "$downloaddir" ]]; then
echo "fatal, no arguments given"
exit 99
fi
find "$downloaddir" -iname '*.flac' | while read flac; do
echo "found $flac"
@kitchen
kitchen / flac-to-alac.sh
Created July 28, 2013 08:29
flac to alac conversion using avconv
#!/bin/bash
downloaddir=$1
if [[ -z "$downloaddir" ]]; then
echo "fatal, no arguments given"
exit 99
fi
find "$downloaddir" -iname '*.flac' | while read flac; do
echo "found $flac"
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0