Skip to content

Instantly share code, notes, and snippets.

@marco79cgn
marco79cgn / check-tc-certificates.sh
Last active December 29, 2024 11:00
Teddycloud certificates checker
certs_path="/teddycloud/certs"
echo "-----------------------------------"
echo "Checking teddyCloud certificates..."
echo "-----------------------------------"
# check server certificates
files=( "ca.der" "ca-key.pem" "ca-root.pem" "ca-root.srl" "teddy-cert.pem" "teddy-key.csr" "teddy-key.pem" )
echo -e "\nServer:"
echo "-------"
for file in "${files[@]}"
@marco79cgn
marco79cgn / bus-to-tonie.sh
Created July 17, 2025 12:53
Shell script which downloads the latest episode of the "Bits und so" Podcast, converts it to a Tonie format, uploads it to teddyCloud and assigns it to a Tonie figurine
#!/bin/bash
# teddyCloud ip address
teddycloud_ip=192.168.178.127
# query podcast feed
feed_content=$(curl -s "https://www.bitsundso.de/feed/")
# get latest episode
latest_feed_episode=$(echo "$feed_content" | sed -n -e '/<item>/,$p' | sed -n 's:.*<title>\(.*\)</title>.*:\1:p' | head -1 | sed 's/#/Folge /g')