See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| /** | |
| * Wait until the test condition is true or a timeout occurs. Useful for waiting | |
| * on a server response or for a ui change (fadeIn, etc.) to occur. | |
| * | |
| * @param testFx javascript condition that evaluates to a boolean, | |
| * it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or | |
| * as a callback function. | |
| * @param onReady what to do when testFx condition is fulfilled, | |
| * it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or | |
| * as a callback function. |
| #!/bin/bash | |
| # enable for X | |
| # import "$HOME"/bin/kdialog/toot.png | |
| # enable or Wayland | |
| spectacle -b -r -o "$HOME"/bin/kdialog/toot.png | |
| wait | |
| a=$(kdialog --textinputbox "Dialog-Tooter" "$1") | |
| if [[ $? = 0 ]]; then | |
| echo "$a" |
| # Addiert,Subtrahiert oder Multipliziert GANZE Zahlen. | |
| # Beispiel: 17+4 [ENTER] | |
| read -p "Zahl1[+-*]Zahl2: " z1 a z2;echo "$z1$a$z2=$((z1$az2))" | |
| # | |
| #oder | |
| # | |
| # Addiert,subtrahiert,multipliziert oder dividiert RATIONALE Zahlen. | |
| # Je nach Einstellung der Bashumgebung für Dezimalzahlen ist das Komma ein Punkt | |
| # Beispiel: 17.1+3.9 [ENTER] | |
| read -r -p "Zahl1[+-*/^]Zahl2: " z1 a z2;echo "$z1$a$z2= $(echo "$z1$a$z2" | bc -l)" |
| #!/bin/bash | |
| #crontab | |
| #for crontab use always full path or EXPORT | |
| #crontabline : */15 * * * * /home/user_name/bin/stream_ordner/toot_a_photostream.sh >/home/user_name/bin/stream_ordner/error.txt 2>&1 | |
| fullpath_dir="/home/foo/bin/stream" | |
| fullpath_toot="/usr/bin/toot" | |
| mkdir -p $fullpath_dir/"$(date +%m_%d_%y)" | |
| source_url="https://webcams.foo_bar.de/Webcam1/webcam/current.jpg" | |
| toottext="Mein Text $(date +%H:%M) . Alle 15 Minuten ein Schnappschuss!" |
| #!/bin/bash | |
| # Username und Passwort kann auch in ~/.netrc hinterlegt werden. | |
| # -n, --netrc tells curl to look for and use the .netrc file. | |
| echo "hin und her test" > test.txt | |
| curl --user 'user:PW' -T 'test.txt' 'https://nc.my-nextcloud.de/remote.php/webdav/' | |
| rm test.txt | |
| curl --user 'user:PW' -X GET 'https://nc.my-nextcloud.de/remote.php/webdav/test.txt' -o 'test.txt' | |
| curl --user 'user:PW' -X DELETE 'https://nc.my-nextcloud.de/remote.php/webdav/test.txt' | |
| cat test.txt | |
| rm test.txt |
Lade mir alle JPGs zwischen 1 und 24 runter, aber nur wenn es die auch gibt ( -f ):
curl -f --remote-name-all https://www.untergang.de/images/Felder_zusatzmedien/20140517-mUXCamp-00[01-24].jpg
Lade nur die JPGs 01,12 und24 (die gibt es)
curl --remote-name-all https://www.untergang.de/images/Felder_zusatzmedien/20140517-mUXCamp-00{01,12,24}.jpg
Off Topic, weil wget
Wordle für die Shell. *Ja, von mir deutsches Wörterbuch eingebaut in Zeile 2:
words=($(grep '^\w\w\w\w\w$' /usr/share/dict/ngerman | tr '[a-z]' '[A-Z]'))
Achtung ! Es gibt Umlaute ÄÖÜ… und die werden als 1 Zeichen gezählt
Quelle: https://gist.github.com/huytd/6a1a6a7b34a0d0abcac00b47e3d01513
Photo:
| Alle Fehlermeldungen seit dem letzten Boot | |
| journalctl -b -p err | |
| Neue Meldungen live anzeigen (follow) | |
| journalctl -f | |
| Alle laufenden Dienste (services) | |
| journalctl -F _SYSTEMD_UNIT |
| #!/bin/bash | |
| # Es geht auch ohne Variable a | |
| t=$(curl -s https://wetter.hs-worms.de/api/v3/data | jq '.temperature.out') | |
| t1=15 | |
| if [[ $t < $t1 ]]; then echo "Uh, this is cold !"; else echo "Uff,rather warm !"; fi |