Skip to content

Instantly share code, notes, and snippets.

gem install mysql2 -v '0.3.21' -- --with-mysql-config=/usr/local/Cellar/mysql\@5.6/5.6.42/bin/mysql_config
@mconnell
mconnell / gist:68910b7bb62f95bb798000245d5df706
Created March 1, 2019 17:05
subpixel antialiasing – Mojave
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
@mconnell
mconnell / audio_switch.applescript
Last active August 24, 2018 09:22
AppleScript for quickly flipping between 2 audio sources
-- Open automator
-- * New Service
-- * Service Recieves: no input
-- * Paste the following
-- * Alter audio sources to match your machine
-- * Save
-- Open Keyboard
-- * Shortcuts
-- * Services
-- * Bind to shortcut
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config
wget --adjust-extension --span-hosts --convert-links --backup-converted --page-requisites http://example.com

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:

brew update elixir
mix deps.get
#!/usr/bin/env ruby
##
# script to amend a commit which should be been created with the previous script
##
commit_message = `git log --format=%B -1`.strip
branch_name = `git rev-parse --abbrev-ref HEAD`.strip
matches = branch_name.match (/\w\-(\d+)\Z/i)
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:theIntToDisplay];
@mconnell
mconnell / lunch_and_learn.txt
Last active December 15, 2015 11:49
lunch and learn
9th April - Designing in the text editor
16th April - TBA
23rd April - TBA