1
0
Deriva 0
mirror da https://github.com/kastdeur/dotfiles.git sincronizzato 2025-10-31 03:06:35 +01:00

Added SXC thingies to dotfiles, allowing for *.local files for bash and profile. Still Needs these files for tmux,vim,git,...

Questo commit è contenuto in:
Eric-Teunis de Boone 2016-10-02 23:39:11 +02:00
parent d47333930f
commit 7a82ebe7f1
14 ha cambiato i file con 41 aggiunte e 2660 eliminazioni

Vedi file

@ -1,8 +0,0 @@
#This file should be cronned from: wttr.in/<place>
#For example:
#27 */2 * * * curl -s wttr.in/Voorthuizen | sed -n 3,7p > .wttr 2>&1
WTTR=~/.wttr
if [ -f $WTTR ]; then
cat $WTTR
alias wttr='cat $WTTR'
fi

Vedi file

@ -0,0 +1,5 @@
# Report on last renewing of ssl certificates
CERTSTAT=~/cert_status
if [ -r $CERTSTAT ]; then
echo "Last certs: $(cat $CERTSTAT)";
fi;

14
bash/scriptlets/wttr File normale
Vedi file

@ -0,0 +1,14 @@
WTTR=~/.wttr
if [ -f $WTTR ]; then
cat $WTTR
alias wttr='cat $WTTR'
else
read -p "{$Yel}Do you want your weather cronned? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
cronjob="curl -s wttr.in/Voorthuizen | sec -n 3,7p > $WTTR 2>&1 "
croncmd="27 */2 * * * $cronjob"
( crontab -l | grep -v -F "$croncmd" ; echo "$cronjob" ) | crontab -
fi
fi

Vedi file

@ -0,0 +1,3 @@
echo "Welcome onboard:"
figlet -t sXc : fatSerf
fortune | cowsay -n