Merge branch 'main' of https://git.youainti.com/youainti/bin
commit
2b09a34157
@ -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 $@
|
||||
@ -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…
Reference in New Issue