Skip to content

Instantly share code, notes, and snippets.

@Ryan-Haines
Ryan-Haines / flip_video.py
Created October 27, 2025 04:00
Script to flip all videos in a folder by 180 degrees, using ffmpeg with vulkan APIs
#!/usr/bin/env python3
import subprocess, sys, shutil
from pathlib import Path
# --- Config -------------------------------------------------------------
# Will try all methods until one works: vulkan -> cuda -> opencl
# Encoder: h264_nvenc is fast and widely compatible on NVIDIA.
# You can switch to "hevc_nvenc" or "av1_nvenc" if you prefer.
VIDEO_ENCODER = "h264_nvenc"
@Ryan-Haines
Ryan-Haines / SassMeister-input-HTML.html
Last active August 3, 2017 20:11
Generated by SassMeister.com.
<div id="parentA">
<span>hello!</span>
</div>
<div id="parentB">
<span>hello!</span>
</div>