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

Both sides previous revisionPrevious revision
terminal:bin [2025/08/16 05:15] meloterminal:bin [2026/07/11 23:27] (current) melo
Line 26: Line 26:
 notif() { notif() {
  notify-send "done!"  notify-send "done!"
- aplay -q /usr/share/sounds/sound-icons/start+ paplay -q /usr/share/sounds/sound-icons/start
  spd-say -t female3 -r +25 "done!"  spd-say -t female3 -r +25 "done!"
 } }
Line 38: Line 38:
  
 <code bash> <code bash>
-#!/bin/bash+#!/usr/bin/env bash
  
-nohup mullvad-exclude $1 > /dev/null 2>&1 & +nohup mullvad-exclude "$1> /dev/null || echo "failed to launch $12>&&
-</code> +
- +
-==== resize img ==== +
- +
-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}; done +
- +
-cd ${TMPDIR} && magick -size 3000x4000 *.jpg -resize 40% "../${f%.*}-resized.jpg" && rm -rf *.jpg+
 </code> </code>
terminal/bin.1755321312.txt.gz · Last modified: by melo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki