Skip to content

Instantly share code, notes, and snippets.

View alexdunae's full-sized avatar

Alex Dunae alexdunae

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
[user]
name = Alex Dunae
email = alex@dunae.ca
[diff]
[color]
ui = auto
[core]
editor = subl -n -w
[credential]
helper = osxkeychain
#!/bin/bash
# Log output:
#
# * 51c333e (12 days) <Gary Bernhardt> add vim-eunuch
#
# The time massaging regexes start with ^[^<]* because that ensures that they
# only operate before the first "<". That "<" will be the beginning of the
# author name, ensuring that we don't destroy anything in the commit message
# that looks like time.
export PATH="/usr/local/bin/psql:$HOME/.rbenv/shims:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:$PATH"
export EDITOR="/usr/local/bin/subl"
export GOPATH=$HOME/Code/go
export PATH=$PATH:$GOPATH/bin
alias ls='ls -alhG'
alias gco='git checkout'
alias gd='git diff'
alias gl='git l'
require 'irb/completion'
begin
require 'rubygems'
require 'brice/init'
rescue LoadError => e
$stderr.puts e
end
begin
014-04-30 11:02:54,526 INFO Shutting down...
2014-04-30 11:02:55,528 INFO Shutdown complete
2014-04-30 11:02:59,623 INFO scanner thread looping...
2014-04-30 11:03:00,020 ERROR Caught exception in ScannerThread.run() loop
Traceback (most recent call last):
File "/usr/local/rollbar-agent", line 418, in run
self.scan_all()
File "/usr/local/rollbar-agent", line 438, in scan_all
self.scan_app(app, apps_state)
File "/usr/local/rollbar-agent", line 485, in scan_app
@alexdunae
alexdunae / Gemfile
Last active August 29, 2015 14:01
Guard w/ WordPress
source 'https://rubygems.org/'
gem 'guard'
gem 'guard-jammit'
gem 'guard-sass'
gem 'guard-coffeescript'
// heavily inspired https://github.com/alphagov/static/blob/master/app/assets/javascripts/search.js.erb
$.extend($.ui.autocomplete.prototype, {
_renderMenu: function( ul, items ) {
var that = this,
currentCategory = "";
$.each( items, function( index, item ) {
if ( item.category && item.category != currentCategory ) {
ul.append( "<li class='ui-autocomplete-category'><span>" + item.category + "</span></li>" );
currentCategory = item.category;
}
@alexdunae
alexdunae / monit.conf
Created June 25, 2014 23:32
Get Monit notifications via SMS
check file nginx.pid with path /var/run/nginx.pid
if changed timestamp then exec "/usr/local/bin/monit2twilio" as uid root and gid root