Skip to content

Instantly share code, notes, and snippets.

View eddywashere's full-sized avatar
🔥
loading...

Eddy Hernandez eddywashere

🔥
loading...
View GitHub Profile
@eddywashere
eddywashere / Vagrantfile
Last active August 29, 2015 14:05
sample node + mongodb file
$install_script = <<SCRIPT
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
sudo apt-get install -y mongodb-10gen
curl -L https://get.rvm.io | bash -s stable --ruby=2.1.1
source /home/vagrant/.rvm/scripts/rvm
gem install bundler
cd /sage && bundle install && npm install -g bower grunt-cli
SCRIPT
code {
font-family:'Bitstream Vera Sans Mono','Courier', monospace;
}
.highlight .c { color: #586E75 } /* Comment */
.highlight .err { color: #93A1A1 } /* Error */
.highlight .g { color: #93A1A1 } /* Generic */
.highlight .k { color: #859900 } /* Keyword */
.highlight .l { color: #93A1A1 } /* Literal */
.highlight .n { color: #93A1A1 } /* Name */
@eddywashere
eddywashere / mongo-on-startup.md
Last active August 29, 2015 14:02
Run mongod with some decent settings on startup

Create the mongod.conf and insert the config content.

sudo vim /usr/local/var/mongodb/mongod.conf

Grab the path to mongod. which mongod

Create the org.mongo.mongod.plist file and insert the plist content and update the path to mongod.

@eddywashere
eddywashere / ruby.md
Created March 13, 2014 23:03
old ruby notes

if

if tweets.empty?
  puts "no tweets found - better follow some ppl!"
end

# inline
puts "no tweets found - better follow some ppl!" if tweets.empty?