Skip to content

Instantly share code, notes, and snippets.

@dnasdw
dnasdw / ffmpeg-wrapper
Created January 8, 2023 08:29 — forked from BenjaminPoncet/ffmpeg-wrapper
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support. This project is no longer maintained: Please see the following projects: https://github.com/darknebular/Wrapper_VideoStation/ - https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log
@dnasdw
dnasdw / switch-eshop.md
Created November 4, 2022 05:53 — forked from GabrielMMelo/switch-eshop.md
Nintendo Switch eShop API

Easy Amiibo Emulation - https://bit.ly/2z0m09k

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

@dnasdw
dnasdw / power_manage.md
Created December 23, 2018 12:56 — forked from GMMan/power_manage.md
PlayStation Classic power management system, documented

PlayStation Classic power management system, documented

This document describes the power management system on the PlayStation Classic. It is mostly focused on the power_manage executable: the command line arguments, control files, and processes. It'll also touch upon the system service setup and startup script.

There are a few components to the power management system: the startup script, the power management service, thermal kernel modules, and supporting programs such as the USB reset script and thermal handling scripts. Let's start with

@dnasdw
dnasdw / tx_unpack.py
Created December 22, 2018 13:54 — forked from hexkyz/tx_unpack.py
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""