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
#!/usr/bin/env ruby | |
# Usage: githubify <gemspec_file> [username] | |
# Requires: github.name to be set for the current git project or [username] to be specified | |
# Result: creates/overwrites a file named <username>-<gemspec_file> and updates the s.name in there have the same project name format. | |
# | |
# Author: Wes Oldenbeuving | |
# E-mail: [email protected] | |
# License: MIT-LICENSE | |
class String |
#!/usr/bin/osascript |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
<?php | |
/** | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* |
if [ -x `which brew` ]; then | |
macvim_version=`brew list --versions macvim | sed 's/.* \([0-9\.\-]*\)$/\1/'` | |
if [ -n "${macvim_version}" ]; then | |
alias vim=`brew --prefix`/Cellar/macvim/${macvim_version}/MacVim.app/Contents/MacOS/Vim | |
fi | |
fi |
$ curl -O ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz | |
$ tar -xzvf ncurses-5.9.tar.gz | |
$ cd ./ncurses-5.9 | |
$ ./configure --prefix=/usr/local \ | |
--without-cxx --without-cxx-binding --without-ada --without-progs --without-curses-h \ | |
--with-shared --without-debug \ | |
--enable-widec --enable-const --enable-ext-colors --enable-sigwinch --enable-wgetch-events \ | |
&& make | |
$ sudo make install |
#!/bin/bash | |
# Open iPhone Simulator on default location for XCode 4.3 | |
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app | |
# Open mobile safari | |
echo Open mobile safari on emulator and press return | |
read | |
# Plug debug to MobileSafari.app |
Update your path to the Xcode dev tools:
sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer
Then set your xcode folder:
xcode-select -switch /Developer
And then you can run the build-webkit tool from the Tools folder: