Skip to content

Instantly share code, notes, and snippets.

View gamelaster's full-sized avatar

Marek Kraus gamelaster

View GitHub Profile
@gamelaster
gamelaster / sunxi_sid_burn.c
Last active September 19, 2021 14:07
Sunxi SID eFuse burning code
/**
* Usage: <offset> <value>
*
* Tested on Allwinner H3. Burning to OEM_PROGRAM and NV2 works good, but to burning bits to NV1 area don't work.
* Use it at your own risk! I'm not responsible for any accidentally/wrongly blown fuses and voided warranties.
**/
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
@gamelaster
gamelaster / index.js
Created March 11, 2021 19:09
Skript na kontrolovanie voľných miest na očkovanie. Prosím, dajte dáky normálny check time, nech sa API server nepreťaží + zmente si adresu na VLC a audio súbor (btw npm install node-fetch fs-extra)
const fetch = require('node-fetch')
const fs = require('fs-extra')
const child_process = require('child_process')
const real = true
let myCounties = [
17, // Zvolen
23, // BB
18, // Brezno
@gamelaster
gamelaster / esp8266_relay.ino
Created December 1, 2018 13:50
Arduino sketch for ESP8266-01 relay baord
// Copyright 2018 Marek gamelaster Kraus, license: GNU GPLv3
#include <ESP8266WiFi.h>
const char* ssid = ""; // Write WiFi name
const char* password = ""; // Write here WiFi password
WiFiServer server(80);
int relayState = LOW;