Skip to content

Instantly share code, notes, and snippets.

View KEGustafsson's full-sized avatar

Karl-Erik Gustafsson KEGustafsson

View GitHub Profile
@KEGustafsson
KEGustafsson / gist:9dde7a82fcfec6db4c31713d0e43b5a0
Created November 11, 2020 11:07 — forked from tkurki/gist:d8d45dfb368b3b544542511e8e95a45b
ESP8266 script to read DS18B20 sensors over 1W and broadcast Signal K JSON over udp
#include <OneWire.h>
#include <DallasTemperature.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <SPI.h>
#include <Wire.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <WifiServer.h>
@KEGustafsson
KEGustafsson / delete-slack-messages.js
Created April 7, 2020 20:01 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel and chat messages.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN'; // You can learn it from: https://api.slack.com/custom-integrations/legacy-tokens
// GLOBALS #############################################################################################################