Skip to content

Instantly share code, notes, and snippets.

View aayars's full-sized avatar

Alex Ayars aayars

View GitHub Profile
@NeuroWinter
NeuroWinter / ffmpeg cheatsheet for glitching
Last active March 7, 2026 19:49
ffmpeg cheatsheet for glitching
FFMPEG '-i', file, '-c:v', 'libopenjpeg', "jpeg2000\\" + name + ".jp2"\
Convert image to jpeg2000
ffmpeg -i in.png -c:v libopenjpeg out.jp2
Hex Edit out.jp2
ffmpeg -i in.jp2 -c:v png out.png
General Edit
ffmpeg -i input.avi -c:v mpeg2video -g 999 -q:v 1 output.avi
*edit in avidemux/whatever*
@ecryth
ecryth / asyncio-tornado.py
Last active May 18, 2025 18:05
Running Tornado on asyncio's event loop, including 'yield from' support in request handlers
import asyncio
import tornado.concurrent
import tornado.ioloop
import tornado.web
import tornado.platform.asyncio
import tornado.httpclient
class ReqHandler(tornado.web.RequestHandler):
async def get(self):