Skip to content

Instantly share code, notes, and snippets.

View toolboc's full-sized avatar

Paul DeCarlo toolboc

View GitHub Profile
@toolboc
toolboc / Adblock for Buffalo WHR-G54
Last active August 29, 2015 14:03
Adblock for Buffalo WHR-G54
#!/bin/sh
logger WAN up script executing
sleep 2
logger Create Whitelist
if test ! -s /tmp/whitelist
then
cat >/tmp/whitelist <<"EOF"
ads.hulu.com
@toolboc
toolboc / ntdll.mak
Last active August 29, 2015 14:12
Modified ntdll.mak for building OpenSSL for Windows on Intel Galileo
#Note: You will need to fix (comment out) unresolved externals in rand_win.c, cryptlib.c, and apps.c
#
#You can identify these by logging the output of the makefile using:
#nmake -I -f ms\ntdll.mak > output
#
#After commenting out unresolved externals, run:
#nmake -I -f ms\ntdll.mak reallyclean
#nmake -I -f ms\ntdll.mak > output
#Verify that you only receive errors creating e_capi.obj
#Deploy along with openssl.cnf to your galileo device
@toolboc
toolboc / Apache-Qpid-Proton-0.6 with SSL Support on Intel Edison
Last active February 28, 2016 15:28
Apache-Qpid-Proton-0.6 with SSL Support on Intel Edison
opkg install openssl-dev openssl
wget http://www.cmake.org/files/v3.1/cmake-3.1.0.tar.gz
tar -xvzf cmake-3.1.0.tar.gz
cd cmake-3.1.0
./bootsrap
make
make install
cd ..
wget http://softlayer-dal.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz
tar -xvzf libuuid-1.0.3.tar.gz
@toolboc
toolboc / Ino installation for Intel Galileo
Last active August 29, 2015 14:13
Ino installation for Intel Galileo
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz --no-check-certificate
tar -xvzf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
easy_install ino
cd ..
wget https://github.com/amperka/ino/archive/master.zip --no-check-certificate
unzip master.zip
cd ino-master
make install PREFIX=/usr
cd ..
@toolboc
toolboc / Water Experiment
Last active August 29, 2015 14:13
Water Experiment
int frequencyInHz = 51;
int led = 13;
float restTime = (1/frequencyInHz) * 1000;;
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT); // Configure the pin for OUTPUT so you can turn on the LED
tone(8, frequencyInHz);
}
@toolboc
toolboc / AzureMobileServiceEventHubProxy.js
Created May 4, 2015 22:44
AzureMobileServiceEventHubProxy.js
var https = require('https');
var crypto = require('crypto');
var moment = require('moment');
exports.post = function(request, response) {
sendTemperature(JSON.stringify(request.body));
console.log(request.body);
response.send(statusCodes.OK);
};
@toolboc
toolboc / Particle Webhook for ConnectTheDots
Last active August 29, 2015 14:23
Particle Webhook for ConnectTheDots
{
"event": "ConnectTheDots",
"url": "https://YOUR_EVENT_HUB_NAME-ns.servicebus.windows.net/ehdevices/messages",
"requestType": "POST",
"json": {
"subject": "{{s}}",
"unitofmeasure": "{{u}}",
"measurename": "{{m}}",
"value": "{{v}}",
"organization": "{{o}}",
@toolboc
toolboc / Particle WebHook for Azure Event Hubs
Last active November 20, 2015 14:18
Particle WebHook for Azure Event Hubs
{
"event": "NAME_OF_YOUR_EVENT",
"url": "EVENT_HUB_URL",
"requestType": "POST",
"json": {
{
"event": "ConnectTheDots",
"url": "https://connectthedotsex-ns.servicebus.windows.net/ehdevices/messages",
"requestType": "POST",
"json": {
"subject": "{{s}}",
"unitofmeasure": "{{u}}",
"measurename": "{{m}}",
"value": "{{v}}",
"organization": "{{o}}",
@toolboc
toolboc / ParticleWeatherShield.ino
Last active August 29, 2015 14:24
ParticleWeatherShield.ino
// This #include statement was automatically added by the Spark IDE.
#include "HTU21D/HTU21D.h"
HTU21D htu = HTU21D();
char Org[] = "ORGANIZATION_NAME";
char Disp[] = "DISPLAYNAME";
char Locn[] = "LOCATION";
void setup()