Skip to content

Instantly share code, notes, and snippets.

View rodrigodealer's full-sized avatar

Rodrigo Oliveira rodrigodealer

View GitHub Profile
@rodrigodealer
rodrigodealer / go-os-arch.md
Created February 27, 2019 15:41 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.8.3 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • android
  • darwin
@rodrigodealer
rodrigodealer / app.conf
Last active October 13, 2015 07:28 — forked from shapeshed/unicorn
Unicorn / Monit setup
RAILS_ENV=production
RAILS_ROOT=/home/deploy/apps/app/current
USER=deploy
START_CMD="/home/deploy/.rbenv/shims/bundle exec unicorn -c config/unicorn.rb -E production -D"
UNICORN_CONFIG=$RAILS_ROOT/config/unicorn.rb
PID="/home/deploy/shared/pids/unicorn.pid"
@rodrigodealer
rodrigodealer / node-and-npm-in-30-seconds.sh
Created April 24, 2011 12:43 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
# go to jdk1.6's home
cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
# check your correct java version installed before running this command
sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_22-b04-314.jdk/Contents/Home/src.jar src.jar
# now your Eclipse IDE can find and define both the source and doc for its jvm, yupi! ;-)