This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x=0 ; while [ $x -ne 5 ]; do sleep 1 && echo -ne "\r"$x ; x=$(($x+1)); done;ef="Das $x Sekunden Ei ist fertig !"; if [ $(which espeak) ] ; then espeak -vde "$ef" ; else echo -e "\n$ef" ;fi | |
# oder so etwas kürzer, etwas moderner | |
x=0 ; while [ $x -ne 5 ]; do sleep 1 && echo -ne "\r"$x ; x=$(($x+1)); done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && espeak -vde "$ef"||echo -e "\n$ef" | |
# noch kompakter | |
for x in {1..5}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && espeak -vde "$ef"||echo -e "\n$ef" | |
#Bei Sprchausgabe zusätzlich mit Text "Das x Sekundenei ist fertig" | |
for x in {1..15}; do sleep 1 && echo -ne "\r"$x ;done;ef="Das $x Sekunden Ei ist fertig !";which espeak > /dev/null 2>&1 && echo -e "\n$ef" && espeak -vde "$ef" || echo -e "\n$ef" | |
#Countdow espeak only | |
for x in {10..0}; do sleep 1 && espeak -ven "$x";done;ef="We have a lift off !" ;espeak -ven "$ef" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This example reads audio data from the on-board PDM microphones, and prints | |
out the samples to the Serial console. The Serial Plotter built into the | |
Arduino IDE can be used to plot the audio data (Tools -> Serial Plotter) | |
Circuit: | |
- Arduino Nano 33 BLE board, or | |
- Arduino Nano RP2040 Connect, or | |
- Arduino Portenta H7 board plus Portenta Vision Shield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LXDE + clipit: | |
echo $(/usr/bin/clipit -c) >> /home/foo/Notebooks/Notes/Home/clipit.txt | |
KDE+klipper | |
qdbus org.kde.klipper /klipper getClipboardHistoryItem 0 >> /home/foo/Notebooks/lolodepp/klipper.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- https://www.worms.de/de/aktuelles/rss.php | grep -E -o "DATA\[[[:alnum:][:space:],.:\"\/\„\“\-]*" |cut -b 6- | head -1|cowsay -f dragon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readarray a <<< "$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep -E 'artUrl|genre|artist|album:|title:'| sed -e 's/xesam://g'| sed -e 's/mpris:artUrl: file:\/\///g')"; toot post "${a[1]} ${a[2]} ${a[3]} ${a[4]}" --media ${a[0]} --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Comment[de_DE]= | |
Comment= | |
Exec=readarray a <<< "$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep -E 'artUrl|genre|artist|album:|title:'| sed -e 's/xesam://g'| sed -e 's/mpris:artUrl: file:\\/\\///g')"; toot post "${a[1]} ${a[2]} ${a[3]} ${a[4]}" --media ${a[0]} --debug\n | |
GenericName[de_DE]=Funktioniert nur wenn in Clementine Musik apielt | |
GenericName=Funktioniert nur wenn in Clementine Musik apielt | |
Icon=clementine | |
MimeType= | |
Name[de_DE]=Höre und Toote | |
Name=Höre und Toote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Twurl wurde im Mai 2023 von Twitter abgeschaltet. Funktioniert nicht mehr! | |
#!/bin/bash | |
byte="$(du -b test.png | cut -b -5)" | |
user="twitteruser" | |
## // initialisieren mit genauer Byte größe | |
mis=$(twurl -u $user -H upload.twitter.com "/1.1/media/upload.json" -d "command=INIT&media_type=image/jpg&total_bytes=$byte" | jq .media_id_string) | |
mis="${mis:1: -1}" | |
#//hochladen | |
twurl -u $user -H upload.twitter.com "/1.1/media/upload.json" -d "command=APPEND&media_id=$mis&segment_index=0" --file test.png --file-field "media" | jq | |
#//finalisieren |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#//config | |
user="twitteruser" | |
#//Musikinfo von Clementie Audioplayer holen | |
readarray a <<< "$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep -E 'artUrl|genre|artist|album:|title:'| sed -e 's/xesam://g'| sed -e 's/mpris:artUrl: file:\/\///g')" | |
#//Bild kopieren | |
cp ${a[0]} $HOME/bin/twitter-pic/cover.jpg | |
# Daten an den Twitterclient | |
text="Ich höre gerade:${a[1]}${a[2]}${a[4]}" | |
#// Bildgröße in Byte ermitteln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
cd $HOME/bin | |
import tweet.png | |
wait | |
# byte="$(du -b tweet.png | cut -b -5)" | |
byte="$(du -b tweet.png | tr -d -c 0-9)" | |
user="twitter_user" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ufwpath="/home/foo/bin/greesnow-test" | |
rm "greensnow.txt" | |
wget https://blocklist.greensnow.co/greensnow.txt -O greensnow1.txt | |
tail -n 30 greensnow1.txt > greensnow.txt | |
head -n -16 $ufwpath"user.rules.gut" > "user.rules.gut1" | |
while read -r line; do | |
echo "### tuple ### deny any any 0.0.0.0/0 any $line in" >> user.rules.gut1 | |
echo "-A ufw-user-input -s $line -j DROP" >> user.rules.gut1 | |
echo " " >> user.rules.gut1 |