Skip to content

Instantly share code, notes, and snippets.

View krishnenc's full-sized avatar

krishnen chedambarum krishnenc

View GitHub Profile
@selenamarie
selenamarie / gist:5155906
Last active October 15, 2017 05:46 — forked from jallspaw/gist:5154620
Links to presentations about sharding
== PostgreSQL
Braintree
* https://www.braintreepayments.com/braintrust/scaling-postgresql-at-braintree-four-years-of-evolution
Instagram
* http://www.databasesoup.com/2012/04/sharding-postgres-with-instagram.html
* http://media.postgresql.org/sfpug/instagram_sfpug.pdf
* http://instagram-engineering.tumblr.com/post/10853187575/sharding-ids-at-instagram#_=_
* http://instagram-engineering.tumblr.com/post/40781627982/handling-growth-with-postgres-5-tips-from-instagram
@Nurdok
Nurdok / python_conversion.md
Last active July 11, 2024 15:00
Python Conversion

Python Number Conversion Chart

From To Expression
@hellerbarde
hellerbarde / latency.markdown
Created May 31, 2012 13:16 — forked from jboner/latency.txt
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@tekul
tekul / GatlingPlugin.scala
Created March 29, 2012 21:31
Gatling SBT Plugin
import sbt._
import Keys._
object GatlingPlugin {
val gatling = TaskKey[Unit]("gatling")
val gatlingVersion = SettingKey[String]("gatling-version")
val gatlingResultsDirectory = SettingKey[String]("gatling-results-directory")
val gatlingDataDirectory = SettingKey[String]("gatling-data-directory")
val gatlingConfigFile = SettingKey[String]("gatling-config-file")
@chrsan
chrsan / AkkaUnfilteredSample.scala
Created February 17, 2012 09:47
Akka 2.0 unfiltered RESTful sample
package akka.unfiltered
import akka.actor._
import akka.dispatch.Future
import akka.pattern.ask
import akka.util.duration._
import akka.util.Timeout
import unfiltered.Async
import unfiltered.request._
@endtwist
endtwist / lazy.js
Created November 17, 2011 19:22
Javascript asset lazy loading
/**
* Lazy load assets, call callback fn after all assets have loaded.
*
* Requires: jQuery or Zepto
*
* Usage:
* Lazy.load({"js": ["js/file.js"],
* "tpl": [{"src": "tpl/event.tpl", "id": "event-view"}],
* "css": ["css/file.css"]
* });