Skip to content

Instantly share code, notes, and snippets.

View mauricerkelly's full-sized avatar

Maurice Kelly mauricerkelly

View GitHub Profile
@supermarin
supermarin / .env
Last active April 2, 2024 13:57
Colored `man` pages on OSX
# ZSH / BASH users
# Add this to your .env, .bashrc, .zshrc, or whatever file you're using for environment
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
@cobyism
cobyism / remoteme.coffee
Created May 13, 2014 12:12
hubot remote me example.
# make this URL an endpoint that returns something like the users.json file in this gist.
baseUrl = "…"
robot.respond /remote me/i, (msg) ->
if Math.random() < 0.01
msg.send "https://f.cloud.github.com/assets/1476/552951/f1a15572-c370-11e2-8ddd-db568c36d27a.jpg"
return
msg.finish()
msg.http(baseUrl)
.headers(headers)
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@brookr
brookr / gist:2493622
Created April 25, 2012 21:34 — forked from derekharmel/gist:2399684
How to fix pow not using the correct gemset
# From the project root
rvm env -- `rvm current` >> .powenv