1
0
mirror of https://github.com/alrayyes/server-dotfiles synced 2023-11-14 15:56:25 +00:00

out with the old

This commit is contained in:
Ryan 2016-11-21 22:42:49 +01:00
parent 8059476ad5
commit 75bbdd2b0e
4 changed files with 0 additions and 51 deletions

View File

@ -1,12 +0,0 @@
#!/bin/sh
# Arch upgradeable packages
list=`pacman -Sup 2> /dev/null`
if [ "$list" == ":: Starting full system upgrade..." ]; then
count=""
else
count=`echo "$list" | wc -l`
fi
echo "$count"

View File

@ -1,3 +0,0 @@
#!/bin/sh
docker ps -q | wc -l | sed -r 's/^0$//g'

View File

@ -1,25 +0,0 @@
#!/bin/bash
# Requires https://www.google.com/settings/security/lesssecureapps for gmail.
CONFIG_FILE="${BLOCK_INSTANCE}"
CONFIG_FILE=${CONFIG_FILE/\~/$HOME}
# Config file needs the following settings:
#MAIL_USER="user@domain.tld"
#MAIL_PASSWORD="secret"
if [[ ! -f "${CONFIG_FILE}" ]]; then
echo "${CONFIG_FILE}"
exit 33
fi
source "${CONFIG_FILE}"
COUNT=`curl -su $MAIL_USER:$MAIL_PASSWORD https://mail.google.com/mail/feed/atom || echo "<fullcount>unknown number of</fullcount>"`
COUNT=`echo "$COUNT" | grep -oPm1 "(?<=<fullcount>)[^<]+" `
if [ "$COUNT" = "0" ]; then
echo ""
else
echo $COUNT
fi

View File

@ -1,11 +0,0 @@
#!/bin/sh
ip=$(curl -s icanhazip.com);
if [[ "$BLOCK_BUTTON" -eq 1 ]];
then
netname=$(whois $ip | grep '^netname:' | awk '{print $2}' | tail -1);
echo "$netname"
else
echo "$ip"
fi