Diese Funktion => .bashrc
miau() {
printf '%s' "$(<"$1")"
}
in das Script
| #!/bin/bash | |
| # Script to pull GitHub gists | |
| # Based on the functional model in models/gist-backup.sh | |
| # Configuration | |
| GITHUB_USERNAME="foo" | |
| # Path to backup directory (change this to your preferred location) | |
| BACKUP_PATH="/home/foo/github-gists-backup-$(date '+%Y-%m-%d-%H')" | |
| GITHUB_TOKEN="$GIST_TOKEN" | |
| #echo $GITHUB_TOKEN | |
| # Max length for folder name prefix (from file name) |
| #!/bin/bash | |
| # Get today's date in seconds since epoch | |
| today=$(date +%s) | |
| # Get Easter date in YYYY-MM-DD format using ncal -e | |
| #easter_date=$(ncal -e | awk '{print $NF}') | |
| # Convert Easter date to seconds since epoch | |
| # easter=$(date -d "$easter_date" +%s 2>/dev/null) |
| https://lrclib.net/api/search?track_name=family+bible&artist_name=johnny+cash&album_name=the+best+of+Johnny+Cash |
| #!/usr/bin/bash | |
| # Es empfiehlt sich vorher einen Ordner anzulegen, | |
| wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://google.com -P site |
| #!/usr/bin/env python3 | |
| """ | |
| --------------This Script is vibe Code --------------- | |
| mastodon_followers_kg_no_pyvis.py | |
| Build a knowledge graph of a Mastodon account's followers up to a given depth, | |
| using avatar images as node icons. Writes a standalone HTML using vis.js (no pyvis/Jinja2). | |
| Example: | |
| export MASTODON_TOKEN="..." alternativ use --token |
In diesem speziellen Fall sind das meine 2oo Gists. Gesucht wird nach "bash".
Es wird kein Token benötigt.
Es ist mal wieder ein 1-Zeiler geworden:
curl -s -L "https://api.github.com/users/dewomser/gists?per_page=200&page=1"| jq '.[]|select(.description|index("bash"))|{filename: .files.[].filename , html_url: .html_url, description: .description}'
| w3m -dump "https://duckduckgo.com/?t=h_&q=wetter+Worms" |grep -3 ^[1-9] |