Skip to content

Instantly share code, notes, and snippets.

View kemitchell's full-sized avatar

Kyle E. Mitchell kemitchell

View GitHub Profile
@kemitchell
kemitchell / today.AppleScript
Created January 16, 2011 05:16
Short AppleScript for dumping descriptions of today's events from iCal to the console. Meant for use with GeekTool.
#!/usr/bin/osascript
-- calendar from which to ignore events
set TASKS_CALENDAR to "Toodledo iCal"
-- the current timestamp
set now to (current date)
-- midnight this morning
set today to now - (time of now)
-- midnight tomorrow morning
set tomorrow to (today) + (24 * 60 * 60)
-- list of output lines
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by R configure 2.12.1, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/r/2.12.1 --with-aqua --enable-R-framework --with-lapack
## --------- ##
## Platform. ##
@kemitchell
kemitchell / gscholarprint.rb
Created February 24, 2011 21:34
Format Google Scholar case law for reading
#!/usr/bin/env ruby -wKU
require "rubygems"
require 'open-uri'
require 'escape'
require "nokogiri"
unless ARGV.count == 2
puts "usage: <google case id> <basename>"
exit
% LaTeX for Russian Articles
% CAVEAT: This file must be UTF-8 encoded
% Producing PDFs: pdflatex article
\documentclass[10pt,letterpaper,twocolumn,oneside]{memoir}
\usepackage[utf8x]{inputenc}
\usepackage[russian]{babel}
\usepackage{microtype,ellipsis} % to taste
\let\par\russianpar % memoir only
\setsecnumdepth{none}
\usepackage{fontspec}
\setromanfont[
SmallCapsFont={[AlegreyaSC-Regular.otf]},
BoldFont={[Alegreya-Bold.otf]},
ItalicFont={[Alegreya-Italic.otf]}
] {[Alegreya-Regular.otf]}
@kemitchell
kemitchell / Reset VirtualBox Bridge.bat
Created January 28, 2013 16:41
Script for resetting the bridge connection for VirtualBox virtual machines after putting the laptop to sleep
@echo off
Rem Reset the bridge connection for Virtual Box virtual hosts.
Rem Connection is often lost when the host machine is put to sleep.
netsh interface set interface name="VirtualBox Host-Only Network" admin=disabled
netsh interface set interface name="VirtualBox Host-Only Network" admin=enabled
" Vim syntax file
" Language: Precedent
" Filenames: *.pre
" OriginalAuthor: Kyle Mitchell <kyle@blackacrelabs.org>
" Version: 0.0.1
if exists("b:current_syntax")
finish
endif
@kemitchell
kemitchell / fleet-drone
Created January 12, 2014 11:59
fleet init scripts
TODO
@kemitchell
kemitchell / install-couchdb.sh
Last active January 3, 2016 01:59
Install CouchDB 1.5.0 on Erlang R16B03 on Debian 7.3 as of 2014-01-12
#!/bin/sh
# Install Erlang R16B03 and CouchDB 1.5.0 on Debian 7.3 as of 2014-01-12
# Download current stable versions
wget -c http://apache.cs.utah.edu/couchdb/source/1.5.0/apache-couchdb-1.5.0.tar.gz
wget -c http://www.erlang.org/download/otp_src_R16B03.tar.gz
# Extract source archives
tar xvf apache-couchdb-1.5.0.tar.gz
@kemitchell
kemitchell / database.coffee
Created February 2, 2014 07:27
Node + CouchDB + Design Documents + NPM postinstall
# TODO: Connect to CouchDB using process.env properties
module.exports = {}