Skip to content

Instantly share code, notes, and snippets.

How to install MongoDB 2.0 on Mac OS X (>= Leopard)

Procedure

The whole install procedure is like the following.
You would have to do 7 steps.

  1. Download the latest tar file, and expand it.
  2. Move it to /usr/local/, and make a symbolic link to the folder.
  3. Add path to MongoDB binaries.
  4. Make an user that "mongod" runs on, and group that owns the user.
require 'rspec'
require './horserace.rb'
describe Horse do
let(:horse) {Horse.new}
it 'should exist' do
horse.should_not eq(nil)
end

Keybase proof

I hereby claim:

  • I am gchetrick on github.
  • I am gchetrick (https://keybase.io/gchetrick) on keybase.
  • I have a public key whose fingerprint is 94C0 2976 883C 30CC 8B2B DF67 8752 5A47 D64F B201

To claim this, I am signing this object:

@adammw
adammw / gs_htmlswf_v8.js
Created January 14, 2011 17:07
Grooveshark HTML5 Audio Injector
/*
* Grooveshark HTML5 Audio Injector for Flash-less browsers
* <https://gist.github.com/gists/779895>
* Version 0.0.8
*
* To use, simply copy and paste this code into the Developer Console
* for the open Grooveshark page and hit enter. Only tested with Google Chrome.
*
* Porting to Javascript Copyright (C) 2011 Adam Malcontenti-Wilson <adman.com@gmail.com>
* All other elements Copyright (C) Escape Media Group ("Grooveshark")
@atk
atk / LICENSE.txt
Created June 19, 2011 15:45 — forked from 140bytes/LICENSE.txt
polyfill an ES5-compatible Array.prototype.indexOf
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
{
"require": {
"adoy/oauth2": "dev-master"
}
}
@zfogg
zfogg / bookmark_me.js
Created December 6, 2013 11:30
B+W Mandela
// Made for http://webapps.aljazeera.net/aje/custom/mandelamosaicwebsite/mandela.html
// too lazy to mouse over entire face
// tl;dr - make bookmark, set URL to:
javascript:$("rect").each(function(d){d3.select(this).attr("fill",function(d){return d.Old})});
// Source:
$("rect").each(function(tile) {

Chrome Flags Breaking CSS In Strange Ways

If you have the Enable experimental Web Platform features flag set as enabled in Chrome you might have been noticed that interweb has been acting pretty weird. Here are some of the issues I encountered:

@aroman
aroman / gist:8779504
Created February 3, 2014 06:09
lol ruby
require "net/http"
require "uri"
require "json"
require 'terminal-notifier'
URL_ROOT = "http://closings.victorlourng.com/"
def fetch_json
uri = URI.parse(URL_ROOT + "api/?all")
@krrishd
krrishd / backtogeocities.js
Last active April 19, 2016 19:43
Bootstrap To Geocities
/*
Tired of the same old bootstrapped site?
Miss the trendy, hip Geocities look?
This bookmarklet will fix that in a click!
Derived from Bootstrap Geocities theme at http://code.divshot.com/geo-bootstrap/
Simply add new bookmark, edit url, and add bottom code in place of url. Whenevver you miss Geocities, click it.
*/