Skip to content

Instantly share code, notes, and snippets.

View kangguru's full-sized avatar

Lars kangguru

View GitHub Profile
<snippet>
<content><![CDATA[
require "byebug"; byebug
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bye</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.ruby</scope>
</snippet>
@kangguru
kangguru / autossh.service
Created July 1, 2016 07:08 — forked from thomasfr/autossh.service
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
// ==UserScript==
// @name Edit Readme on Github
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author kangguru
// @include /https://github.com//
// @grant none
// ==/UserScript==
# Create a client
client = Epics::Client.new(....)
# print the public key for A (E and X work the same way):
puts client.a.key.public_key.to_s
# the public digest is directly accessible via:
puts client.a.public_digest
@kangguru
kangguru / gist:a9cd8ac91c9bfe24494e3a794374ae35
Created May 31, 2018 14:18
Busch Jäger ZigBee Switch and Philipps Hue
* plugin wall switch (and let it search for open networks)
* open the hue app and go to setting > add switches
* the wall switch should glow once its joined the network
* press the top 2 buttons of the switch until both led are on
* press the right button to open the network
* power a battery switch, it will glow once it has joined the network
* press the top 2 buttons of the battery switch
* press the right button for 2 seconds
* a network scan will happen
* to store scences press the button for 15 seconds