Skip to content

Instantly share code, notes, and snippets.

View maeek's full-sized avatar

Maciej Suchanecki maeek

View GitHub Profile
@maeek
maeek / aux_wifi_pair.py
Created February 7, 2026 21:23
Pair AUX AC to wifi with custom remote servers
#!/usr/bin/env python3
import socket
import binascii
AC_IP = "192.168.10.1" # Standard IP
AC_PORT = 12414
TARGET_SSID = ""
TARGET_PASSWORD = ""
<?php
$host = $_ENV["DATABASE_ADDRESS"];
$database = $_ENV['MYSQL_DATABASE'];
$user = $_ENV['MYSQL_USER'];
$password = $_ENV['MYSQL_PASSWORD'];
$table = $_ENV['DATABASE_TABLE'];
$db = new mysqli($host, $user, $password, $database);
if ($db->connect_errno) {
@maeek
maeek / load-generator.js
Created January 11, 2020 13:34 — forked from gotomypc/load-generator.js
generate and measure CPU load with node.js
#!/usr/bin/env node
require(__dirname+"/processor-usage.js").startWatching();
var shouldRun = true;
var desiredLoadFactor = .5;
function blockCpuFor(ms) {
var now = new Date().getTime();
var result = 0
@maeek
maeek / koel
Last active November 2, 2019 14:56
Gist created with https://editor.eswomp.it/
FROM php:7.2-apache
ENV KOEL_DB_PASS=pass
ARG KOEL_VERSION=v4.1.1
ARG MYSQL_ROOT_PASS=pass
ARG DEPENDENCIES="\
build-essential \
@maeek
maeek / README.md
Last active January 9, 2020 21:45
Gist created with https://editor.eswomp.it/

Node.js application example