Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name p3nguins User Scripts
// @namespace https://p3nguins.co.uk/
// @version 2.4
// @description We are Awesome
// @downloadUrl https://gist.github.com/ImTheDeveloper/cac48f202858e3667b20d1ce77651642/raw/p3ng.user.js
// @run-at document-start
// @exclude https://*/login*
// @exclude https://*/signup*
// @exclude https://*/register*
@ImTheDeveloper
ImTheDeveloper / notify_event
Last active June 25, 2016 16:03
Event emitter for postgresql listen function
-- Function: notify_event()
-- DROP FUNCTION notify_event();
CREATE OR REPLACE FUNCTION notify_event()
RETURNS trigger AS
@ImTheDeveloper
ImTheDeveloper / node-red
Last active August 29, 2015 14:08
update node path - use "which node" to find this path in ubuntu
#!/bin/bash
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the node-red server
### END INIT INFO
# Can be downloaded and installed in one go by using this command
@ImTheDeveloper
ImTheDeveloper / node-red
Created October 10, 2014 08:36 — forked from bigmonkeyboy/README.md
Node-Red Init.d Script - Updated
#! /bin/sh
# Starts and stops Node-RED
# /etc/init.d/node-red
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Node-RED initialisation
@ImTheDeveloper
ImTheDeveloper / gist:2fffb92cb3b277585cd9
Created July 7, 2014 19:14
Javascript GSM with mass callbacks for Espruino
var cmd="";
var global_response=0;
var answer="OK";
//Function handles data coming in from Serial.
Serial4.on('data',function (data) {
if(cmd.indexOf(answer) > 0){
#! /bin/sh
# Starts and stops node-red
# /etc/init.d/node_red
### BEGIN INIT INFO
# Provides: node_red
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Node Red