Skip to content

Instantly share code, notes, and snippets.

Visualize data from a SmartThings sensor with Dweet and Freeboard

My SmartThings multisensor is a great little piece of technology. It reports, in real time, motion, temperature, and open/close state of my back door. The iOS app is slick, too, but I wanted a way to view it from my computer and have access to historical data.
Enter Dweet and Freeboard from Buglabs.

The SmartThings SmartApp and Dweet

There's actually no setup required on Dweet (but be sure to check out their nifty demo). It just starts eating data and making it available for use via HTTP/JSON!

@x33st0rm
x33st0rm / w7-malicious-updates-removal.bat
Last active September 14, 2017 18:00
Windows 7 removal of malicious telemetry/spyware, windows 10 forceful upgrade and otherwise unwanted updates.
@echo off
echo ------------------------------------------------------------------------------
echo Windows 7 Malicious Updates Batch Uninstaller by st0rm ( Updated 03-06-2016 )
echo ------------------------------------------------------------------------------
echo Prevent future malicious updates by disabling automatic windows updates.
echo Reboot manually afterwards to finish process.
echo ------------------------------------------------------------------------------
pause
echo Uninstalling KB971033
wusa /uninstall /kb:971033 /quiet /norestart
@hyteckit
hyteckit / rtl_tcp.service
Last active October 5, 2017 01:05 — forked from bemasher/README.md
A simple system for collecting and writing differential consumption values to an influxdb database.
[Unit]
Description=Software Defined Radio TCP Server
Wants=network.target
After=network.target
[Service]
ExecStart=/usr/bin/rtl_tcp
Restart=always
[Install]
@bemasher
bemasher / README.md
Last active February 2, 2019 21:19
This has become a full-blown project, see https://github.com/bemasher/rtlamr-collect
@rezlam
rezlam / ssh-agent
Created March 2, 2011 12:29
Put this code in .bashrc or .profile to start ssh-agent automatically (tested with Git Bash on Windows 7).
SSH_ENV="$HOME/.ssh/environment"
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV"
echo succeeded
chmod 600 "$SSH_ENV"
. "$SSH_ENV" > /dev/null
@mcgrew
mcgrew / etc_conf.d_routing
Created July 9, 2013 17:00
Systemd service to enable NAT routing.
wan_interface=ens32
lan_interface=ens33
@cute
cute / wireguard_config.txt
Created September 13, 2019 14:46 — forked from diyism/wireguard_config.txt
wireguard config
$ sudo apt-get install linux-headers-$(uname -r)
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
$ sudo modprobe wireguard
$ sudo mkdir /etc/wireguard
$ (umask 077 && printf "[Interface]\nPrivateKey = " | sudo tee /etc/wireguard/wg0.conf > /dev/null)
$ wg genkey | sudo tee -a /etc/wireguard/wg0.conf | wg pubkey | sudo tee /etc/wireguard/publickey
$ sudo nano /etc/wireguard/wg0.conf
@tomfanning
tomfanning / iscsi-target.txt
Created November 15, 2017 15:12
Create an iSCSI target on ZFS on CentOS 7
zfs create -o volblocksize=32k -V 10G tslpool/iscsi1
zfs set sync=disabled tslpool/iscsi1
targetcli
block/ create name=block_backend dev=/dev/zvol/tslpool/iscsi1
cd /iscsi
create iqn.2017-11.com.mydomain.ad.zfstest:iscsidisk1
cd /iscsi/iqn.2017-11.com.mydomain.ad.zfstest:iscsidisk1/tpg1/acls
# create acl with the initiator (client) name here, not the one you just created
create iqn.1991-05.com.microsoft:dc1.ad.mydomain.com
cd iqn.1991-05.com.microsoft:dc1.ad.mydomain.com
@pmartycz
pmartycz / ubuntu-mini-iso-uefi
Last active June 1, 2023 17:35
Ubuntu mini.iso with UEFI support
#!/bin/sh -eu
# Downloads, verifies and unpacks Ubuntu mini.iso fixing lack of UEFI support
# See https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1429030
# Thanks to https://www.nemotos.net/?p=2057
require() {
hash "$@" || die "Some of the required commands are missing"
}
@Syquel
Syquel / certbot-ecdsa.sh
Created August 6, 2019 20:34
A script to setup ECC / ECDSA certificates with Certbot including automatic renewal support.
#!/bin/bash
set -euf -o pipefail
## Prerequisites
# This script assumes lexicon-dns to be installed and configured for your specific DNS provider
# for the Let's Encrypt DNS-challenge.
# Further it is assumed that the lexicon-dns certbot-hook is installed under ${CONF_BASE_PATH}/renewal-hooks/manual/lexicon.sh .
# The lexicon-dns hook for certbot can be downloaded from https://github.com/AnalogJ/lexicon/blob/master/examples/certbot.default.sh .
# Make sure to adjust the variables in the section "Configuration" according to your installation.