Skip to content

Instantly share code, notes, and snippets.

View jadeatucker's full-sized avatar

Jade Tucker jadeatucker

  • Google
  • Mountain View, CA
View GitHub Profile
@jadeatucker
jadeatucker / gist:5937257
Created July 5, 2013 21:08
Compiling Ruby 2.1.0dev on Ubuntu 12.04.2 LTS with rbenv install
#!/bin/bash
# This assumes you have rbenv installed with ruby-build
# rbenv (https://github.com/sstephenson/rbenv)
# rbenv ruby-build (https://github.com/sstephenson/ruby-build)
# Dependencies
sudo apt-get install -y build-essential autoconf bison zlib1g-dev \
libreadline-dev libxml2-dev libxslt1-dev
@jadeatucker
jadeatucker / HOWTODMG.md
Last active November 2, 2024 15:02
How to create a "DMG Installer" for Mac OS X

Creating a "DMG installer" for OS X

A DMG Installer is convenient way to provide end-users a simple way to install an application bundle. They are basically a folder with a shortcut to the Applications directory but they can be customized with icons, backgrounds, and layout properties. A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders providing compression, encryption, and read-only to the package.

##Creating the DMG file #Disk Utility

@jadeatucker
jadeatucker / shell-pipe.sh
Created April 13, 2013 08:02
Shell script to read commands from a named pipe until terminated
#!/bin/bash
#
# Read commands from a named pipe until terminated e.g.
#
# echo 'ls -l' > shell-fifo
#
set -e
FIFO=$1
if [ ! -n "$FIFO" ]; then