No description
Find a file
Simon Rieger fb2f96a00e
Add macOS screenshot and OCR helper
Add a new executable macOS screenshot utility script that supports
capturing selected areas to the clipboard, opening captures in an image
editor, and extracting text from screenshots.

The script provides Tesseract-based OCR for selected areas and windows,
as well as optional vision-based OCR through the `llm` CLI. Recognized
text is copied directly to the clipboard and macOS notifications are used
to report success or empty OCR results.

The helper includes command availability checks, temporary PNG handling,
configurable OCR languages, configurable LLM model and prompt values, and
fallback editor integration for Shottr, CleanShot X, or the default image
handler.

This adds a reusable macOS workflow for screenshot capture, annotation,
and text extraction without changing existing behavior.
2026-07-22 20:51:28 +02:00
kubernetes move files 2025-11-20 14:02:17 +01:00
llm Import readline for journal CLI input 2026-07-22 00:56:43 +02:00
macos Add macOS screenshot and OCR helper 2026-07-22 20:51:28 +02:00
mindmap add bash version von converting mindmap 2025-10-28 19:26:10 +01:00
Windows add batch scripts 2022-03-07 08:20:50 +01:00
.gitignore [C] Change to aarch64 Version 2022-12-30 23:33:12 +01:00
activate-wifi.sh wifi-activate-script 2017-08-25 10:05:10 +02:00
add_compilation_tag-ffmpeg_opus.sh beautysh 2024-06-12 13:59:35 +02:00
add_compilation_tag-metaflac.sh add metflac scripts 2024-06-03 12:59:45 +02:00
add_replay_gain-metaflac.sh add metflac scripts 2024-06-03 12:59:45 +02:00
android-app-installer.sh optimierungen 2019-01-07 20:23:02 +01:00
arpspoof.sh optimierungen 2019-01-07 20:23:02 +01:00
asciiConvert.sh optimierungen 2019-01-07 20:23:02 +01:00
asciiConvert1.sh optimierungen 2019-01-07 20:23:02 +01:00
audible_convert_to_audio.sh optimierungen 2019-01-07 20:23:02 +01:00
audible_convert_to_audio_windows.sh optimierungen 2019-01-07 20:23:02 +01:00
audible_convert_to_m4b.sh es reicht eine 1:1-Kopie einer Datei weil es bereits zum m4b format konventiert wird und ohne video 2025-02-01 22:14:39 +01:00
audible_convert_to_ogg.sh Schönheitsanpassungen 2022-03-30 23:48:04 +02:00
backup-server-files.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
beautysh-install.sh optimierungen 2019-01-07 20:23:02 +01:00
befehle.txt fix 2017-09-11 23:16:17 +02:00
cleanup-kernels.sh add cleanup-kernels script 2025-05-28 12:51:38 +02:00
cnee-play.sh cnee 2017-11-06 15:18:08 +01:00
cnee-record.sh cnee 2017-11-06 15:18:08 +01:00
compile chmod 2017-05-16 13:59:59 +02:00
compress.sh optimierungen 2019-01-07 20:23:02 +01:00
connect_adb-bridge.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
convert_caddy_logs_to_gource.sh add convert caddy logs to gource script 2025-03-24 17:56:43 +01:00
convert_onefile.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_onefile_mp3.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_onefile_mp3_copy.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_onefile_mp3_copy_cut.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_onefile_ogg.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_onefile_ogg_copy_cut.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_onefile_ogg_cut.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_audio-android.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_audio.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_flac_flac.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_geojson.sh add converter to geojson 2025-08-29 02:14:54 +02:00
convert_to_gif.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_gpx.sh add converter to geojson 2025-08-29 02:14:54 +02:00
convert_to_m4a.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_mariadb.sh add convert_to_mariadb script 2024-10-16 14:32:31 +02:00
convert_to_markdown-bash.sh update scripts to automatic add headline 2025-02-17 16:23:13 +01:00
convert_to_markdown.sh update scripts to automatic add headline 2025-02-17 16:23:13 +01:00
convert_to_mp3.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_mp4.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_ogg-android.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_ogg.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_ogg_oggenc.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_opus.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_opus_opusenc.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_png.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_webm.sh optimierungen 2019-01-07 20:23:02 +01:00
convert_to_webm9.sh optimierungen 2019-01-07 20:23:02 +01:00
convmv.examples add convmv examples 2023-03-16 12:40:06 +00:00
cp_onefile.sh optimierungen 2019-01-07 20:23:02 +01:00
crawl_url.sh add download script for pad download 2024-09-21 20:28:37 +02:00
create_ssh_adb-bridge.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
cutname.sh optimierungen 2019-01-07 20:23:02 +01:00
ddupdater fix 2020-06-08 07:56:50 +02:00
docker-macos.sh add docker-macos script 2022-02-22 18:27:18 +01:00
docker-updater.sh update docker update script 2025-05-05 13:57:10 +02:00
doppelte-dateien-finder.sh beatysh+omxplayer-vga666-script-addon 2018-11-11 04:25:50 +01:00
download_pads.sh add download script for pad download 2024-09-21 18:23:22 +02:00
extract_cover.sh set to artist 2024-06-13 11:57:14 +02:00
extract_pass.sh fix code and add otp support 2024-07-10 21:28:52 +02:00
extract_ports.sh add extract ports script 2024-07-09 12:17:08 +02:00
extract_work-bitwarden.sh add script for split work and privat passwords 2024-07-18 14:19:57 +02:00
find-latest-modified-files.sh add script for find last modified files 2023-10-12 09:22:33 +02:00
get_registry-names.sh add new script to get docker registry-names 2025-05-12 22:41:13 +02:00
hack.txt hydra 2017-07-04 22:07:21 +02:00
heic-converter.sh [+] Add heic-converter 2022-11-20 20:00:13 +01:00
image.sh chmod 2017-05-16 13:59:59 +02:00
image2.sh beatysh+omxplayer-vga666-script-addon 2018-11-11 04:25:50 +01:00
image3.sh chmod 2017-05-16 13:59:59 +02:00
image4.sh beatysh+omxplayer-vga666-script-addon 2018-11-11 04:25:50 +01:00
install-firacode.sh optimierungen 2019-01-07 20:23:02 +01:00
install_app_and_debug.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
LICENSE chmod 2017-05-16 13:59:59 +02:00
link.sh fix 2020-03-26 09:18:51 +01:00
make-backup.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
mobilfetch_de.sh beautysh 2019-08-02 14:54:43 +02:00
mobilfetch_en.sh beautysh 2019-08-02 14:54:43 +02:00
modify_json-bitwarden.sh add modify json name attribut script for bitwarden 2024-07-18 13:13:07 +02:00
monsterfarm.lua Dateien hochladen nach '' 2022-09-13 09:16:19 +00:00
mv_dir.sh optimierungen 2019-01-07 20:23:02 +01:00
ocr-deamon.sh add timeout 2022-02-15 08:58:46 +01:00
ocr.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
openvpn-install.sh add new scripts 2022-02-11 11:15:16 +01:00
openvpn-install.sh.save fix 2017-11-21 11:37:39 -05:00
openvpn.sh optimierungen 2019-01-07 20:23:02 +01:00
packages.txt fix 2017-05-20 16:55:08 +02:00
packages1.txt packages 2017-11-11 03:50:11 +01:00
raspberry_arch-install.sh „raspberry_arch-install.sh“ ändern 2023-05-24 19:58:51 +02:00
raspberry_arch-layout.MPT [C] Change to fdisk (MBR) 2022-06-26 14:34:15 +02:00
rc.local rc.local 2017-11-13 08:45:55 -05:00
read.sh read 2017-05-22 00:25:49 +02:00
README.md update README 2025-12-01 20:34:34 +01:00
recreate_image.sh add recreate docker image script 2025-03-11 14:24:03 +01:00
recursive_unzip.sh add script for recursiv unzip 2025-11-20 14:00:57 +01:00
rename-filesh-with-special_characters.sh chmod 2023-03-16 11:56:35 +00:00
replaceSpace.sh optimierungen 2019-01-07 20:23:02 +01:00
run_x-desktop.bat add vcxsrv startup links 2021-03-24 08:59:28 +01:00
run_x-windows.bat add vcxsrv startup links 2021-03-24 08:59:28 +01:00
server_optimize.sh unnused_code 2019-08-06 07:53:46 +02:00
sgit new_git-commands 2020-03-20 14:37:57 +01:00
sgit-amend new-scripts 2018-02-15 12:45:18 -05:00
shellinabox.service chmod 2017-05-16 13:59:59 +02:00
shellinabox_sshwrapper.sh optimierungen 2019-01-07 20:23:02 +01:00
shellscripte.sh optimierungen 2019-01-07 20:23:02 +01:00
SimpleHTTPServerWithUpload.py fix 2018-02-17 16:55:56 +01:00
slowtype slowtype 2019-05-06 16:48:57 +02:00
sort.sh optimierungen 2019-01-07 20:23:02 +01:00
sort_files.sh add sort files script 2024-04-14 22:09:01 +02:00
sort_gabriel_burns.sh add sort_gabriel_burns.sh 2025-01-16 15:01:11 +01:00
ssh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
ssh_tunnel.png final_fix 2017-05-29 06:19:13 +02:00
sshtunnel.service fix 2017-05-21 02:56:22 +02:00
sshtunnel1.service fix 2017-05-21 02:56:22 +02:00
sshtunnel_bind.sh final_fix 2017-05-29 06:19:13 +02:00
sslstrip.log [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
start.sh chmod 2017-05-16 13:59:59 +02:00
start2.sh chmod 2017-05-16 13:59:59 +02:00
start_shellinabox.sh optimierungen 2019-01-07 20:23:02 +01:00
startup-chat.lua Dateien hochladen nach '' 2022-09-13 09:16:19 +00:00
strip-old.lua Dateien hochladen nach '' 2022-09-13 09:16:19 +00:00
strip.lua Dateien hochladen nach '' 2022-09-13 09:16:19 +00:00
systemctl-test.sh optimierungen 2019-01-07 20:23:02 +01:00
test_flac_files.sh test 2017-05-14 15:40:11 +02:00
texttoecho.py chmod 2017-05-16 13:59:59 +02:00
ts3_install-script.sh optimierungen 2019-01-07 20:23:02 +01:00
tsu original-tsu 2017-06-23 16:59:29 +02:00
tsu-extra.sh fix 2018-05-30 18:29:13 +02:00
tsu.sh fix 2017-06-23 20:01:57 +02:00
uefi-boot fix 2018-04-21 15:03:43 +02:00
uefi-boot.sh optimierungen 2019-01-07 20:23:02 +01:00
unify-tags-metaflac.sh add replay gain support 2024-05-01 00:38:23 +02:00
unify-tags-opus.sh add unify script for flac work with metaflac 2024-05-01 00:12:03 +02:00
unzip-folder.sh add unzip folder script with check of direcotiry in file 2024-05-10 10:48:21 +02:00
update_opus_metadata.sh add update opus metadata script for album completion 2025-01-05 22:09:05 +01:00
vergleiche_csv-isms.sh add new script 2025-06-02 15:35:19 +02:00
wifi.txt wifi 2017-07-19 00:48:58 +02:00
windoof_write.sh optimierungen 2019-01-07 20:23:02 +01:00
x11vnc.desktop fix 2017-09-16 02:05:17 +02:00
x11vnc.service fix 2017-09-16 02:05:17 +02:00
xplane_multi-window.sh rename_script 2020-08-18 15:07:54 +02:00
youtube-dl-android.sh optimierungen 2019-01-07 20:23:02 +01:00
youtube-dl-helper_v1.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
youtube-dl-helper_v2.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
youtube-dl.sh fix 2020-05-12 08:47:03 +02:00
youtube-mplayer.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
youtube-pi.sh optimierungen 2019-01-07 20:23:02 +01:00
youtube-vlc.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
youtube-vlc_windows.sh [+] Add raspberry_arch-install.sh script 2022-06-26 13:25:20 +02:00
youtube.sh add new functions to youtube.sh 2025-05-03 22:23:18 +02:00

shell-scripte

Nützliche shell-scripte

ssh tunnel vom server oder zum server einrichten mit:

ssh-keygen -t rsa -b 4096 

ssh-copy-id -i ~/.ssh/id_rsa.pub user@server 

oder

cat id_rsa.pub | ssh server 'cat>> ~/.ssh/authorized_keys'

Zum schreiben eines Passworts mittels eines virtuellen Keyboards

https://man.archlinux.org/man/ydotool.1

ydotool

run deamon with:

echo '## Give ydotoold access to the uinput device
## Solution by https://github.com/ReimuNotMoe/ydotool/issues/25#issuecomment-535842993
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
' > /etc/udev/rules.d/80-uinput.rules
sudo usermod -G wheel,uinput simono41
sudo ydotoold
setxkbmap -query
WAYLAND_DISPLAY=wayland-0 localectl set-x11-keymap de

and run youre command

sleep 5 && XKB_DEFAULT_LAYOUT=de sudo ydotool type 'Hello World!' -d 20 && notify-send finish

mit dotool

sleep 5 && { echo typedelay 100; echo type ${PASSWORT}; } | DOTOOL_XKB_LAYOUT=de dotool && notify-send done

Zum suchen der libinput Treiber mit

libwacom-list-local-devices
for wort in /usr/share/libwacom/*; do if cat $wort | grep CTL-4100WL; then echo $wort; fi; done

Port forwarding using OpenVPN client

vps# iptables -t nat -A PREROUTING  -p tcp --dport 9987 -j DNAT --to-destination 192.168.1.3 (mein Homeserver wenn ich richtig verstanden habe)
vps# iptables -t nat -A POSTROUTING -p tcp --dport 9987 -j MASQUERADE

vps# iptables -t nat -A PREROUTING  -p tcp --dport 30033 -j DNAT --to-destination 192.168.1.3
vps# iptables -t nat -A POSTROUTING -p tcp --dport 30033 -j MASQUERADE

vps# iptables -t nat -A PREROUTING  -p tcp --dport 10011 -j DNAT --to-destination 192.168.1.3
vps# iptables -t nat -A POSTROUTING -p tcp --dport 10011 -j MASQUERADE

sysctl -w net.ipv4.ip_forward=1

iptables -t nat -A PREROUTING -d 50.xxx.xxx.xxx -p tcp --dport 8081 -j DNAT --to-dest 192.168.2.86:8081

iptables -t nat -A POSTROUTING -d 192.168.2.86 -p tcp --dport 8081 -j SNAT --to-source 10.0.2.42

Find and Remove old Syncthing Files

find -name "*.tmp" -exec rm -vf {} \;

Setzt das Repository auf dem aktuellen HEAD zurück und löscht neue Dateien die bis dahin erzeugt wurden

git reset --hard 8& git clean -dfx

Qemu chroot Raspberry PI

pacman -S qemu-user-static qemu-user-static-binfmt
https://wiki.archlinux.org/title/QEMU#Chrooting_into_arm/arm64_environment_from_x86_64

Side Crowling on a etherpad-lite pad

cat urls | xargs -I+ wget --recursive '+/export/markdown' -erobots=off ; grep -r -o -E --no-filename 'pad.stratum0.org/p/dc[a-zA-Z0-9-]*' pad.stratum0.org >> urls; sort -u -o urls urls

Search Recursive to a String

grep -rnw '.' -e 'Suchtext'
find . -type f -exec grep -l 'Suchtext' {} \;
find . -type f -print0 | xargs -0 grep 'Suchtext'

Jede Datei einen Ordner mit dem Dateinamen (ohne Endung) erstellt und sie dorthin verschiebt (für das erstellen von Ordnern für Hörbucher für audiobookshel empfehlenswert)

for f in *; do [ -f "$f" ] && [[ "$f" == *.* ]] && d="${f%.*}" && [ -n "$d" ] && mkdir -p -- "$d" && mv -- "$f" "$d/"; done