diff --git a/.gitignore b/.gitignore index d6c0df6..72e6cd9 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ sites_to_check.txt templog tikzit/ update-zoom +*.llamafile +llms/ diff --git a/:wq b/:wq new file mode 100755 index 0000000..3814bd5 --- /dev/null +++ b/:wq @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "Don't you mean 'exit'" diff --git a/check_ip.sh b/check_ip.sh new file mode 100644 index 0000000..1bce4ef --- /dev/null +++ b/check_ip.sh @@ -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 diff --git a/comlatex.sh b/comlatex.sh new file mode 100755 index 0000000..a815f64 --- /dev/null +++ b/comlatex.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# +#a script to compile a latex file based in distrobox + +distrobox enter latex2 -- ~/bin/compiletex $@ diff --git a/compiletex b/compiletex index b8ef6ed..4e0c307 100755 --- a/compiletex +++ b/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 diff --git a/restart_cinnamon.sh b/restart_cinnamon.sh new file mode 100644 index 0000000..e4e548f --- /dev/null +++ b/restart_cinnamon.sh @@ -0,0 +1 @@ +export DISPLAY=:1; cinnamon --replace & diff --git a/telegram_photo_rename b/telegram_photo_rename new file mode 100644 index 0000000..710571d --- /dev/null +++ b/telegram_photo_rename @@ -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