diff --git a/cbz-convertor.sh b/cbz-convertor.sh index ea7008f..aa5b8d4 100755 --- a/cbz-convertor.sh +++ b/cbz-convertor.sh @@ -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 diff --git a/dydns.sh b/dydns.sh index fdd0a3e..e29729d 100755 --- a/dydns.sh +++ b/dydns.sh @@ -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" diff --git a/housekeeping b/housekeeping new file mode 100755 index 0000000..1d40ae0 --- /dev/null +++ b/housekeeping @@ -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" \ No newline at end of file diff --git a/i3lock.sh b/i3lock.sh index 1878c1c..68622b6 100755 --- a/i3lock.sh +++ b/i3lock.sh @@ -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 } diff --git a/signcerts.sh b/signcerts.sh index f8fc7f7..3267fe6 100755 --- a/signcerts.sh +++ b/signcerts.sh @@ -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"