Skip to content

Instantly share code, notes, and snippets.

View colde's full-sized avatar

Loke Dupont colde

  • TV 2 Danmark A/S
  • Copenhagen, Denmark
View GitHub Profile
@colde
colde / client.conf
Last active September 18, 2019 14:28
Wireguard config
[Interface]
PrivateKey = CLIENT_PRIVATEKEY
Address = 10.0.10.2/32
DNS = 1.1.1.1
[Peer]
PublicKey = SERVER_PUBLICKEY
AllowedIPs = 10.0.10.2/32, 0.0.0.0/0
Endpoint = SERVER_IP:51820
@colde
colde / luxafor-test.py
Created June 21, 2018 08:56
Test script for luxafor device using python HID
import time
import hid
luxdev = hid.device(0x04d8, 0xf372)
luxdev.open(0x04d8, 0xf372)
luxdev.write([1,255,0,0,0,0,0])
time.sleep(1)
luxdev.write([1,255,0,255,0,0,0])
time.sleep(1)
@colde
colde / snippet.js
Created March 7, 2018 11:43
Empty service worker caches
caches.keys().then(function(names) {
for (let name of names)
caches.delete(name);
});
@colde
colde / webpack.config.js
Last active February 7, 2017 18:02
Webpack config for django
var path = require('path');
var webpack = require('webpack');
var BundleTracker = require('webpack-bundle-tracker');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
context: __dirname,
entry: [

Keybase proof

I hereby claim:

  • I am colde on github.
  • I am colde (https://keybase.io/colde) on keybase.
  • I have a public key ASBoIylf1JoXDul1sLFeG0I7Rt4xzfIUZKFmN1VloKbqIAo

To claim this, I am signing this object: