Skip to content

Instantly share code, notes, and snippets.

# M5StickV Mic test
# ref. https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_spectrum.py
import audio
import sys
import lcd
from fpioa_manager import *
from Maix import I2S, GPIO, FFT
lcd.init()
lcd.rotation(2)
@narate
narate / create-hotspot.md
Last active May 16, 2024 04:35
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
@fevangelou
fevangelou / my.cnf
Last active May 25, 2024 19:49
Optimized my.cnf configuration for MySQL/MariaDB (on cPanel/WHM servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on cPanel/WHM servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated December 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
// ==UserScript==
// @name Grab HB keys
// @namespace org.chloetigre.perso
// @description Grab game keys from a humble bundle page
// @include https://www.humblebundle.com/home/keys
// @version 1
// @grant none
// ==/UserScript==
var hbkeys = {
};