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
export UID=$(id -u) | |
export GID=$(id -g) | |
docker run --user $UID:$GID \ | |
--workdir="/home/$USER" \ | |
-v "/etc/group:/etc/group:ro" \ | |
-v "/etc/passwd:/etc/passwd:ro" \ | |
-v "/etc/shadow:/etc/shadow:ro" \ | |
-it $DOCKER_IMAGE |
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
for f in *; do file $f | sed 's/.*, \(.*\)x\(.*\),.*/\1x\2/'; done | sort | uniq -c |
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
convert $f -interpolate nearest-neighbor -interpolative-resize 352x288! $newf |
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
$ for f in `ls *`; do nc=${#f}; nc2=$((10-$nc)); if [ $nc2 -gt 0 ]; then preffix=`printf '0%.0s' $(seq 1 $nc2)`; newf=$preffix$f; mv $f $newf; fi; 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
echo -e "\n\n" | |
TB_ARG='' | |
i=1 | |
for letter in {a..z}; do | |
if [ $i -lt $(($#+1)) ]; then | |
line="${letter}:${!i}" | |
echo -e $line | |
TB_ARG+="${line}/logs," |
OlderNewer