Skip to content

Instantly share code, notes, and snippets.

at work

Gabriel Valky gabonator

at work
View GitHub Profile
gabonator / snowboylic.txt
Created Jun 19, 2018
snowboy kitt ai remove license expiration
View snowboylic.txt
Someone on the forums was complaining about expired sample model jarvis.umdl:!topic/snowboy-discussion/uWrtW6W0TiM
Look at the history of jarvis.umdl, there are two revisions - new one with unlimited expiration:
Download both revisions and see what is different:
gabonator / json.h
Created Jun 3, 2018
light json parser for microcontrollers
View json.h
class CSubstring
const char* mpString;
int mnBegin;
int mnLength;
CSubstring(const char* pString)
mpString = pString;
gabonator / scormgrab.js
Last active May 26, 2018
Scorm player grabber and decoder
View scormgrab.js
var request = require("request");
var fs = require("fs");
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Cookie': "MoodleSession=bd84957dad9ea0a2939fbcb0ffbd7116;",
'Accept': '/',
'Connection': 'keep-alive'
gabonator / kibana.js
Created May 1, 2018
kibana creating and pushing data from nodejs
View kibana.js
var request = require("request");
data = {
"mappings": {
"reading": {
"properties": {
"somenumber": {"type": "float"},
"sometext": {"type": "text"},
"timestamp": {"type": "date"},
gabonator / at_log.txt
Last active Apr 29, 2018
SIM900 nonblocking and reliable gprs http request for arduino and soft serial (at command logger)
View at_log.txt
GPRS Initialization
0: Send AT
1: Expect 'OK ' Got '' = no
1: Timeout 1000
1: Expect 'OK ' Got '' = no
1: Timeout -1 !!!TIMEOUT ERROR!!!
2: Send AT
3: Expect 'OK ' Got '' = no
3: Timeout 1000
3: Expect 'OK ' Got '' = no
gabonator / GPRS_Shield_Arduino.cpp
Created Apr 29, 2018
SIM900 GPRS request code for arduino (running on ESP8266)
View GPRS_Shield_Arduino.cpp
* GPRS_Shield_Arduino.cpp
* A library for SeeedStudio seeeduino GPRS shield
* Copyright (c) 2014 seeed technology inc.
* Website :
* Author : lawliet zou
* Create Time: April 2015
* Change Log :
gabonator / dmx.js
Last active Apr 6, 2018
DMX512 nodejs controller with libusb
View dmx.js
var usb = require('usb');
// DMX512 PC Computer USB Satge Lighting Controller Dimmer to DMX Interface Adapter
// Bus 020 Device 010: ID 16c0:05dc 16c0 uDMX Serial: ilLUTZminator001
var dev = usb.findByIds(0x16c0, 0x05dc);
var dmxAddress = 1;
gabonator / WebSocketServer.cpp
Created Mar 31, 2018
ESP8266 based Wifi CNC controller: http server, websocket server, embedded html resources
View WebSocketServer.cpp
//#define DEBUGGING
#include "WebSocketServer.h"
#include "crypto.h"
bool WebSocketServer::handshake(Client &client) {
socket_client = &client;
// If there is a connected client->
if (socket_client->connected()) {
// Check request and look for websocket handshake
gabonator / kataster.js
Created Mar 27, 2018
nodejs Kataster portal to kml converter
View kataster.js
// Kataster portal to kml converter
// Ziska geometriu parcely a skonvertuje do KML suboru ktory sa da vizualizovat v google earth
var request = require("request");
var list = [
{lv:"5124", parcela:"1372", register:"e", pomer:"1/5", plocha:5355},
{lv:"5124", parcela:"1373/201", register:"e", pomer:"1/5", plocha:3174},
{lv:"5124", parcela:"1373/202", register:"e", pomer:"1/5", plocha:1257},];
gabonator / multisampledSerial.ino
Created Mar 27, 2018
interrupt driven multisampled UART receiver for debugging of serial buses (esp8266 arduino)
View multisampledSerial.ino
// interrupt driven multisampled UART receiver
// useful for sniffing on both comm lines of buses with custom uart implementation with
// artifical data length or reversed polarity
#include <RingBufCPP.h>
//#define _ASSERT(cond) {if (!(cond)) {Serial.print("Assertion failed :"); \
Serial.print(#cond); while(1) yield();}}
#define _ASSERT(cond)
enum Config {
You can’t perform that action at this time.