Skip to content

Instantly share code, notes, and snippets.

View maxgalbu's full-sized avatar

Massimo Galbusera maxgalbu

  • hotelscan.com
  • Switzerland
View GitHub Profile
@interface NSObject (Debounce)
- (void)debounce:(SEL)action delay:(NSTimeInterval)delay;
@end
@maxgalbu
maxgalbu / node.sh
Last active December 18, 2015 01:39 — forked from jmtagarro/node.sh
removing repeating whitespaces put the PID in 2nd position, not 6th
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
# Creamos un fichero PID para monit
SCRIPT="$(basename $0)"