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
@jasonmccay
jasonmccay / scar_tissue.md
Created May 8, 2024 14:55 — forked from gtallen1187/scar_tissue.md
talk given by John Ousterhout about sustaining relationships

"Scar Tissues Make Relationships Wear Out"

04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.

This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.

[Laughter]

> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation

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