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 | |
# Erzeugen Sie eine Liste von 49 Zahlen | |
numbers=$(seq 49) | |
# Ziehen Sie 6 Zahlen und sortieren Sie sie | |
drawn_numbers=$(shuf -i 1-49 -n6 | sort -n) | |
# Erstellen Sie eine 7x7-Matrix | |
matrix=$(echo $numbers | xargs -n7) |
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
Progrmme werden benötigt: | |
kdotool | |
ydotool + ydotoold | |
wl-clipboard | |
Das ganze ist sehr buggy, besonders der ydotool-server | |
------- | |
Vorbereitung | |
window_id=$(kdotool search --class "firefox") |
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
#!/usr/bin/bash | |
sudo systemctl start docker | |
docker run -it --rm --publish=7890:7890 ghcr.io/earthobservations/wetterdienst wetterdienst restapi --listen 0.0.0.0:7890 | |
# Browser Auwählen , Städtenamen name=? ersetzen | |
firefox http://0.0.0.0:7890/api/warming_stripes?name=Worms |
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
alias X-dlp="/usr/bin/yt-dlp -vU" |
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 | |
## with a little help from copilot | |
# Ersetze 'deinBenutzername' mit deinem GitHub-Benutzernamen | |
USER='deinBenutzername' | |
# Hole die Gist-Daten von GitHub API und speichere sie in einer JSON-Datei | |
curl "https://api.github.com/users/$USER/gists" > gists.json | |
# Beginne die HTML-Liste |
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 | |
## with a little help from copilot | |
# Ersetze 'deinBenutzername' mit deinem GitHub-Benutzernamen | |
USER='deinBenutzername' | |
# Hole die Repository-Daten von GitHub API und speichere sie in einer JSON-Datei | |
curl "https://api.github.com/users/$USER/repos" > repos.json | |
# Beginne die HTML-Liste |
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
Total toots: 200 (excluding replies & boosts) | |
Ratio toots/replies: 6.45 | |
Likes per toot: 0.48 (total likes: 96) | |
Boosts per toot: 0.26 (total boosts: 51) | |
Replies per toot: 0.31 (total replies: 62) | |
┌─────────────────────────────┬──────────────┐ | |
│ USERS YOU MENTIONED MOST │ INTERACTIONS │ | |
├─────────────────────────────┼──────────────┤ | |
│ doppeldau │ 5 │ |
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
[2K | |
Searching toots for linux 1 of 3563 [#>---------------------------] 0.03% | |
Found toot: @Lioh Ich glaube nicht,dass der Kollege Linux lerrnen will.. Hauptsache der Computer funktioniert wieder. Ich hab ihm ein Debian auf den Stick kopiert und ihm den Tipp gegeben im "BIOS" alles abzuschalten mit "safe" und "secure" bevor er mit der Installation beginnt. Er will selbst machen. Könnte klappen 😃 | |
Date: 13 Apr 24 05:29 UTC | |
URL: https://social.tchncs.de/@dewomser/112262260850854448 | |
Found toot: Eieiei Linuxkernel. schon wieder https://www.heise.de/news/Linux-Kernel-Neuer-Exploit-verschafft-Root-Privilegien-9682586.html |
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
Was was ist an meinem Geburtstag sonst noch passiert ? | |
Ein Einzeiler 😃 | |
(calender muss installiert sein) | |
echo "Was war eigentlich am:"; read -p "Tag (2-stellig): " tag; read -p "Monat (2-stellig): " monat;calendar -A 0 -t $monat$tag |
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
#Spielerei mit array | |
readarray -t lines < /etc/passwd oder lines=( $(</etc/passwd) ) | |
#Das erste Zeile | |
echo ${lines[0]} | |
#das ganze Array in einer Zeile | |
echo ${lines[@]} | |
#Zeile root wenn vorhanden | |
echo ${lines[@]} | grep -Eow root[[:punct:][:alnum:]]*[[:space:][:alnum:]]*[[:punct:][:alnum:]]* | |
#oder alle Zeilen | |
for i in "${lines[@]}" ; do echo "$i" ; done |
NewerOlder