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 / 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"
#!/usr/bin/perl
# gitweb - simple web interface to track changes in git repositories
#
# (C) 2005-2006, Kay Sievers <[email protected]>
# (C) 2005, Christian Gierke
#
# This program is licensed under the GPLv2
use 5.008;
@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...
@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 / 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: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 / 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 / .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 / README.md
Created September 1, 2012 03:11 — forked from vanto/README.md
OEmbed Liquid Tag for Jekyll

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to Embed.ly or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
@kitchen
kitchen / personal.rc
Created August 23, 2012 04:25
sample mutt configuration
# me
set realname = "Jeremy Kitchen"
set from = "[email protected]"
set envelope_from = yes
# personal account info
set imap_user = "[email protected]"
set imap_pass = "REDACTED"
set folder = imaps://imap.gmail.com/
set smtp_url = smtps://[email protected]@smtp.gmail.com/