-
Download the Command Line Tools (OS X Mavericks) from https://developer.apple.com/downloads
-
From the Terminal:
sudo xcode-select --reset sudo xcode-select --switch /Library/Develop/CommandLineTools
-
Install openssl with homebrew:
brew remove openssl brew install openssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# If you don't already have git-completion installed: | |
# | |
# cd ~/ | |
# curl -OL https://github.com/git/git/raw/master/contrib/completion/git-completion.bash | |
# mv ~/git.completion.bash ~/.git-completion.bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide | |
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
mkdir ~/ffmpeg_sources | |
cd ~/ffmpeg_sources | |
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xzvf yasm-1.2.0.tar.gz | |
cd yasm-1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# upstart-job | |
# | |
# Symlink target for initscripts that have been converted to Upstart. | |
set -e | |
APP_PATH="/srv/rails/seek" | |
APP_NAME="Seek" | |
APP_USER="www-data" | |
NUM_WORKERS="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timeout, | |
longtouch, | |
xDown, | |
yDown; | |
$("#myList li").bind('touchstart', function() { | |
timeout = setTimeout(function() { | |
longtouch = true; | |
}, 300); | |
}).bind('touchend', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Headbobber : MonoBehaviour { | |
private float timer = 0.0f; | |
public float bobbingSpeed = 0.18f; | |
public float bobbingAmount = 0.2f; | |
public float midpoint = 2.0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
' | |
' SETUP: | |
' To get the GUIDs required, in Windows Powershell, run: | |
' | |
' POWERCFG -L | |
' | |
' Then select and right-click a GUID to copy. | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SETUP: | |
# * Replace '#iface eth0 inet<some-char>dhcp' with '# iface eth0 inet dhcp' | |
net="${1}" | |
function usage() { | |
echo "USAGE: ${0} (dhcp|static)" | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function knife_dl() { | |
local packages="$@" | |
cd /root/chef-repo/cookbooks | |
for c in ${packages}; do | |
knife cookbook site download ${c}; | |
tar zxf ${c}*.tar.gz; | |
rm ${c}-*.tar.gz; | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class FadeTest : MonoBehaviour | |
{ | |
Color startColor; | |
Color currentColor; | |
Color endColor; | |
bool shouldFade = false; | |
float startTime; |