Adds a new housekeeping script

This commit is contained in:
Nemo 2018-08-02 08:22:06 +05:30
parent 2ce5d405aa
commit e05e2b6a4a
5 changed files with 29 additions and 10 deletions

View File

@ -20,7 +20,7 @@ done < <(find . -mindepth 3 -maxdepth 3 -type d)
# Sync it as well
for dir in *; do
cd $dir
rsync --archive --include '*.cbz' --recursive * nemo@10.8.0.14:/mnt/xwing/media/EBooks/Comics/ --verbose --exclude '*.jpg' --exclude '*.png' --exclude '.sync' --prune-empty-dirs
rsync --archive --include '*.cbz' --recursive * nemo@192.168.1.111:/mnt/xwing/media/EBooks/Comics/ --verbose --exclude '*.jpg' --exclude '*.png' --exclude '.sync' --prune-empty-dirs
cd ..
done

View File

@ -8,7 +8,7 @@ ZONE_IDENTIFIER="624d0d36f927426fdbeef7fb3770ac43"
RECORD_IDENTIFIER="54331eb439163ad2c8a5cefbdc09edef"
RECORD_NAME="me.captnemo.in"
LOG_FILE="/home/nemo/.log/cf-dydns.log"
LOG_FILE="/home/nemo/logs/cf-dydns.log"
IP_FILE="/tmp/cfip.txt"
ID_FILE="/home/nemo/.cloudflare.ids"

9
housekeeping Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# Run karn on all work projects so that my git identities are correct
WORK_ROOT="/home/nemo/projects/work/razorpay"
find $WORK_ROOT -maxdepth 2 -type d -iname .git | xargs -I{} bash -c "cd {}/.. && karn update"
PERSONAL_ROOT="/home/nemo/projects/personal"
find $PERSONAL_ROOT -maxdepth 2 -type d -iname .git | xargs -I{} bash -c "cd {}/.. && karn update"

View File

@ -43,15 +43,23 @@ lock() {
foreground=ffffffff
i3lock \
-t -i "$1" \
--timepos="x-90:h-ch+30" \
--datepos="tx+24:ty+25" \
--timepos="110:h-70" \
--datepos="135:h-45" \
--screen=0 \
--clock --datestr "Type password to unlock..." \
--insidecolor=$background --ringcolor=$foreground --line-uses-inside \
--keyhlcolor=$letterEnteredColor --bshlcolor=$letterRemovedColor --separatorcolor=$background \
--insidevercolor=$passwordCorrect --insidewrongcolor=$passwordIncorrect \
--ringvercolor=$foreground --ringwrongcolor=$foreground --indpos="x+280:h-70" \
--radius=20 --ring-width=4 --veriftext="" --wrongtext="" \
--textcolor="$foreground" --timecolor="$foreground" --datecolor="$foreground" \
# --blur=sigma \
# --insidecolor=$background \
# --ringcolor=$foreground \
# --line-uses-inside \
# --keyhlcolor=$letterEnteredColor --bshlcolor=$letterRemovedColor --separatorcolor=$background \
# --insidevercolor=$passwordCorrect --insidewrongcolor=$passwordIncorrect \
# --ringvercolor=$foreground --ringwrongcolor=$foreground \
# --indpos="x+280:h-70" \
# --radius=20 --ring-width=4 --veriftext="" --wrongtext="" \
# --verifcolor="$foreground" \
--timecolor="$foreground" --datecolor="$foreground" \
--noinputtext="" \
--bar-indicator --bar-direction=0 \
--force-clock
}

View File

@ -1,6 +1,8 @@
#!/bin/bash
set -euo pipefail
export CF_DNS_SERVERS='1.1.1.1 9.9.9.9'
# Based on https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
export CF_KEY=`gkeyring -n CF_KEY --output secret`
export CF_EMAIL="capt.n3m0@gmail.com"