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
#!/usr/bin/ruby | |
require 'fileutils' | |
outdir = ENV['HOME']+"/Desktop" | |
project = File.basename `pwd`.strip | |
pwd = `pwd`.strip | |
@php = `which php`.strip | |
outdir += "/#{project}_compiled" |
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
#!/usr/bin/env ruby | |
URL = "http://store.apple.com/Apple/WebObjects/swedenstore" | |
down = true | |
while down | |
source = `curl -s #{URL}` | |
throw "connection error" if source.empty? |
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
:nmap <D-r> :!osascript -e 'tell application "Google Chrome" to reload active tab in front window' &<CR>:redraw<CR> |
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
nameserver 127.0.0.1 | |
port 20560 |
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 :rubygems | |
# V8 JavaScript Engine (for Uglifier) | |
gem "therubyracer" | |
# SASS & Compass | |
gem "sass", "~> 3.2.0.alpha" | |
gem "compass" | |
# For concatenation/compression |
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
server { | |
server_name trailers.apple.com atv.plexconnect; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://127.0.0.1:8091; | |
} |
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 | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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
# Decide prompt color based on host name: | |
PROMPTCOLOR=$fg_bold[cyan] # Default | |
case `hostname -s | tr '[:upper:]' '[:lower:]'` in | |
skoodge) PROMPTCOLOR=$fg_bold[red] ;; | |
tallest) PROMPTCOLOR=$fg_bold[red] ;; | |
minimoose) PROMPTCOLOR=$fg_bold[magenta] ;; | |
mortos) PROMPTCOLOR=$fg_bold[green] ;; | |
lemongrab) PROMPTCOLOR=$fg_bold[yellow] ;; | |
esac |
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
_homebrew-installed() { | |
type brew &> /dev/null | |
} | |
_nodenv-from-homebrew-installed() { | |
brew --prefix nodenv &> /dev/null | |
} | |
FOUND_NODENV=0 | |
nodenvdirs=("$HOME/.nodenv" "/usr/local/nodenv" "/opt/nodenv" "/usr/local/opt/nodenv") |
OlderNewer