Skip to content

Instantly share code, notes, and snippets.

@Markieta
Markieta / ddns-start
Last active October 30, 2022 23:16 — forked from ql-owo-lp/ddns-start
Asus-Merlin-DuckDNS
#!/bin/sh
# register a subdomain at https://www.duckdns.org/ to get your token
# put 'hostname:token' in the 'Host Name' field under DDNS
# e.g. myhost:abcdefgh-1234-5678-9876-f71b0ed7a7fe
DDNS_HOSTNAME_FIELD=$(nvram get ddns_hostname_x)
SUBDOMAIN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F':' '{print $1}')
TOKEN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F':' '{print $2}')
IPV4=$(nvram get wan0_ipaddr)
@Markieta
Markieta / xrt500
Last active May 14, 2018 01:00 — forked from chiefy/xrt500.keytable
Vizio XRT500 LIRC Keytable
# table: xrt500, type: NEC
#0x408 KEY_POWER
0x445 KEY_UP
0x4e2 KEY_UP
0x446 KEY_DOWN
0x4e3 KEY_DOWN
0x447 KEY_LEFT
0x4e4 KEY_LEFT
0x448 KEY_RIGHT
mkdir -p generated
sips -Z 29 --out generated/iPhoneSettings-29x29.png sourceIcon.png
sips -Z 58 --out generated/iPhoneSettings-29x29@2x.png sourceIcon.png
sips -Z 80 --out generated/iPhoneSpotlight-40x40@2x.png sourceIcon.png
sips -Z 120 --out generated/iPhoneApp-60x60@2x.png sourceIcon.png
sips -Z 29 --out generated/iPadSettings-29x29.png sourceIcon.png
sips -Z 58 --out generated/iPadSettings-29x29@2x.png sourceIcon.png
sips -Z 40 --out generated/iPadSpotlight-40x40.png sourceIcon.png