Skip to content

Instantly share code, notes, and snippets.


Jens J. zerog2k

  • DFW
View GitHub Profile
zerog2k /
Last active Oct 27, 2020
script to upload firmware to FlashForge Dreamer (or PowerSpec Ultra3D) printers
#!/usr/bin/env python3
script to upload firmware to FlashForge Dreamer (or PowerSpec Ultra3D) printers
import usb
import hashlib
printer = usb.core.find(idVendor=0x2b71)
zerog2k / gist:f8d5ad83d2b93f145a4f1d8964663d10
Last active Nov 30, 2020
notes for repurposing Ubiquiti CRM Point to "Cloud Key", by installing unifi controller
View gist:f8d5ad83d2b93f145a4f1d8964663d10
install latest crmpoint fw per:
# login via ssh
# change root/ubnt password
# fix jessie backports repo
echo "deb jessie-backports main" >> /etc/apt/sources.list
zerog2k /
Last active Nov 9, 2020
reads and parses sensor data of JQ-200 / JQ-300 from ypyt cloud for given device token
#!/usr/bin/env python3
""" reads and parses sensor data from ypyt cloud for given device token """
# see for more context
import json
import os
import sys
import paho.mqtt.client as mqtt
import time as t
zerog2k / nginx.conf
Created Feb 7, 2019
poc of openresty config to dynamically route udp traffic to backends with ip whitelisting, based upon data stored in redis
View nginx.conf
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
stream {
lua_shared_dict config 10m;
zerog2k /
Created Aug 11, 2018
ID115 Bluetooth BLE smart watch fitness band pinouts
zerog2k /
Last active Apr 25, 2019
Lynwo i8 bluetooth smart watch fitness band with heart rate sensing
zerog2k / gist:f830c5722c4686c327e2850406cb9377
Last active Jul 11, 2020
ID115 ble command set exploration
View gist:f830c5722c4686c327e2850406cb9377
settings write on uuid 0x0af6 to device:
responses read on uuid 0x0af7 (notify?)
startup - scan:
> 0204
< Value: 0204f2fc581240a6
> Value: 0202
< Value: 02025b0a8f01076d6b050f06
View delay-example.asm
;Allocation info for local variables in function '_delay_ms_old'
;ms Allocated to registers r7
;i Allocated to registers r6
;j Allocated to registers r5
; src/blinky.c:26: void _delay_ms_old(unsigned char ms)
; -----------------------------------------
; function _delay_ms_old
; -----------------------------------------
View gist:3ac7723c9387d847683258ba4baeaafc
// adapted from
#include <TinyGPS.h>
#include <LiquidCrystal.h>
TinyGPS gps;
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); //LCD driver pins
int led = 13;
zerog2k / stc15f_prog.c
Last active Oct 15, 2017
stc mcu programmer sample code from stc website for stc15f series, with some google translate ;)
View stc15f_prog.c
/* --- STC MCU Limited ------------------------------------------------*/
/* --- To be downloaded from the ISP chip (limited STC15 series), for example using the main chip -----------------*/
/* --- Mobile: (86)13922805190 ----------------------------------------*/
/* --- Fax: 86-755-82905966 -------------------------------------------*/
/* --- Tel: 86-755-82948412 -------------------------------------------*/
/* --- Web: --------------------------------------------*/
/* If you want to use this code in the program, in the program, using the information and procedures specified macro crystal technology */
/* If you want to quote this code in the article, please indicate in the article the use of information technology and procedures Wang Jing */
You can’t perform that action at this time.