Skip to content

Instantly share code, notes, and snippets.

@letz
letz / NodeMCU-MQTT-Siri-Wifi-Light.ino
Created December 23, 2016 00:11 — forked from jamesabruce/NodeMCU-MQTT-Siri-Wifi-Light.ino
Wi-Fi Neopixel light controlled over MQTT, to be connected through HAP-NodeJS to Siri
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN 4
Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, PIN, NEO_GRB + NEO_KHZ800);
@letz
letz / decode_session_cookie.rb
Created September 23, 2016 13:38 — forked from pdfrod/decode_session_cookie.rb
A simple script to decode Rails 4 session cookies
@letz
letz / websocket-rails_message_format.js
Created February 10, 2016 14:00 — forked from DanKnox/websocket-rails_message_format.js
Format of WebsocketRails Messages
/****** Current Format ******/
// Basic Message
metadata = {
id: 1234234234, // Randomly generated by the client. Used for receiving success/fail callbacks
client_id: 123456 // Sent from the server with the `websocket_rails.client_connected` event which is sent after the connection is opened. Store this and send it with each message.
data: {name: 'shoes'} // Arbitrary data. Can be Object or String. This is available through #message or #data in the controller.
}
event = ["products.new", metadata]
@letz
letz / LICENSE.txt
Created July 30, 2014 05:51 — forked from jed/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE