Skip to content

Instantly share code, notes, and snippets.

View alexdunae's full-sized avatar

Alex Dunae alexdunae

View GitHub Profile
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
require 'irb/completion'
begin
require 'rubygems'
require 'brice/init'
rescue LoadError => e
$stderr.puts e
end
begin
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'
#!/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.
[user]
name = Alex Dunae
email = alex@dunae.ca
[diff]
[color]
ui = auto
[core]
editor = subl -n -w
[credential]
helper = osxkeychain
<?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>
Warning: get_browser(): browscap ini directive not set in /home/www/typothequen/new.typotheque.com/wf/web_fonts.php on line 81
Warning: get_browser(): browscap ini directive not set in /home/www/typothequen/new.typotheque.com/wf/web_fonts.php on line 16
Warning: get_browser(): browscap ini directive not set in /home/www/typothequen/new.typotheque.com/wf/web_fonts.php on line 32
Warning: get_browser(): browscap ini directive not set in /home/www/typothequen/new.typotheque.com/wf/web_fonts.php on line 48
Warning: get_browser(): browscap ini directive not set in /home/www/typothequen/new.typotheque.com/includes/classes/webfonts/web_fonts.class.php on line 441
@alexdunae
alexdunae / name_case.php
Created January 24, 2012 17:49
NameCaseConverter
<?php
/**
* Properly capitalize a name.
*
* @package NameCase
* @version 1.0.2
* @author Alex Dunae, Dialect <alex[at]dialect[dot]ca>
* @copyright Copyright (c) 2008, Alex Dunae
* @license http://www.gnu.org/licenses/gpl-3.0.txt
* @link http://dialect.ca/code/name-case/
@alexdunae
alexdunae / media_tests.rb
Created September 30, 2011 19:07
Parse embed video URL snippet
test 'getting embed data for youtube urls' do
result = {:youtube => 'dQw4w9WgXcQ'}
['http://youtu.be/dQw4w9WgXcQ',
'http://www.youtube.com/embed/dQw4w9WgXcQ',
'http://www.youtube.com/watch?v=dQw4w9WgXcQ',
'https://www.YOUTUBE.com/?v=dQw4w9WgXcQ',
'http://www.youtube.com/v/dQw4w9WgXcQ',
'http://www.youtube.com/e/dQw4w9WgXcQ',
'http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ',
'http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/0/dQw4w9WgXcQ',
@alexdunae
alexdunae / fb-gallery-embed.html
Created September 24, 2011 17:05
Embedded Facebook Page Photo Gallery with jQuery