This file contains hidden or 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
# Configure | |
./configure --prefix=/usr/local/nginx/1.0.0 --conf-path=/usr/local/nginx/1.0.0/nginx/nginx.conf --sbin-path=/usr/local/nginx/1.0.0/bin/nginx --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-client-body-temp-path=/var/spool/nginx/client_body_temp --http-proxy-temp-path=/var/spool/nginx/proxy_temp --http-fastcgi-temp-path=/var/spool/nginx/fastcgi_temp --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --with-imap --with-imap_ssl_module --with-http_ssl_module --with-http_stub_status_module --with-pcre |
This file contains hidden or 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 definitions | |
# | |
use_textmate () | |
{ | |
# Clean redcar from path the easy way. | |
export PATH="$(printf "$PATH" | sed -e "s#${projects_path}/ruby_apps/redcar/bin##g")" | |
export EDITOR="/usr/local/bin/mate -w" | |
export GEM_OPEN_EDITOR="/usr/local/bin/mate" | |
alias tm_dialog="$HOME/Library/Application\ Support/TextMate/PlugIns/Dialog.tmplugin/Contents/Resources/tm_dialog" |
This file contains hidden or 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
root# bdsm redis start | |
#starting Redis as redis using /etc/redis/redis.conf... | |
16:37:09 wayneeseguin@Genius:~ | |
$ bdsm redis status | |
redis-server: | |
status: running | |
version: 2.2.2 | |
pid: 68059 | |
port: 6379 |
This file contains hidden or 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 git_rev_head | |
{ | |
# Can declare multiple variables on one line IFS separated. | |
# By default IFS is "white characters" | |
local rev_prompt_token=" » " rev=1 sym=0 sym_prompt="" rev_prompt="" \ | |
colors=() branches=() | |
# If git branches contain whitespace, then the following should be quoted. | |
branches[$rev]="$(git name-rev --name-only head 2> /dev/null)" | |
branches[$sym]="$(git symbolic-ref -q head 2> /dev/null)" |
This file contains hidden or 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
branch=$(git symbolic-ref -q HEAD) | |
branch=${branch##refs/heads/} | |
true ${branch:=(no branch)} |
This file contains hidden or 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
# take 2 | |
export PS1="\D{%H:%M:%S} \[\033[37m\]\u@\h\[\033[32m\]:\w \$( git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\\033[36m(\1)/' -e 's/(production)/\\033[1;37m\\033[41m(production)\\033[m/' -e 's/(master)/\\033[1;37m\\033[41m(master)\\033[m/' -e 's/(stage)/\\033[31m(stage)/' -e 's/(next)/\\033[33m(next)/')\[\033[37m\]\[\033[0m\] \n∫ " |
This file contains hidden or 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
# ALARM: production/master RED: stage YELLOW: next CYAN: everybody else | |
export PS1="\D{%H:%M:%S} \[\033[37m\]\u@\h\[\033[32m\]:\w \$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\\033[36m(\1)/' | sed -e 's/(production)/\\033[1;37m\\033[41m(production)\\033[m/' | sed -e 's/(master)/\\033[1;37m\\033[41m(master)\\033[m/' | sed -e 's/(stage)/\\033[31m(stage)/' | sed -e 's/(next)/\\033[33m(next)/')\[\033[37m\]\[\033[0m\] \n∫ " |
This file contains hidden or 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
$ cat ~/.rvm/log/ruby-1.9.2-p180/configure.log | |
[2011-03-14 09:26:18] ./configure --prefix=/Users/wayne/.rvm/rubies/ruby-1.9.2-p180 --enable-shared --disable-install-doc | |
checking build system type... i386-apple-darwin11.0.0 | |
checking host system type... i386-apple-darwin11.0.0 | |
checking target system type... i386-apple-darwin11.0.0 | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no |
This file contains hidden or 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
if [[ ( -a .rvmrc ) && $TERM == 'screen' ]]; then | |
source .rvmrc | |
fi |