Achtung ! "vhs" scheint besser zu funktionieren als "asciinema"
asciinema rec demo.cas && agg demo.cas first.gif
fÜr eine Präsentation zum mitlesen
echo "Lolo is a dancer" | pv -qL 5
#\*Photo Beschreibung als Text in .txt | |
#Für eine Fotoshow, soll für jedes Photo eine gleichlautende Datei aber mit Endung txt erstellt werden. | |
#Verwende zusätzlich "Keywords" aus dem Metatags Exif ! | |
# Andere Lösung ; https://gist.github.com/dewomser/1666ad6283be13d51ed885709f8f309b’ | |
for i in {5..7} ;do photo=100_125$i; exif=$(exiftool -Keywords $photo.JPG); echo -e "Fotosammlung\\nFoto $photo\\n $exif "> $photo.txt ;done |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
#convert is deprecated switched to magick. 11.11.2024 @dewomser
magick "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
#!/bin/bash | |
#test | |
#month=03;if "$month" -lt 04 || "$month" -gt 10 ; then echo "lolo" ; fi | |
#fertig | |
month=$(date +%m);if "$month" -lt 04 || "$month" -gt 10 ; then echo "Frostgefahr" ; fi |
#!/bin/bash | |
declare -a a0=(1 2 3 4) | |
declare -a a1=(5 6 7 8) | |
declare -a a2=(100 110 120 130) | |
var="a1[1]" | |
echo ${!var} | |
# alternativ funktioniert nur mit ganzen Zahlen: echo $(( a1[1] )) | |
# Ergebnis ist 6 |
#Speicher anlegen | |
pushd "/etc";pushd "/usr/bin";pushd "/var/log" | |
# Speicher auflisten | |
dirs -v | |
# Springe zu Nummer | |
cd $(dirs +2) | |
#Lösche den ganzen Mist wieder | |
dirs -c | |
#Lösche einzelne Einträge aber springe dorthin | |
popd +1 |
curl -H "Authorization: Bearer GITHUB_TOKEN" 'https://api.github.com/gists?per_page=100' | jq '.[] | .git_pull_url' | xargs -n 1 git clone | |
curl -H "Authorization: Bearer GITHUB_TOKEN" 'https://api.github.com/gists?page=2&per_page=100' | jq '.[] | .git_pull_url' | xargs -n 1 git clone |
#!/bin/bash | |
# Achtung, funktioniert so nicht ! | |
# Kann man aber als Idee benutzen. | |
datum=$(date +%Y%m%d%H) | |
datum1=$((datum -1)) | |
# CSV-Datei herunterladen | |
curl -o lq_forecast.csv https://opendata.dwd.de/climate_environment/health/forecasts/air_quality/lq_forecast_$datum1.csv | |
# Daten für die Station 'DERP023' extrahieren |
Schreibe in ~/.bashrc :
export GHUB_TOKEN='sehr_langer_token'
Danach kann die Variable benutzt werden
echo "$GHUB_TOKEN"