murkom

joined 1 year ago
[–] [email protected] 1 points 1 year ago

Disable internet for that app. Problem solved.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (2 children)

I use Bookmark Folder. It works really great.
As default browser (in android settings and bookmark folder settings too) i use URLCheck, from Fdroid.
Bookmark Folder
URLCheck

[–] [email protected] 1 points 1 year ago (1 children)

Nice one. Did not know about it.

[–] [email protected] 1 points 1 year ago

I also use duckdns.
But as i like doing little scripts and wanted to try this, i remembered to share here.

[–] [email protected] 0 points 1 year ago (1 children)

It's not the simplest way to post something.
Will turn away lots of folks, i suppose. But it's doable.
I'm enjoying Lemmy a lot ;)

18
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Maybe it's useful for somebody.
Checks ip and sends to your email., if it has changed. Save as ipcheck.sh and put on /home/USER/
To check every hour, execute crontab -e and add this to the end:

0 * * * * sh ipcheck.sh

Here it goes:

#!/bin/sh

#########################
## uncomment and edit as needed
#########################
#mail_to="[email protected]"
#mail_from="[email protected]"
#user="[email protected]"
#pass="password123"
#host_params="--host=smtp.sapo.pt --port=587 --tls=on --tls-starttls=on --auth=on"

#########################
## do not edit lines bellow
#########################
ip_old=""
ip_new=""
if [ -f ip.txt ]; then ip_old="$(cat ip.txt)";  fi
ip_new="$(curl --connect-timeout 10 --max-time 10 --retry 3 --retry-delay 0 -s icanhazip.com)"

if [ "$ip_new" != "" ] && [ "$ip_new" != "$ip_old" ]
then
echo $ip_new > ip.txt
printf "To:$mail_to\nSubject: IP\n\nOld ip = $ip_old\nNew ip = $ip_new" | msmtp --timeout=10 -t --from=$mail_from --user=$user --passwordeval="echo '$pass'" $host_params
fi
0
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

When i type something and press Enter, it switches to a new line. If i try to post, it all shows in single line. It's confusing as hell. Am i doing something wrong? I use mobile browser.