Updated a couple of things

main
will king 2 years ago
parent ced7cc8c74
commit f058967d1c

@ -0,0 +1,17 @@
#!/bin/bash
# Check if this the ip address has updated
EXPECTED_IP_ADDR="50.52.118.232"
ACTUAL_IP_ADDR="$(curl ifconfig.me/ip)"
NTFY_URL="ntfy.sh/hr8fhsk"
if [[ "$EXPECTED_IP_ADDR" == "$ACTUAL_IP_ADDR" ]];
then
exit 0
else
curl \
-d "IP addr changed. Expected: $EXPECTED_IP_ADDR Got: $ACTUAL_IP_ADDR Consider updating cloudflare etc." \
"$NTFY_URL"
exit 1
fi

@ -10,11 +10,19 @@ biber "$tex"
latex "$flags" "$tex"
pdflatex "$flags" "$tex"
echo
echo "Removing biliography database \n\t$tex"
rm $tex.bbl
echo "Removing extra files related to $tex"
rm -v $tex.bbl
rm -v $tex.toc
rm -v $tex.aux
rm -v $tex.snm
rm -v $tex.run.xml
rm -v $tex.out
rm -v $tex.nav
rm -v $tex.log
rm -v $tex.blg
rm -v $tex.bcf
echo
echo
echo Done
exit 0

@ -0,0 +1 @@
export DISPLAY=:1; cinnamon --replace &

@ -0,0 +1,14 @@
#!/bin/python
import exif
import os
# read files
files = os.listdir()
for filename in files:
#split out date
#convert date format
#add date to exif data
pass
Loading…
Cancel
Save