Skip to content

Instantly share code, notes, and snippets.

@hsj51
hsj51 / snapshot.sh
Created December 30, 2022 19:21
Snapshot Generator: generate snapshots/screenshots with embedded timestamps from your video using ffmpeg
#!/bin/sh
# Usage:
# script <video file path> <no of snapshots>
# Ex:
# ./snapshot.sh inputvideo.mp4 10
#file name
@namidairo
namidairo / MiWifi-Updates.py
Last active January 5, 2025 18:15
Re-implementation of miwifi router update check.
import requests
import datetime
import base64
import hashlib
# Dummy values, countryCode required if querying EU servers
# Most important here are the hardware and channel
params = {
#"countryCode": "EU",
"deviceID": "",
@tung
tung / twitch-vod-chat.py
Last active June 11, 2025 20:10
Download chat from a Twitch VOD and print it to a terminal.
#!/usr/bin/env python3
#
# A script to download chat from a Twitch VOD and print it to a terminal.
# Chat will be downloaded all the way until it ends.
#
# Usage: TWITCH_CLIENT_ID=0123456789abcdef0123456789abcde twitch-vod-chat.py [video_id] [start]
#
# This script could break at any time, because Twitch's chat API is
# undocumented and likes to change at any time; in fact, this script was