Skip to content

Instantly share code, notes, and snippets.


Dan Harper danharper

View GitHub Profile
danharper / normalize-filenames.js
Last active Aug 17, 2018 — forked from dcramer/normalize-filenames.js
use Sentry (Raven) on PhoneGap
View normalize-filenames.js
Raven.config(dsn, {
dataCallback(data) {
const normalize = filename => filename.split('/www/', 2)[1]
data.exception.values[0].stacktrace.frames.forEach(frame => {
frame.filename = normalize(frame.filename)
data.culprit = data.exception.values[0].stacktrace.frames[0].filename
danharper / TimestampToDate.scpt
Last active Oct 8, 2015 — forked from clooth/TimestampToDate.scpt
Applescript to display real date of selected timestamp
View TimestampToDate.scpt
on run {input, parameters}
tell application "System Events"
set activeApp to name of first process whose frontmost is true
end tell
set _timestamp to (input as string)
tell application activeApp
set realDate to ((do shell script "date -r " & _timestamp) as string)
N="`readlink \"$1\"`"
mv -T "$1.stage" "$1"
ln -s "$N" "$1.stage"
rm -rf "$N"
cp -aH "$1" "$N"
View gist:92b73264493bc41eee24

OS X 10.10 Guide

Here's what I did to get things working.

1. Install Xcode 6

Yep, over at:

2. Install the Command Line Tools (CLT)


OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

You can’t perform that action at this time.