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
from __future__ import with_statement | |
from fabric.api import task, local, lcd, run, cd | |
from fabric.colors import blue, green, red | |
username = 'jcantrell' | |
''' Updates the config files for directory so that they work correctly on | |
fedev. | |
Usage: fab setup:directory | |
''' |
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
# Add files and commands to this file, like the example: | |
# watch('file/path') { `command(s)` } | |
# | |
# | |
$username = 'jcantrell'; | |
guard 'shell' do | |
def sync(from, to) | |
system("rsync -avz ./#{from}/ #{$username}@fedev.utah.trulia.com:#{to}/ --exclude '.svn'") |
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
# Add files and commands to this file, like the example: | |
# watch('file/path') { `command(s)` } | |
# | |
# | |
$username = 'jcantrell' | |
guard :shell do | |
$last_call = Time.now | |
Notifier.turn_on |
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
alias sd="svn st | cut -c8- | sed -e '/local.conf/d' -e '/.htaccess/d' -e '/site.conf/d' | xargs svn diff | colordiff | less -R" |
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
Show hidden characters
{ | |
"browser": true, | |
"jquery": true, | |
"indent": 2, | |
"white": true, | |
"curly": true, | |
"forin": true, | |
"noarg": true, | |
"immed": true, | |
"newcap": true, |
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
upstream app_server { | |
server localhost:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name "~^(?<base_dir>.+)\.dev$"; | |
access_log /var/log/nginx/dev.access.log main; | |
error_log /var/log/nginx/dev.error.log; |
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
upstream app_server { | |
server localhost:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name "~^(?<base_dir>.+)\.sim\.bz$"; | |
if ($base_dir = "") { | |
set $base_dir "."; | |
} |
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
upstream xip_app_server { | |
server localhost:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name "~^(?<base_dir>.+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.xip.io$"; | |
access_log /var/log/nginx/xip.access.log main; | |
error_log /var/log/nginx/xip.error.log; |
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
address=/dev/127.0.0.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
#Local dev site functions | |
#find current directory in our list of sites | |
function dev-find { | |
pwd=$(pwd) | |
for link in $(ls ~/.sites) | |
do | |
if [[ $pwd = $(readlink -f ~/.sites/$link) ]]; then | |
echo $link |
OlderNewer