Skip to content

Instantly share code, notes, and snippets.

View michaelphines's full-sized avatar

Michael Hines michaelphines

View GitHub Profile
@michaelphines
michaelphines / keybase.md
Created February 2, 2017 01:47
Identity

Keybase proof

I hereby claim:

  • I am michaelphines on github.
  • I am keypunchmike (https://keybase.io/keypunchmike) on keybase.
  • I have a public key whose fingerprint is 61F8 5079 8704 8621 35E5 909C 3CAA 3205 6079 0505

To claim this, I am signing this object:

// Visual block mode replacement
{
"keys": ["ctrl+h"],
"command": "move",
"args": {
"by": "characters",
"forward": false,
"extend": true
},
"context": [{
[14:43:59] hb_init: starting libhb thread
[14:43:59] macgui: Handbrake Version: 0.9.9 x86_64 (2013051800)
[14:43:59] macgui: built in presets updated to build number: 2013051800
[14:43:59] hb_init: starting libhb thread
[14:43:59] hb_init: starting libhb thread
[14:43:59] macgui: hbInstances path to this instance: /Applications/HandBrake.app
[14:43:59] macgui: hbInstance found instance pidnum:26881 at path: /Applications/HandBrake.app
[14:43:59] macgui: hbInstance MATCH FOUND, our pidnum is:26881
[14:43:59] macgui: Pid for this instance:26881
[14:43:59] macgui: HBQueueController : My Pidnum is 26881
Original Beef
Teriyaki Chicken
Jalapeno Beef
Hawaiian Pork
caribbean pork
Cherry Beef
AppleJack Beef
Honey Ham Turkey
Kobe Beef
Kryptonite
# ClojureHelpers.py for Sublime Text 3
# originally by James MacCaulley
# https://gist.github.com/jamesmacaulay/5457344
import re
import sublime
import sublime_plugin
import SublimeREPL.sublimerepl
import SublimeREPL.text_transfer
@michaelphines
michaelphines / gist:2776238
Created May 23, 2012 16:32
Ruby Profiling Code
def profile(times=10)
start = Time.now
times.times { yield }
total = (Time.now-start)*1000
puts "Avg: #{total/times} ms"
puts "Total: #{total} ms"
end
@michaelphines
michaelphines / gist:1007017
Created June 3, 2011 19:40 — forked from sparkertime/gist:868498
MrCrankyPants for Propane - block users and image uploads.
/* MrCrankyPants - block users and images from Propane!
* to use, place it in ~/Library/Application Support/Propane/unsupported/caveatPatchor.js (yes, it must be that file name)
*
* Created by ripping code off of https://gist.github.com/825404 and https://gist.github.com/310162
*/
Campfire.MrCrankyPants = Class.create({
options: {
blockedUsers: ['Abe L.', 'George W.'],