Skip to content

Instantly share code, notes, and snippets.


Maximilian Beck glumb

View GitHub Profile
glumb / browser-language-codes.js
Last active Apr 6, 2020 — forked from wpsmith/browser-language-codes.js
JS: Object of Browser Language Codes
View browser-language-codes.js
// <![CDATA[
var langCodes = {
"af": "Afrikaans",
"sq": "Albanian",
"ar": "Arabic (Standard)",
"ar-dz": "Arabic (Algeria)",
"ar-bh": "Arabic (Bahrain)",
"ar-eg": "Arabic (Egypt)",
"ar-iq": "Arabic (Iraq)",
"ar-jo": "Arabic (Jordan)",
glumb / KVPdisector.lua
Created Feb 27, 2019
KUKAVARPROXY Wireshark Interpreter/Disector - Copy to C:\Program Files\Wireshark\plugins\2.6
View KVPdisector.lua
kvp_protocol = Proto("KVP", "KUKAVARPROXY Protocol")
type = ProtoField.string("kvp.type", "TYPE", base.STRING)
reqID = ProtoField.int32("kvp.reqID", "REQ ID", base.DEC)
reqLen = ProtoField.int32("kvp.reqLen", "REQ LEN", base.DEC)
method = ProtoField.int32("kvp.method", "METHOD", base.DEC)
varNameLen = ProtoField.int32("kvp.varNameLen", "VAR LEN", base.DEC)
varName = ProtoField.string("kvp.varName", "VAR NAME", base.STRING)
valueLen = ProtoField.int32("kvp.valueLen", "VALUE LEN", base.DEC)
value = ProtoField.string("kvp.value", "VALUE CHARS", base.STRING)
glumb / IOTArtAddCube.js
Last active Jan 27, 2018
Programmatically adding cubes to
View IOTArtAddCube.js
const request = require('request');
const IOTA = require('iota.lib.js');
var node = 'http://INSERT_POW_NODE_HERE:14265';
var seed = 'SEED'
var IOTArtCubeHelper = function() {
var cubes = null
var address = null
glumb / iotaWalletGenAddresses.js
Last active Oct 26, 2017 — forked from GpanosXP/iotaWalletGenAddresses.js
A script that continually clicks the generate new address button until you tell it to stop.
View iotaWalletGenAddresses.js
var genAddrId = genAddrId || undefined;
var btnAddr = document.getElementById("generate-address-btn");
function genNewAddr()
if (btnAddr.innerText[2] != "D") return;;
setTimeout(function() {; }, 1000);
glumb / gist:8812e7d964c4fe7d0cf381a5c1a71750
Last active Aug 22, 2017 — forked from zacharyvoase/gist:1770447
zmqc: A small but powerful command-line interface to ZMQ.
View gist:8812e7d964c4fe7d0cf381a5c1a71750
#!/usr/bin/env python
# zmqc: a small but powerful command-line interface to ZMQ.
## Usage:
# zmqc [-0] (-r | -w) (-b | -c) SOCK_TYPE [-o SOCK_OPT=VALUE...] address [address ...]
## Examples:
# zmqc -rc SUB 'tcp://'
# Subscribe to 'tcp://', reading messages from it and printing
glumb / slowServoInit.cpp
Last active Apr 5, 2017
Arduino, slowly move the servo to the target orientation from an unknown angle. Delay may be adjusted to match the refresh rate of the servo. Basically it pulses the servo with alternating max and min us until it gets to the target microseconds.
View slowServoInit.cpp
MIT License
Copyright (c) 2017 Maximilian Beck
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
View gist:fbe22f29ace6322bc986
// create a canvas element
var canvas1 = document.createElement('canvas');
var context1 = canvas1.getContext('2d');
context1.font = "Bold 20px Arial";
context1.fillStyle = "rgba(0,0,0,0.95)";
context1.fillText('Hello, world!', 0, 20);
// canvas contents will be used for a texture
var texture1 = new THREE.Texture(canvas1)
You can’t perform that action at this time.