#!/bin/sh
mkdir -p ~/my_local_folder
# mac specific
# mount_smbfs -N //guest@host.local/sharefolder ~/my_local_folder
# smb version 1.0!
sudo mount -t cifs -o rw,guest,vers=3.0 //host/sharefolder ~/my_local_folder
Kategorie: tools
FFMPEG: create movie from jpegs
ffmpeg -framerate 10 -pattern_type glob -i "*.jpg" -c:v libx264 -pix_fmt yuv420p ../output.mp4
ArgonPOD-Screen and VideoLooper (Zero 1 W/Zeros 2 W)
Legacy-Version required: 32-bit-version
Installer-Script:
#!/bin/bash
sudo apt-get update
sudo apt-get install -y git
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD28-show
echo "2.8” RPi Display (MPI2801) ... finished"
Die offizielle Anleitung befindet sich hier: https://cdn.shopify.com/s/files/1/0556/1660/2177/files/ARGON_POD_MANUAL.pdf
Backup
QMK: Flashing the bm43hsrgb (kprepublic)
The trick is to set your keyboard in Flash-Mode, means in my case, press the ESC-Key during connect over USB-A. After this the Message „Atmel DFU device connected: ATMEL ATm32U4DFU (03EB:2FF4:0000)“ appeared and the keyboard was ready to flash.
Continue reading „QMK: Flashing the bm43hsrgb (kprepublic)“
Record Audio in Raspberry Pi OS
#!/bin/bash
arecord -D plughw:1 -c1 -r 48000 -f S32_LE -t wav -V mono -v listen-usb.wav
Mutt Config File for IONOS
nano ~/.mutt/muttrc
#================ IMAP ====================
set imap_user = your@email.de
set imap_pass = yourpassword
set spoolfile = imaps://imap.ionos.de/INBOX
set folder = imaps://imap.ionos.de/
set record="imaps://imap.ionos.de/mbox/Sent Mail"
set postponed="imaps://imap.ionos.de/mbox/Drafts"
set mbox="imaps://imap.ionos.de/mbox/All Mail"
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
#================ SMTP ====================
set smtp_url = "smtp://your@email.de@smtp.ionos.de:587/"
set smtp_pass = $imap_pass
set ssl_force_tls = yes
#================ Composition ====================
set editor = "nano"
set edit_headers = yes
set charset = UTF-8 # value of $LANG; also fallback for send_charset
# Sender, email address, and sign-off line must match
unset use_domain
set realname = "yourname"
set from = "your@email.de"
set use_from = yes
set timeout = 30
send email with:
echo „this is body of email“ | mutt -s „this is subject of email“ receiver@mail.com
tcptrack
sudo apt-get install tcptrack
sudo tcptrack -i eth0
Video Picture Stitcher
#!/bin/bash
echo "--------------------------------"
echo "Video Picture Stitcher V1.0"
echo "requ. ffmpeg"
echo "--------------------------------"
echo "What is the name of your input movie (with suffix:mov/mp4/mkv but without spaces)?"
read theSource
echo "How should the output named?"
read theTarget
echo "Please wait .."
ffmpeg -hide_banner -loglevel error -i ./SourceMovie/$theSource -r 0.009 -s 640x360 -f image2 ./Stills/$theTarget-%03d.jpeg
ls -lR ./Stills/$theTarget* | wc -l
echo "Files created."
echo "... Stitching."
ffmpeg -framerate 10 -pattern_type glob -i "./Stills/$theTarget*.jpeg" ./Stitched/$theTarget.mp4
echo ".... Finished."
Video Contact Sheet Printer (Updt.)
Create Dummy Files (Part 1)
Der touch-Command ist schneller und leichter zu handhaben als dd, so hier ein Beispiel, wie man unkompliziert 600 Demofiles anlegen lässt, löscht und wieder von vorn startet, mit neuen Suffixes.
Continue reading „Create Dummy Files (Part 1)“
Arduino IDE in macOS
1. USB-Driver
SerialPort-USB-Treiberinstallation for Arduino IDE
Ultimate Chromium Kiosk Script
ultimate_kiosk.sh
Ultimate Kiosk Script with RaspberryPi OS (Buster) and Xdotool:
Continue reading „Ultimate Chromium Kiosk Script“
PiShrink (Linux)
PiShrink is a bash script that automatically shrink a pi image that will then resize to the max size of the SD card on boot. This will make putting the image back onto the SD card faster and the shrunk images will compress better. In addition the shrunk image can be compressed with gzip and xz to create an even smaller image. Parallel compression of the image using multiple cores is supported.
https://github.com/Drewsif/PiShrink/