Skip to content

Instantly share code, notes, and snippets.

View diogolundberg's full-sized avatar
🏠
wfh

Diogo Lundberg diogolundberg

🏠
wfh
View GitHub Profile
@diogolundberg
diogolundberg / rails.bat
Created October 8, 2016 00:02
Workaround to Rails installer 3.2.0
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"%~dp0ruby.exe" "%~dp0rails" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"%~dp0ruby.exe" "%~dpn0" %*
@diogolundberg
diogolundberg / .bash_aliases
Last active June 12, 2017 00:09
Mac OS bash profile
alias ll='ls -lah'
alias virtualenv2='~/Library/Python/2.7/bin/virtualenv'
alias virtualenv3='~/Library/Python/3.4/bin/virtualenv'
alias pg-server='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
alias pg-server-stop='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
alias pg-server-status='pg_ctl -D /usr/local/var/postgres status'