Anzeige mit Verzögerung
echo "lolo is a dancer"| pv -qL 5
Mehr Infos: https://www.baeldung.com/linux/terminal-simulate-typing-effect
find ./ -type f -exec grep -Hn "upload_max_filesize" {} \;
fortune=$(fortune -s);read -e -p "Dieses Fortune tooten: " -i "$fortune" fortune1;toot post "$fortune1 https://gist.github.com/dewomser/9b7b6d99b78ac9faa14816564e458649" |
curl "http://fritz.box:49000/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress" -d "<?xml version='1.0' encoding='utf-8'?> <s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'> <s:Body> <u:GetExternalIPAddress xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /> </s:Body> </s:Envelope>" -s | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>' | |
Bei mir hat dieser Einzeiler funktioniert. | |
mehr Info und ander Bashzeilen gibts hier: | |
https://wiki.ubuntuusers.de/FritzBox/Skripte/ |
#!/bin/bash | |
# Ruby Gem Psych muss installiert sein. | |
readarray -t a < <(ls *.yaml) | |
for IND in ${!a[@]}; do | |
lolo="${a[$IND]}" | |
ruby -ryaml -e "Psych.parse(File.open('$lolo'))" | |
if [[ $? -ne 0 ]] | |
then | |
echo "$lolo is not valid YAML" | |
# exit 1 |
#!/bin/bash | |
# u=$(curl -k https://wetter2.mt-labor.it.hs-worms.de/api/data ) | |
u=$(curl -k https://wetter.hs-worms.de/api/v3/data) | |
temperatur=$(echo $u|jq ".temperature.out") | |
vorhersage=$(echo $u|jq '.forecast.text') | |
barometer=$(echo $u|jq '.baro') | |
regenrate=$(echo $u|jq '.rain.rate') | |
windrichtung=$(echo $u|jq '.wind.dir.text') | |
windgeschw=$(echo $u|jq '.wind.avg.kmh') | |
feuchte=$(echo $u|jq '.humidity.out') |
Anzeige mit Verzögerung
echo "lolo is a dancer"| pv -qL 5
Mehr Infos: https://www.baeldung.com/linux/terminal-simulate-typing-effect
find ./ -type f -exec grep -Hn "upload_max_filesize" {} \;
#!/bin/bash | |
URL="blog.fefe.de" # Ersetze mit der gewünschten Domain | |
echo "Prüfe das SSL-Zertifikat für $URL ..." | |
# SSL-Prüfung mit OpenSSL | |
CERT_INFO=$(echo | openssl s_client -connect "$URL:443" -servername "$URL" 2>/dev/null | openssl x509 -noout -dates) | |
if [[ -z "$CERT_INFO" ]]; then |
Mach mir einfaches Spiel mit Python ond tkinter oder besser | |
Die Spielfläche ist Länge 800px*600px | |
In der linken unteren Ecke ist eine kleine Kanone | |
Es gibt 2 Eingabefelder Winkel uns Abschussgeschwindigkeit die vom Spieler eingestellt werden. | |
Die maximale Reichweite ist die rechte obere Ecke. | |
Per random wird ein UFO auf der Spielfläche erzeugt. Abstand zum Rand ist 20 px . | |
Ziel des Spieles ist die Kanone so einzustellen ,dass sie das UFO abschießt | |
Berechne einen idealen schiefen Wurf für das Geschoss | |
Zähle die Treffer ! Das Spiel endet wenn das UFO nicht getroffen wird. |