Skip to content

Instantly share code, notes, and snippets.

View jnnkls's full-sized avatar
🤔
tinkering ...

Jan-Niklas jnnkls

🤔
tinkering ...
View GitHub Profile
@cliffrowley
cliffrowley / STREAMDECK_HID.md
Last active May 28, 2025 12:02
Notes on the Stream Deck HID protocol

Stream Deck Protocol

How to interface with a Stream Deck device.

Synopsis

The device uses the HID protocol to communicate with its software.

Configuration

@nolanlawson
nolanlawson / browser.js
Last active June 21, 2019 22:13
Example Browserify and Webpack output, split index.js and browser.js
module.exports = function (string) {
return btoa(string);
};
@viperey
viperey / docker-iptables.md
Last active May 29, 2025 08:26
A brief how-to deal with docker and iptables

Dockers and iptables.

The first thing when you come to this topic is that when it comes to iptables, docker just behaves like a spoiled child that takes what (s)he want, although the child is been banned to do so.

In other words, as you may already know, by default, docker ignores any pre-existing iptables' rules when adding its own Chain in the tables. The result of this is a useless firewall when it comes to protecting the access to your services hosted in containers.

Tell me how you almost screw up

So, at the office, at the moment we had this problem we were migrating our projects into containers.

@robinhouston
robinhouston / Makefile
Last active May 14, 2018 12:15
How to make a map of the world with D3
all: world.topo.json libs
libs: d3.geo.projection.v0.min.js d3.v3.min.js topojson.v1.min.js
clean:
rm -f world.*.json ne_10m_admin_0_countries.* *.min.js
.PHONY: all clean libs
%.topo.json: %.geo.json
@sukei
sukei / Router.php
Created February 19, 2014 15:21
A Router in a Tweet
<?php
/**
* The Router class is a fast and lightweight router (yes it is). It can handle
* a path and call the matching controller. If there is no match, then an
* exception will be throwned.
*
* ...and it fits in a tweet.
*
* @author Quentin Schuler aka Sukei <[email protected]>
@border
border / mgoExample.go
Created August 27, 2012 15:33
mgo example
package main
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"time"
)
type Person struct {