Skip to content

Instantly share code, notes, and snippets.

View jasonmccay's full-sized avatar
🏠
Working from home

Jason McCay jasonmccay

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jasonmccay on github.
  • I am jasonmccay (https://keybase.io/jasonmccay) on keybase.
  • I have a public key whose fingerprint is 5886 FE38 3715 07E3 45D4 ABC4 3AAE B861 0B72 064B

To claim this, I am signing this object:

development:
# Configure available database sessions. (required)
sessions:
# Defines the default session. (required)
default:
# Defines the name of the default database that Mongoid can connect to.
# (required).
database: the_guide_development
# Provides the hosts the default session can connect to. Must be an array
# of host:port pairs. (required)

:markdown

MongoHQ

MongoHQ is the fastest and easiest way to create a MongoDB database to use with your application. Our goal is to allow developers to focus on what they do best while we keep your database fast, optimized and reliable. It takes less than 30 seconds to sign up and create a MongoDB database.

For NodeKnockout, we have available 512MB plans in multiple data centers. Simply sign up and create a database and you will have full access to our industry-leading tools and a friendly and intelligent support team. We're excited to see what you build ... Good luck!

@jasonmccay
jasonmccay / mongohq.php
Created August 21, 2012 09:47 — forked from coderoshi/mongohq.php
MongoHQ PHP Connection
<!-- PHP Mongo Docs: http://php.net/manual/en/class.mongodb.php -->
<html>
<body>
<h1>MongoHQ Test</h1>
<?php
try {
// connect to MongoHQ assuming your MONGOHQ_URL environment
// variable contains the connection string
$connection_url = getenv("MONGOHQ_URL");
heroku config:add MONGOHQ_URL=mongodb://user:pass@servername.mongohq.com:port_name/db_name
export MONGOHQ_URL=mongodb://user:pass@server.mongohq.com/db_name
@jasonmccay
jasonmccay / gist:1619242
Created January 16, 2012 05:41
IAM Permissions Example
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::*"
},
@jasonmccay
jasonmccay / gist:1341650
Created November 5, 2011 15:18
MongoImport Command used to Import Data into a MongoHQ Database
## Example of MongoImport Used to Import Data into a MongoHQ Database ##
mongoimport -h staff.mongohq.com --port 10097 -d import_example -c football_players -u mongohq -p****** --type csv --file ~/Desktop/football_players.csv --headerline
@jasonmccay
jasonmccay / gist:1341607
Created November 5, 2011 14:49
CSV file for MongoImport Example in MongoHQ
## CSV File Example for MongoImport into a MongoHQ database
First Name,Last Name,Age,Position,Experience
Cameron,Newton,22,QB,Rookie
Darren,McFadden,24,RB,4yr
Mike,Pouncey,22,C,Rookie
run:
system.indexes
system.users
BUILD SUCCESSFUL (total time: 1 second)