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 | |
GIT_TERMINAL_PROMPT=0 find . -type f -iname .list.txt | parallel 'a={}; cd ${a%.list.txt}; parallel --results "`pwd`/results/" --color-failed --env GIT_TERMINAL_PROMPT --timeout 300 git clone --recursive < .list.txt' | |
GIT_TERMINAL_PROMPT=0 find . -type d -iname .git | parallel --results "`pwd`/results/" --color-failed --env GIT_TERMINAL_PROMPT --timeout 300 'cd {}/..; git pull --recurse-submodules' |
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 [[ -n $(shopt -s nullglob; echo *.png) ]]; then | |
for i in *.png | |
do k="${i%.png}.jxl" | |
cjxl -q 100 -e 10 "$i" "$k" | |
done | |
if [[ -n $(shopt -s nullglob; echo *.jxl) ]]; then | |
for k in *.jxl | |
do i="${k%.jxl}.png" |
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 | |
# Check files with `jpg` extension | |
if [[ -n $(shopt -s nullglob; echo *.jpg) ]]; then | |
# Create a directory to work in | |
mkdir -p wrk | |
# Move all files with `jpg` extension, as well as XMP sidecars to the working directory | |
mv ./*.jpg wrk | |
if [[ -n $(shopt -s nullglob; echo *.jpg.xmp) ]]; then | |
mv ./*.jpg.xmp wrk |