Skip to content

Instantly share code, notes, and snippets.

View tecteun's full-sized avatar
💭
🤠

tecteun

💭
🤠
View GitHub Profile
@rlaphoenix
rlaphoenix / _restream_cenc.md
Last active January 22, 2026 15:04
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)

@jackblk
jackblk / disable-auto-update-android.md
Last active January 29, 2026 07:32
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 / 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) ✔️
@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;
@det-peralta
det-peralta / tcl_broadlink.json
Created March 27, 2020 18:58
Broadlink IR Codes for TCL 55EP640 (Android)
diff --git a/sphinx/builders/__init__.py b/sphinx/builders/__init__.py
index 8eaa0e215..62887098a 100644
--- a/sphinx/builders/__init__.py
+++ b/sphinx/builders/__init__.py
@@ -452,12 +452,33 @@ class Builder:
def _read_serial(self, docnames):
# type: (List[str]) -> None
+ times = []
+ import psutil
@srikanthsunkari
srikanthsunkari / [Updated]webpack.config.js
Last active June 26, 2023 12:16
react native web with webpack configuration
// web/webpack.config.js
const path = require('path');
const webpack = require('webpack');
const appDirectory = path.resolve(__dirname, '../');
// This is needed for webpack to compile JavaScript.
// Many OSS React Native packages are not compiled to ES5 before being
// published. If you depend on uncompiled packages they may cause webpack build
@DavidBuchanan314
DavidBuchanan314 / root_my_vm.py
Last active August 18, 2024 03:00
Get root any running *nix VM by patching it's memory from the host.
#!/usr/bin/python3
import sys
import os
import signal
PATTERN = b"root:x:0:0:root"
REPLACE = b"root::00:0:root"
@sketchpunk
sketchpunk / _CURVES_IN_JS.md
Last active November 25, 2024 08:48
Curves in Javascript

Curves in Javascript

Collection of algorithms related to using curves written in javascript.

Curve Types

  • Cubic Bezier Splines : inc. derivative, 2nd derivative, normals, easing
  • Catmull Rom
  • Kochanek Bartels ( TCB Splines ) : inc. derivative
  • Lemniscate of Bernoulli and Gerono : inc. derivative
  • Watt's Curve
  • Torus Knot : inc. derivative, 2nd derivative
@leshido
leshido / Hacky.hx
Created February 2, 2019 20:23
A hacky way to hijack methods in the Haxe standard library
package;
import haxe.macro.*;
class Hacky {
public static function build() {
var fields = Context.getBuildFields();
for (field in fields) {
if (field.name == "random") { // Here we target the `random()` method of the Math class.