Skip to content

Instantly share code, notes, and snippets.

View tekand's full-sized avatar
🇭🇺

David Tekan tekand

🇭🇺
View GitHub Profile
@tekand
tekand / replace_cert.sh
Created October 6, 2021 13:41
LG Let's Encrypt
#!/bin/bash
mkdir /media/cryptofs/root/
curl -k https://letsencrypt.org/certs/isrgrootx1.pem.txt | tee /media/cryptofs/root/isrgrootx1.pem.txt
match=' # Do our best to neuter telemetry'
comment=' # sneak in the new cert'
command=' mount -o bind /media/cryptofs/root/isrgrootx1.pem.txt /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt'
cd /media/cryptofs/apps/usr/palm/services/com.palmdts.devmode.service/
@tekand
tekand / mikrotik_duckdns.txt
Last active January 21, 2025 09:40
Mikrotik DuckDNS ipv4 ipv6 update script
# duckdns ipv4 v6 dual stack upgrade script - tekand - 2020/04/07
# settings
:local ddnsDomain value="DOMAIN";
:local ddnsToken value="TOKEN";
# getting the ipv4 address for upgrade
:global actualIPv4 value=[/ip address get [find where interface=INTERFACE] value-name=address];
:global actualIPv4 value=[:pick $actualIPv4 -1 [:find $actualIPv4 "/" -1] ];