From 9c73f0ce41dbae129073da5429961f1a8b8d47f9 Mon Sep 17 00:00:00 2001 From: rdrew Date: Fri, 25 Sep 2026 11:03:27 -0300 Subject: [PATCH] [nb] Edit: cli_commands.md --- cli_commands.md | 61 +++++++++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/cli_commands.md b/cli_commands.md index 4ad4e62..dc375d1 100644 --- a/cli_commands.md +++ b/cli_commands.md @@ -1,6 +1,7 @@ # CLI Cheatsheet ## Contents + - [Drupal / Drush](#drupal--drush) - [Text Processing](#text-processing) - [Torrents](#torrents) @@ -43,8 +44,7 @@ # Rename files matching a pattern, verbose output shows what changed rename 's/livero/lives/g' **/*.* -v -<<<<<<< HEAD ---- +## <<<<<<< HEAD ## Torrents @@ -124,37 +124,48 @@ --audio-channels 1 \ --output-dir "/data/split" -vv -======= + +``` +ffmpeg -i Chaos.m4b -map 0:a -f segment -segment_times $(ffprobe -i Chaos.m4b -show_chapters -loglevel error | grep end_time | cut -d= -f2 | tr '\n' ',' | sed 's/,$//') -c:a libmp3lame -q:a 2 chapter_%03d.mp3 +``` + # check current dpi -for f in *.pdf *.PDF; do - echo "=== Images in: $f ===" + +for f in _.pdf_.PDF; do +echo "=== Images in: $f ===" pdfimages -list "$f" - echo "" +echo "" done + # Creates (or overwrites) images_list.txt in the current directory -for f in *.pdf *.PDF; do - if [ -f "$f" ]; then - echo "=== Images in: $f ===" >> images_list.txt - pdfimages -list "$f" >> images_list.txt - echo "" >> images_list.txt - fi + +for f in _.pdf_.PDF; do +if [ -f "$f" ]; then +echo "=== Images in: $f ===" >> images_list.txt + pdfimages -list "$f" >> images_list.txt +echo "" >> images_list.txt +fi done + # scan for ccitt encoding -for f in *.pdf *.PDF; do - [ -f "$f" ] || continue - if pdfimages -list "$f" 2>/dev/null | grep -q " ccitt "; then + +for f in _.pdf_.PDF; do +[ -f "$f" ] || continue +if pdfimages -list "$f" 2>/dev/null | grep -q " ccitt "; then echo "$f uses CCITT" - fi +fi done # Large file transfer to gdrive + rclone copy file_location file_destination \ - --progress \ - --transfers 4 \ - --checkers 8 \ - --retries 10 \ - --low-level-retries 20 \ - --drive-chunk-size 64M \ - --log-file rclone.log \ - --log-level INFO ->>>>>>> f99d1ed ([nb] Edit: cli_commands.md) + --progress \ + --transfers 4 \ + --checkers 8 \ + --retries 10 \ + --low-level-retries 20 \ + --drive-chunk-size 64M \ + --log-file rclone.log \ + --log-level INFO + +> > > > > > > f99d1ed ([nb] Edit: cli_commands.md)