Skip to content

Instantly share code, notes, and snippets.


Sascha Wessel gr4y

View GitHub Profile
gr4y / kasa-dashboard.json
Created Jun 21, 2021
TP-Link Kasa Grafana Dashboard
View kasa-dashboard.json
// TP-Link Kasa Dashboard
// based on, but slightly modified
"annotations": {
"list": [
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
gr4y / style.css
Last active Jun 16, 2017
A User Style for to make the profile images and buttons less round
View style.css
.Avatar, .avatar,
gr4y / http_serve_stop.go
Created Jan 22, 2016
Stopping an http.Server via channel. I want to use this for OAuth2 in an command line application, I don't want to be an web application.
View http_serve_stop.go
package main
import (
// "os"
func main() {
gr4y / wemo.go
Last active Sep 25, 2017
Toggle all WeMo switches. If it is on, it will turn off. If it is off, it will turn on. Just a quick little thing.
View wemo.go
package main
import (
func main() {
devices, err := goupnp.DiscoverDevices("urn:Belkin:device:controllee")
gr4y / ssdp-discovery.go
Last active Oct 21, 2015
Go-Utility to discover UPNP Services over SSDP. Uses:
View ssdp-discovery.go
package main
import (
func main() {
devices, err := goupnp.DiscoverDevices("upnp:rootdevice")
if err != nil {
View fml-server-latest.log
[11:02:52] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[11:02:52] [main/INFO] [FML/]: Forge Mod Loader version for Minecraft 1.8 loading
[11:02:52] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_45\jre
[11:02:52] [main/DEBUG] [FML/]: Java classpath at launch is C:\Program Files\Java\jdk1.8.0_45\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\rt.jar;C:\Program Files\Java\jdk
DATE=`date "+%d.%m.%Y"`
# Change to Directory
cd $DIR
if [ ! -f $FILE ]; then
echo "# $DATE\r\n" > "$"
View deploy.rake
task :deploy do
sh "rsync -rt _site #{USER}@#{SERVER}:~/blog"
gr4y /
Last active Feb 11, 2018
Liquid-Tag for embedding Instagram into your Jekyll Posts
gr4y / .slate
Created Oct 27, 2013
my configuration file for the slate window manager
View .slate
# Parts of this config is borrowed from
# -------------------------------------------------------------------
# See
config defaultToCurrentScreen true
config secondsBeforeRepeat 0.4
config secondsBetweenRepeat 0.1