Skip to content

Instantly share code, notes, and snippets.

View csanz's full-sized avatar
🎯
Focusing

Christian Sanz csanz

🎯
Focusing
View GitHub Profile
@csanz
csanz / install_varnish.md
Created July 4, 2012 22:14
Install Varnish Cache / Ubuntu
@csanz
csanz / mongodb.js
Created July 3, 2012 05:46
You'd be shocked how fast this query runs
var users = []
db.users.find({}, {_id:1}).limit(15000).forEach(function(data){ users.push(data._id) })
db.activities.find({'user.id': { $in: users }}).sort({created_at: -1})
// in less than 2 secs.
@csanz
csanz / aplusk.json
Created June 27, 2012 22:49
Ashton Kutcher Created a Geeklist Account w000t!
db.users.findOne({'oauth.screen_name': 'aplusk'},{referrer:1, created_at:1, 'oauth.screen_name':1, name:1})
{
"_id" : ObjectId("REMOVED"),
"created_at" : ISODate("2012-04-19T14:37:25.318Z"),
"name" : "ashton kutcher",
"oauth" : {
"screen_name" : "aplusk"
},
"referrer" : "http://t.co/jabb5osC"
}
Delphi Solutions develops user-friendly, intelligent software to improve
government performance. Recently founded by Stanford technologists, and
backed by prominent Silicon Valley entrepreneurs and investors, Delphi’s
team has a proven track record for disrupting major market sectors like
finance and defense. Founding chairman Joe Lonsdale (Palantir, Addepar,
Formation 8) has shown how talented and passionate engineers can
transform the delivery of enterprise software. We are now tackling the
hardest problem in the biggest space: cracking open the government backoffice to make it smarter and more accessible than ever.
Delphi team members receive equity stakes, competitive salaries and benefits,
customizable workstations, and the opportunity to take on immense challenges.
@csanz
csanz / links.md
Created June 5, 2012 01:06
How to add links inside Geeklist as a gist
@csanz
csanz / hey.js
Created June 3, 2012 07:05
JSONP
callMe({name: 'chris'})
@csanz
csanz / fbbug.md
Created May 24, 2012 01:37
FB Bug

Screenshot

Screenshot

IPO what?

@csanz
csanz / geeklistAPIideas.md
Created May 1, 2012 21:10
Geeklist API Hackathon Ideas (In Progress)
  • An app that coordinates code commits with songs being played on Spotify
  • Post micros via SMS (with Twilio)
@csanz
csanz / hackathons101.md
Created April 29, 2012 15:41
Hackathons 101

Summary

Just some quick notes on how to create a hackathon, super simple really.

Sponsors & Judges

  • Prepare one page summary of the event (Name, venue, audience numbers)
  • Reach out to tech evangelist from various companies, offer 10 minutes to pitch their APIs (skype or in person)
  • Reach out to influential hackers to be judges and includes sponsors
@csanz
csanz / creds.md
Created April 26, 2012 18:05
earning creds inside geeklist

Creds are credibility points that you collect inside Geeklist. You earn them by doing different things on the site like committing code or making the data better and sending change requests. For now we only have three types of creds: code, data and social.

code creds

  • code commit +1
  • high five to code commit +1
  • high five to repo +1
  • X number of lines +2