Skip to content

Instantly share code, notes, and snippets.


Shripad Krishna shripadk

View GitHub Profile
shripadk / gist:552554
Created Aug 27, 2010
Setting up Heroku Hostname SSL with GoDaddy SSL Cert
View gist:552554
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing).
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here:
* Heroku Hostname SSL
* GoDaddy Standard SSL Certificate
* Zerigo DNS
shripadk / gist:652819
Created Oct 29, 2010
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
View gist:652819
Module dependencies
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
shripadk / gist:1381446
Created Nov 21, 2011
secret. do not fork it!
View gist:1381446
/* SockJS client, version 0.1.1,, MIT License
Copyright (C) 2011 VMware, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Keybase proof

I hereby claim:

  • I am shripadk on github.
  • I am shripadk ( on keybase.
  • I have a public key ASB3td--QKqD1eTKdae2A2J7UJeW5WrO1KdF901ifacuWwo

To claim this, I am signing this object:

shripadk / gist:562270
Created Sep 2, 2010
Google Closure XPC demo
View gist:562270
goog.require(''); = function(url) {, 'load', function() { xpcdemo.initOuter(url); });
}; = function() {, 'load', function() { xpcdemo.initInner(); });
View tx rejected
View bitcoin-notification-client.js
var redis = require('redis');
var client = redis.createClient();
var pullNotifications = function() {
// if notification in list rpop it else block until one is available; timeout=0;
client.brpop('_bitcoin_notifications_', '_bitcoin_notifications_', 0, function(e, data) {
if(!data.length) return;
data = JSON.parse(data[1]);
switch(data.type) {
View gist:5691331
# download libpng 1.4.x (1.5 didn't work yet with GraphicsMagick 1.3.12)
./configure --prefix=$HOME/INST && make && make install
# download libjpeg
./configure --prefix=$HOME/INST && make && make install
# download GraphicsMagick
CFLAGS=-I$HOME/INST/include LDFLAGS=-L$HOME/INST/lib ./configure --prefix=$HOME/INST --disable-openmp --disable-openmp-slow && make && make install
shripadk / watch_jade.js
Last active Dec 17, 2015
Script that watches Jade files and compiles all of them to a single javascript file.
View watch_jade.js
#!/usr/bin/env node
* dependencies:
* clientjade (sudo npm install -g clientjade)
* chokidar (sudo npm install chokidar)
* how to run:
* node watch_jade.js
* to render template, just call:
* jade.render(domNode, templateName, data);
shripadk / MenuServicos.jsx
Created Dec 10, 2015 — forked from LuizMoreira/MenuServicos.jsx
[Rubix] - Menu item - I can't load menu item dynamically.
View MenuServicos.jsx
var ReactIntl = require('react-intl');
var IntlMixin = ReactIntl.IntlMixin;
var FormattedNumber = ReactIntl.FormattedNumber;
var MenuServicos = React.createClass({
mixins: [IntlMixin],
render: function() {
var menu = (
You can’t perform that action at this time.