linux check for ping crontab, reconnect wifi
ping -c 3 csx.cc &> /dev/null && echo success || nmcli c up 689f3d65-8e18-4ebd-8cdb-9ea217abb2c5
Continue readingping -c 3 csx.cc &> /dev/null && echo success || nmcli c up 689f3d65-8e18-4ebd-8cdb-9ea217abb2c5
Continue readingdf -P -T /mnt/path | tail -n +2 | awk ‚{print $2}‘
Continue readingwatch -n ‚concatenated | grep commands‘
Continue readingls -cml ls -chml with human readable file soizes ls -cml –block-size=MB with.. MB
Continue readingnano /etc/fstab //winserver.fqdn.local/share/ /mnt/myshare/ cifs vers=3.0,iocharset=utf8,rw,username=fritzle,password=geheimoderbleibda 0 0
Continue readingdf -h /mnt/myshare/
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