Skip to content

Instantly share code, notes, and snippets.

View thanik's full-sized avatar

Thanik thanik

View GitHub Profile
@trvswgnr
trvswgnr / compress_video
Last active February 5, 2025 20:37
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@santaklouse
santaklouse / CrossOver.sh
Last active April 25, 2025 05:14
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@allfake
allfake / Patch Unity Text mesh pro For fix thai vowel Raw
Last active September 9, 2024 05:08
Patch Unity Text mesh pro For fix thai vowel
For Unity 2019 plase use this
==> https://github.com/rutcreate/TextMesh-Pro-Thai
==> 90% of font need to edit for some character
==> or add
==> "com.unity.textmeshpro": "https://github.com/rutcreate/TextMesh-Pro-Thai.git"
==> To manifest.json in your project
==> Unity5 or lower
Manual Patch