cli alias
nano /etc/bash.bashrc +++++++ custom aliases cc alias weather=’ansiweather -l Stuttgart,DE‘alias weather5=’ansiweather -l Stuttgart,DE -u metric -s true -f 5 -d true‘ alias py=’python3.12′ ——- custom aliases cc
Continue readingnano /etc/bash.bashrc +++++++ custom aliases cc alias weather=’ansiweather -l Stuttgart,DE‘alias weather5=’ansiweather -l Stuttgart,DE -u metric -s true -f 5 -d true‘ alias py=’python3.12′ ——- custom aliases cc
Continue reading#!/bin/bash wanip=$(curl https://csx.cc/ip/) # dnsip=$(gethostip -d sld.tld) dnsip=$(ping -c 1 sld.tld | grep -Eo -m 1 ‚[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}‘) if [[ „$wanip“ != „$dnsip“ ]]; then curl „https://dynamicdns.park-your-domain.com/update?host=@&domain=sld.tld&password=apikeyhald&ip=$wanip“; fi # dnsip2=$(gethostip -d…
Continue readingecho | openssl s_client -connect www.google.com:443 -servername www.google.com 2>/dev/null | awk ‚/Certificate chain/,/—/‘
Continue reading