Skip to content

Instantly share code, notes, and snippets.

@0xced
0xced / install-iphone-sdk-3.1.3.sh
Created September 13, 2010 18:43
Install iPhone SDK 3.1.3 script
#!/bin/bash -e
# More information at http://0xced.blogspot.com/2010/07/using-sdk-313-with-iphone-sdk-4.html
IPHONE_SDK_DMG="$HOME/Downloads/iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg"
DEVELOPER_DIR="/Developer"
MOUNT_POINT="/Volumes/iPhone SDK"
function cleanup
{
echo ""
@chrisjacob
chrisjacob / README.md
Created September 1, 2011 12:08
Node.js Install + CoffeeScript + LESS (+TextMate Bundles)
@pithyless
pithyless / gist:1208841
Created September 10, 2011 21:49
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@quietlynn
quietlynn / 12306.user.js
Created January 3, 2012 12:01
12306 Auto Query => A javascript snippet to help you book ticket
/*
12306 Auto Query => A javascript snippet to help you book tickets online.
Copyright (C) 2011-2012 Jingqin Lynn
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes Sizzle.js
@saetia
saetia / gist:1623487
Last active April 20, 2025 23:05
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 20, 2025 21:04
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@magnars
magnars / gist:3048595
Created July 4, 2012 17:57
cleanup-buffer.el
(defun cleanup-buffer-safe ()
"Perform a bunch of safe operations on the whitespace content of a buffer.
Does not indent buffer, because it is used for a before-save-hook, and that
might be bad."
(interactive)
(untabify-buffer)
(delete-trailing-whitespace)
(set-buffer-file-coding-system 'utf-8))
(defun cleanup-buffer ()
@henry0312
henry0312 / build_emacs24.2.sh
Created August 27, 2012 10:07
Build Emacs 24.2 on OS X 10.8.1
#!/bin/sh
# 初期設定
EMACS_VER=24.2
WORK_DIR=$HOME/Builds/Emacs
BUILD_DIR=$WORK_DIR/build
PATCH_DIR=$WORK_DIR/patch
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export CC='/usr/bin/clang'