Skip to content

Instantly share code, notes, and snippets.

View tithonium's full-sized avatar
😩

Martin Tithonium tithonium

😩
View GitHub Profile
@mathiasbynens
mathiasbynens / appify
Created November 12, 2010 13:46 — forked from subtleGradient/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@defunkt
defunkt / connection_fix.rb
Created November 19, 2009 20:00
MySQL server has gone away fix
# If your workers are inactive for a long period of time, they'll lose
# their MySQL connection.
#
# This hack ensures we re-connect whenever a connection is
# lost. Because, really. why not?
#
# Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar)
#
# From:
# http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/
@igal
igal / gist:117822
Created May 26, 2009 00:22
WARNING SIGNS OF A DANGEROUS CULT ... as applied to Audrey's open source community side projects
Earlier this weekend, I realized that I may have become part of a dangerous
cult after having the following conversation at the foodcarts:
> Me: "We don't know those people. Should we indoctrinate them?"
> Audrey: "Yes! I have more fliers."
> http://www.vistech.net/users/rsturge/cults.html
> THE WARNING SIGNS OF A DANGEROUS CULT
...as applied to Audrey's open source community side projects
> 1. The spiritual group claims to have received special instructions from one