Skip to content

Instantly share code, notes, and snippets.

View chrislwade's full-sized avatar

Christopher Wade chrislwade

  • Nashville, TN
  • 15:27 (UTC -05:00)
View GitHub Profile
@jamesmacfie
jamesmacfie / README.md
Created October 22, 2019 02:53
iTerm 2 - script to change theme depending on Mac OS dark mode

How to use

In iTerm2, in the menu bar go to Scripts > Manage > New Python Script

Select Basic. Select Long-Running Daemon

Give the script a decent name (I chose auto_dark_mode.py)

Save and open the script in your editor of choice.

@tritonrc
tritonrc / github_jabber_hook.rb
Created April 21, 2011 17:22
Sinatra based Github hook that sends commit information to a Jabber chat room
require 'rubygems'
require 'sinatra'
require 'xmpp4r'
require 'xmpp4r/muc'
require 'json'
CONFIG = YAML.load_file('config.yml')
jid = Jabber::JID::new(CONFIG['user_jid'])
client = Jabber::Client::new(jid)
@rheaton
rheaton / tracker_csv_export_to_pdf.rb
Created March 30, 2011 15:38
takes a csv file from tracker and makes story cards. be careful of the order when you are cutting them up.
#!/usr/bin/env ruby
# Script to generate PDF cards suitable for planning poker
# from Pivotal Tracker [http://www.pivotaltracker.com/] CSV export.
# Inspired by Bryan Helmkamp's http://github.com/brynary/features2cards/
# Example output: http://img.skitch.com/20100522-d1kkhfu6yub7gpye97ikfuubi2.png
require 'rubygems'