Skip to content

Instantly share code, notes, and snippets.

View tecteun's full-sized avatar
💭
🤠

tecteun

💭
🤠
View GitHub Profile
@FevenKitsune
FevenKitsune / sig_gen.cpp
Last active December 18, 2025 20:01
Dynamic LUT generation and Direct Memory Access non-blocking signal generation
#include <Arduino.h>
#define FREQUENCY 21000
const uint16_t sample_count = 1000000 / FREQUENCY; // Reorganization of the (48MHz / (sample_count * freq)) - 1 to compute array size.
uint16_t lut[sample_count];
// https://forum.arduino.cc/t/samd51-dac-using-dma-seems-too-fast/678418/4
typedef struct // DMAC descriptor structure
{
uint16_t btctrl;
@HarwinBorger
HarwinBorger / ffmpeg-mp4-to-animated-webp.md
Created June 24, 2021 11:53 — forked from witmin/ffmpeg-mp4-to-animated-webp.md
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

@rlaphoenix
rlaphoenix / ps2_homebrew.md
Last active January 26, 2025 09:31
PS2 - Homebrew, Games, Cheats, and More

PS2 - Homebrew, Games, Cheats, and More

Hardware

Expansion Bay (HDD)

Official 3rd-party
Supports SLIM Models*1
RJ45 Network Port (Ethernet) ✔️
@jackblk
jackblk / disable-auto-update-android.md
Last active September 18, 2026 23:40
disable auto update on android, this is for samsung phone

This guide is for Windows.

  • Connect phone via USB to PC, wait a while for drivers to install.
  • Install "Minimal ADB Fastboot" (from XDA-Developers).
  • Enable USB DEBUG under "Config / Developer Options" on phone.
  • Open a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
  • Open phone adb shell: adb shell
  • Use the following commands:
@rlaphoenix
rlaphoenix / _restream_cenc.md
Last active August 6, 2026 13:41
Ways to re-stream and decrypt MPEG-CENC live streams. (or just play on desktop)

Disclaimer

  1. All content keys were redacted, they should be 128-bit hex strings.
  2. These methods involve the use of ffmpeg and -cenc_decryption_key which is not part of stable releases as of July 2022. Use nightlies from gyan.dev or some other autobuild in the meantime. Hopefully it gets added in the next stable release.
  3. On my end none of these were particularly reliable. This may change in the future as FFmpeg evolves. The direct method of playing with ffplay is currently the most reliable out of the listed methods.

xTeVe (for Emby/Plex)