- Have your TV rooted
- Open Terminal with SSH client or dev-manager-desktop
- Run
curl -fsSL https://gist.githubusercontent.com/mariotaku/f7228c5459fc7ad2172a2b69dd51a4eb/raw/webosbrew-install-tailscale.sh | shand wait for it to finish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -ss <skipseconds> -i <filename> -af loudnorm=print_format=summary -f null - |
Removes UTF-8 NFD diacritics (osx) in path recursively replacing them for the simple ascii transliteration. Eg: À > A
find . -print | ggrep -P "[\x{00FF}-\x{FFFF}]" | while read f; do
newfile="$(echo $f | sed -e 's/À/A/g;s/Á/A/g;s/Ä/A/g;s/à/a/g;s/á/a/g;s/ä/a/g;s/È/E/g;s/É/E/g;s/Ë/E/g;s/è/e/g;s/é/e/g;s/ë/e/g;s/Ì/I/g;s/Í/I/g;s/Ï/I/g;s/ì/i/g;s/í/i/g;s/ï/i/g;s/Ò/O/g;s/Ö/O/g;s/Ó/O/g;s/ò/o/g;s/ó/o/g;s/ö/o/g;s/Ù/U/g;s/Ú/U/g;s/Ü/U/g;s/ù/u/g;s/ú/u/g;s/ü/u/g' | iconv -f utf-8-mac -t ascii//TRANSLIT)"
mv -v "$f" "$newfile"
doneRemoves normalized UTF-8 diacritics (unix) in path recursively replacing them for the simple ascii transliteration. Eg: À > A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!python | |
| """ | |
| Exports a Bitwarden database into a KeePass file (kdbx) including file attachments, custom fields and folder structure. | |
| It can also export an unencrypted XML KeePass file conforming to KeePass 2 XML format. | |
| It requires keepassxc-cli, if not available it can still export KeePass 2 XML | |
| - https://github.com/keepassxreboot/keepassxc | |
| Usage: bw_export_kp.py [-h] [-x] [-d] [-bw-password None] [-kee-password None] |
EXIFTOOL CHEATSHEET
shift date
exiftool "-AllDates+=YY:MM:DD hh:mm:ss" -overwrite_original_in_place DIRupdate file date to match exif date
exiftool "-DateTimeOriginal>FileModifyDate" "-DateTimeOriginal>DateCreated" -overwrite_original_in_place DIR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #framerate 12 crop to 4k 16:9 from left top | |
| ffmpeg -r 12 -f concat -safe 0 -i <(for f in DSCF*.JPG; do printf 'file '%q/%q'\n' "$PWD" "$f"; done;) -filter:v "crop=iw:iw*9/16:0:0,scale=3840:-2" -vcodec libx264 -crf 18 -preset slow timelapse.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function intloudness { | |
| ffmpeg -nostats -i $1 -filter_complex ebur128 -f null - 2>&1 | awk '/I:/' | tail -n1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i "$f" -i "$f1" -filter_complex "[0:v]setpts=PTS-STARTPTS, yadif, pad=iw*2:ih[bg]; \ | |
| [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" -f matroska - | ffplay - | |
| ffmpeg -i "$f" -i "$f1" -filter_complex "[0:v]setpts=PTS-STARTPTS[bg]; \ | |
| [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]blend=all_mode=difference" -f matroska - | ffplay - | |
| ffmpeg -i "$f" -vcodec libx265 -crf 20 -x265-params "sao=0" -x265-params "aq-mode=3" -f matroska - | ffmpeg -i - -i "$f" -filter_complex "[0:v]setpts=PTS-STARTPTS[bg]; \ | |
| [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]blend=all_mode=difference" -f matroska - | ffplay - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| shopt -s globstar | |
| for f in **/*.ptx; do for i in **/*.ptx; do if ! [[ $f -ef $i ]]; then cmp -s "$f" "$i" && echo "Files $f and $i are identical"; fi; done; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| #create ssh wrapper to execute pushmessage | |
| SSH_WRAPPER_PATH=/usr/local/sbin/ssh-wrapper | |
| cat - > $SSH_WRAPPER_PATH <<'EOF' |
NewerOlder