Skip to content

Instantly share code, notes, and snippets.


Sunny R. Juneja sunnyrjuneja

View GitHub Profile
View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
soheilhy /
Last active Jun 26, 2022
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for,, and on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

schickling / Rakefile
Last active Jun 26, 2022
Activerecord without Rails
View Rakefile
require "active_record"
namespace :db do
db_config = YAML::load('config/database.yml'))
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
desc "Create the database"
task :create do
dypsilon /
Last active Jun 29, 2022
A badass list of frontend development resources I collected over time.
belisarius222 / ddp_log.js
Created Jan 10, 2013
patch client-side Meteor functions to print out the DDP messages. Add this somewhere in your client-side JS before Meteor.startup() and it should print out the DDP messages. Please let me know if there are some that are missing! I'm not sure I caught all of the handler functions.
View ddp_log.js
var monkeyPatches = {
'_livedata_data': 'DATA',
'_livedata_error': 'ERROR',
'_livedata_nosub': 'NOSUB',
'_livedata_connected': 'CONNECTED',
'_livedata_result': 'RESULT',
var modifiedFunctionName = funcName+'_original';
var extension = {};