Will King 2 years ago
commit 2b09a34157

2
.gitignore vendored

@ -13,3 +13,5 @@ sites_to_check.txt
templog
tikzit/
update-zoom
*.llamafile
llms/

3
:wq

@ -0,0 +1,3 @@
#!/bin/bash
echo "Don't you mean 'exit'"

@ -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

@ -0,0 +1,5 @@
#!/bin/bash
#
#a script to compile a latex file based in distrobox
distrobox enter latex2 -- ~/bin/compiletex $@

@ -10,11 +10,19 @@ biber "$tex"
pdflatex "$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