Skip to content

Instantly share code, notes, and snippets.

  1. Install dependencies:

    sudo apt install default-jdk openjfx git fastboot adb
  2. Clone repo:

    git clone -b linux --single-branch --depth 1 https://github.com/shvchk/XiaoMiToolV2.git && cd XiaoMiToolV2
#!/bin/sh
wg_config="/tmp/wg-client-autoconf"
fw_min_date="20220601"
wg_up_dir="/pss/wg-up.d"
custom_routes_script_path="${wg_up_dir}/10-custom-routes"
custom_routes_script_url="https://gist.github.com/shvchk/675c363f8f241ec2d3300295d86de5cd/raw"
included_routes_path="/pss/wg_client_included_routes"
included_routes_url="https://gist.github.com/shvchk/ad0ae5c0a46036e5d1c164b3e9cdfb50/raw"
#!/bin/sh
die() {
echo "${1}. Exit."
exit 1
}
yes_or_no() {
echo
while true; do
# Hosts
142.250.185.225 # yt3.ggpht.com
# ----------
# Custom
# Syncthing
82.196.12.0/22
@shvchk
shvchk / wg-client-custom-routes.sh
Created July 7, 2022 22:19
Wive-NG WireGuard client startup script
#!/bin/sh
LOG="logger -t wireguard"
. /etc/scripts/global.sh
iface="wgcli0"
included_routes="/pss/wg_client_included_routes"
$LOG "WireGuard custom routes script: started"
#! /usr/bin/env sh
host=""
wait=10
max_tries=3
up_cmd=""
down_cmd=""
# --------------------
#! /usr/bin/env sh
host=""
wait=10
max_tries=3
# --------------------
log="logger -t wg-if-up"
host_up="false"
diff --git a/src/convert.c b/src/convert.c
index 55426da..8dc44dd 100644
--- a/src/convert.c
+++ b/src/convert.c
@@ -744,6 +744,75 @@ getdns_wire2msg_dict_scan(
else GLDNS_ ## Y ## _CLR(header); \
}
+static getdns_return_t
+_getdns_reply_dict2wire_hdr(
<!-- Emoji ranges source: https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt -->
<match target="font">
<test name="family" compare="not_eq">
<string>JoyPixels</string>
</test>
<test name="family" compare="not_eq">
<string>Noto Sans</string>
</test>
<test name="family" compare="not_eq">
<string>Arimo</string>
<range>
<int>0x0023</int>
<int>0x0023</int>
</range>
<range>
<int>0x002A</int>
<int>0x002A</int>
</range>
<range>
<int>0x0030</int>