Skip to content

Instantly share code, notes, and snippets.

View literalsands's full-sized avatar

Austin New literalsands

View GitHub Profile

Keybase proof

I hereby claim:

  • I am literalsands on github.
  • I am literalsands (https://keybase.io/literalsands) on keybase.
  • I have a public key whose fingerprint is 3480 FAB1 8DA1 335B 5817 AB13 E67C C707 AA9F 438D

To claim this, I am signing this object:

@literalsands
literalsands / APPNAME
Created October 25, 2015 22:45 — forked from shimondoodkin/APPNAME
init.d script for node.js for debian
#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
@literalsands
literalsands / _template_syntax.js
Last active August 29, 2015 13:56
Meteor Template Syntax
// A bit hacky...
// I'm using Underscore
// Make Template a function. Gets and extends template instances.
Template = _.extend(function(instance_name, instance_functions) {
var instance = Template[instance_name];
if (instance && _.isObject(instance_functions))
_.extend(instance, instance_functions);
return instance;
}, Template);