No description
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. |
||
|---|---|---|
| kubernetes | ||
| llm | ||
| macos | ||
| mindmap | ||
| Windows | ||
| .gitignore | ||
| activate-wifi.sh | ||
| add_compilation_tag-ffmpeg_opus.sh | ||
| add_compilation_tag-metaflac.sh | ||
| add_replay_gain-metaflac.sh | ||
| android-app-installer.sh | ||
| arpspoof.sh | ||
| asciiConvert.sh | ||
| asciiConvert1.sh | ||
| audible_convert_to_audio.sh | ||
| audible_convert_to_audio_windows.sh | ||
| audible_convert_to_m4b.sh | ||
| audible_convert_to_ogg.sh | ||
| backup-server-files.sh | ||
| beautysh-install.sh | ||
| befehle.txt | ||
| cleanup-kernels.sh | ||
| cnee-play.sh | ||
| cnee-record.sh | ||
| compile | ||
| compress.sh | ||
| connect_adb-bridge.sh | ||
| convert_caddy_logs_to_gource.sh | ||
| convert_onefile.sh | ||
| convert_onefile_mp3.sh | ||
| convert_onefile_mp3_copy.sh | ||
| convert_onefile_mp3_copy_cut.sh | ||
| convert_onefile_ogg.sh | ||
| convert_onefile_ogg_copy_cut.sh | ||
| convert_onefile_ogg_cut.sh | ||
| convert_to_audio-android.sh | ||
| convert_to_audio.sh | ||
| convert_to_flac_flac.sh | ||
| convert_to_geojson.sh | ||
| convert_to_gif.sh | ||
| convert_to_gpx.sh | ||
| convert_to_m4a.sh | ||
| convert_to_mariadb.sh | ||
| convert_to_markdown-bash.sh | ||
| convert_to_markdown.sh | ||
| convert_to_mp3.sh | ||
| convert_to_mp4.sh | ||
| convert_to_ogg-android.sh | ||
| convert_to_ogg.sh | ||
| convert_to_ogg_oggenc.sh | ||
| convert_to_opus.sh | ||
| convert_to_opus_opusenc.sh | ||
| convert_to_png.sh | ||
| convert_to_webm.sh | ||
| convert_to_webm9.sh | ||
| convmv.examples | ||
| cp_onefile.sh | ||
| crawl_url.sh | ||
| create_ssh_adb-bridge.sh | ||
| cutname.sh | ||
| ddupdater | ||
| docker-macos.sh | ||
| docker-updater.sh | ||
| doppelte-dateien-finder.sh | ||
| download_pads.sh | ||
| extract_cover.sh | ||
| extract_pass.sh | ||
| extract_ports.sh | ||
| extract_work-bitwarden.sh | ||
| find-latest-modified-files.sh | ||
| get_registry-names.sh | ||
| hack.txt | ||
| heic-converter.sh | ||
| image.sh | ||
| image2.sh | ||
| image3.sh | ||
| image4.sh | ||
| install-firacode.sh | ||
| install_app_and_debug.sh | ||
| LICENSE | ||
| link.sh | ||
| make-backup.sh | ||
| mobilfetch_de.sh | ||
| mobilfetch_en.sh | ||
| modify_json-bitwarden.sh | ||
| monsterfarm.lua | ||
| mv_dir.sh | ||
| ocr-deamon.sh | ||
| ocr.sh | ||
| openvpn-install.sh | ||
| openvpn-install.sh.save | ||
| openvpn.sh | ||
| packages.txt | ||
| packages1.txt | ||
| raspberry_arch-install.sh | ||
| raspberry_arch-layout.MPT | ||
| rc.local | ||
| read.sh | ||
| README.md | ||
| recreate_image.sh | ||
| recursive_unzip.sh | ||
| rename-filesh-with-special_characters.sh | ||
| replaceSpace.sh | ||
| run_x-desktop.bat | ||
| run_x-windows.bat | ||
| server_optimize.sh | ||
| sgit | ||
| sgit-amend | ||
| shellinabox.service | ||
| shellinabox_sshwrapper.sh | ||
| shellscripte.sh | ||
| SimpleHTTPServerWithUpload.py | ||
| slowtype | ||
| sort.sh | ||
| sort_files.sh | ||
| sort_gabriel_burns.sh | ||
| ssh | ||
| ssh_tunnel.png | ||
| sshtunnel.service | ||
| sshtunnel1.service | ||
| sshtunnel_bind.sh | ||
| sslstrip.log | ||
| start.sh | ||
| start2.sh | ||
| start_shellinabox.sh | ||
| startup-chat.lua | ||
| strip-old.lua | ||
| strip.lua | ||
| systemctl-test.sh | ||
| test_flac_files.sh | ||
| texttoecho.py | ||
| ts3_install-script.sh | ||
| tsu | ||
| tsu-extra.sh | ||
| tsu.sh | ||
| uefi-boot | ||
| uefi-boot.sh | ||
| unify-tags-metaflac.sh | ||
| unify-tags-opus.sh | ||
| unzip-folder.sh | ||
| update_opus_metadata.sh | ||
| vergleiche_csv-isms.sh | ||
| wifi.txt | ||
| windoof_write.sh | ||
| x11vnc.desktop | ||
| x11vnc.service | ||
| xplane_multi-window.sh | ||
| youtube-dl-android.sh | ||
| youtube-dl-helper_v1.sh | ||
| youtube-dl-helper_v2.sh | ||
| youtube-dl.sh | ||
| youtube-mplayer.sh | ||
| youtube-pi.sh | ||
| youtube-vlc.sh | ||
| youtube-vlc_windows.sh | ||
| youtube.sh | ||
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