meta

what's the meta about say it ditto dot net?

User Tools

Site Tools


terminal:bin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
terminal:bin [2025/05/27 23:53] – created meloterminal:bin [2025/05/28 00:05] (current) – [resize img] melo
Line 17: Line 17:
  
 nohup mullvad-exclude filezilla > /dev/null 2>&1 & nohup mullvad-exclude filezilla > /dev/null 2>&1 &
 +</code>
 +
 +==== resize img ====
 +
 +kind of doesn't work as a loop. i gotta run it once for every image in the working directory.
 +
 +this is for when i use [[https://syncthing.net/|syncthing]] to transfer camera photos from my phone to my computer, then need to resize them for easier sharing
 +
 +<code bash>
 +#!/bin/bash
 +
 +WORKDIR=$(pwd)
 +
 +TMPDIR="/home/kat/Pictures/Camera/tmp-resize"
 +
 +cd ${WORKDIR}
 +
 +for f in *.jpg; do mv $f ${TMPDIR} && cd ${TMPDIR} && magick -size 3000x4000 $f -resize 40% "../${f%.*}-resized.jpg" && rm -rf $f; done
 </code> </code>
terminal/bin.1748389981.txt.gz · Last modified: by melo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki