Skip to content

Instantly share code, notes, and snippets.

View elvis-epx's full-sized avatar

Elvis Pfützenreuter elvis-epx

View GitHub Profile
#!/bin/bash
voice1=pluck
notes1="C4,1.3 F4,1 D#4,0.1 C#4,0.1 C4,1.2 F4,0.9 D#4,0.1 C#4,0.1 C4,0.5
F4,0.5 F4,0.5 G#4,0.5 G4,0.135 G#4,0.135 G4,0.135 F4,0.135 Eb4,0.135
F4,0.135 G,4"
notes2="G#3,1.3 G#3,1 A#3,0.1 A#3,0.1 G#3,1.2 C#4,0.9 A#3,0.1 A#3,0.1 G#3,0.5
G#3,0.5 C4,0.5 F4,0.5 D#4,0.135 D#4,0.135 Eb4,0.135 Eb4,0.135 Eb4,0.135
Eb4,0.135 Eb,4"
@elvis-epx
elvis-epx / rmtrx.mpy
Created January 25, 2026 14:38
Test RMT RX soft filtering
import esp32
from machine import Pin
import time
import select
# rx = esp32.RMTRX(pin=Pin(14), num_symbols=64, min_ns=3100, max_ns=5000*1000, resolution_hz=1000000, \
# soft_min_ns=150*1000, soft_max_ns=1500*1000, soft_min_len=49, soft_max_len=57)
rx = esp32.RMTRX(pin=Pin(14), num_symbols=64, min_ns=3100, max_ns=5000*1000, resolution_hz=1000000)
rx.active(1)
while True:
@elvis-epx
elvis-epx / export.sh
Created July 1, 2026 14:34
Create a video from MP3 plus a still image
#!/bin/bash
ffmpeg -loop 1 -i turuna.jpg -i turuna.wav -c:v libx264 -tune stillimage \
-c:a aac -b:a 192k -vf "scale='iw-mod(iw,2)':'ih-mod(ih,2)',format=yuv420p" \
-shortest -movflags +faststart turuna.mp4
@elvis-epx
elvis-epx / gist:afd44a102221c171a8e70cb0cee97df6
Created August 7, 2026 17:37
Reseta roteador Elsys Amplimax 4G programaticamente
// module.paths.push('/usr/lib/node_modules');
const puppeteer = require('puppeteer');
let Timeout = require('await-timeout');
let url_base = process.argv[2];
let username = process.argv[3];
let password = process.argv[4];
(async () => {
let get_internet_status = async (page) => {