Skip to content

Instantly share code, notes, and snippets.

@dobrych
dobrych / GIF-Screencast-OSX.md
Created November 23, 2015 19:32 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

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

Instructions

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

@dobrych
dobrych / git versioner
Created January 23, 2012 17:07 — forked from Abizern/git versioner
Xcode build script that adds the commit sha to the CFBundleVersion
#!/usr/bin/env ruby
# Xcode auto-versioning script for Subversion by Axel Andersson
# Updated for git by Marcus S. Zarra and Matt Long
# Converted to ruby by Abizer Nasir
# Appends the git sha to the version number set in Xcode.
# see http://www.stompy.org/2008/08/14/xcode-and-git-another-build-script/ for more details
# These are the common places where git is installed.
# Change this if your path isn't here
@dobrych
dobrych / rails.conf
Created December 10, 2011 00:39 — forked from jcf/rails.conf
NewSyslog Log Rotate on OS X
# Rotate rails logs on OS X using newsyslog
# count: how many old files to keep around, this is dev, so 0
# size: 1000 kb
# when: * - only rely on the size property
# flags: G - interpret logfilename as a shell pattern
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/Users/jcf/Code/**/log/*.log 666 0 1000 * G
@dobrych
dobrych / rails.conf
Created December 10, 2011 00:25 — forked from jcf/rails.conf
NewSyslog Log Rotate on OS X
# Rotate rails logs on OS X using newsyslog
# count: how many old files to keep around, this is dev, so 0
# size: 1000 kb
# when: * - only rely on the size property
# flags: G - interpret logfilename as a shell pattern
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/Users/jcf/Code/**/log/*.log 666 0 1000 * G