Skip to content

Instantly share code, notes, and snippets.

View patrislav1's full-sized avatar

Patrick Huesmann patrislav1

View GitHub Profile
@patrislav1
patrislav1 / .clang-format
Last active April 2, 2024 09:08
clang-format configuration
---
BasedOnStyle: Chromium
IndentWidth: 4
IncludeCategories:
- Regex: '<[a-zA-Z0-9_]+>' # standard headers (no extension)
Priority: 2
- Regex: '<[a-zA-Z0-9/]+\.(h|hpp)>' # library headers (with extension)
Priority: 3
@patrislav1
patrislav1 / avi-to-mkv.sh
Created September 11, 2021 14:57
Lossless conversion from .avi to .mkv (for Smart TV compatibility)
#!/bin/bash
FILES=$(find . -name "*.avi")
while read FILE; do
DESTFILE=$(echo ${FILE} | sed 's/\.avi$/\.mkv/g')
rm -f "${DESTFILE}"
ffmpeg -fflags +genpts -nostdin -i "${FILE}" -c:v copy -c:a copy "${DESTFILE}"
ls -lh "$FILE"
ls -lh "$DESTFILE"
done <<< $FILES
@patrislav1
patrislav1 / keybase.md
Created September 22, 2019 11:01
keybase.md

Keybase proof

I hereby claim:

  • I am patrislav1 on github.
  • I am patrislav (https://keybase.io/patrislav) on keybase.
  • I have a public key ASC-I142cUuk51hhcnU0giycWfUr2ZWTaKd8WAYnI26KXAo

To claim this, I am signing this object: