Skip to content

Instantly share code, notes, and snippets.

@LukasKnuth
LukasKnuth / gist:40c53447ff0c980297c010939a6b9cdd
Created July 20, 2020 11:07
Encode to H265, no quality loss
#!/bin/bash
function encode {
# Add a "?" at the end of a "map" to say "if available"
# For a preview: add "-ss 0" before "-i" and "-t 120" before the output file. This gives a 2min sample
ffmpeg -hide_banner \
-i "$1" \
-map_metadata 0 \
-map_chapters 0 \
-metadata title="$2" \
-map 0 \
@LukasKnuth
LukasKnuth / fix_arrow_pipe.json
Created May 16, 2022 07:17
Karabiner Elements "complex modification" to fix the arrow-brackets (<>) and pipe (|) keys when using the "German Standard" layout in OSX
{
"title": "Personal fixes - Moonlander",
"rules": [
{
"description": "Fixes both Arrow-brackets and the Pipe symbol on the Moonlander keyboard with German layout.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "non_us_backslash"