Skip to content

Instantly share code, notes, and snippets.

@cld4h
cld4h / fonttest.tex
Created February 8, 2023 13:33
LaTeX: Print out all fonts! 字体样式清单!
% !TeX TS-program = xelatex
\documentclass[UTF8]{article}
\usepackage[UTF8]{ctex}
\usepackage{times}
\usepackage{pgffor}
\usepackage{fontspec}
\newcommand{\testphrase}{The quick brown fox jumps over the lazy dog.}
\newcommand{\testCNphrase}{鷙鷹隼鵰鷲鳶鵟鷂鴞鵂鶹魚鷹蛇鷲禿鷲碁奂奒奓奘奙奚奛奜奝奞奟奡奣奤奦奨奁奫妸奯奰奱奲}
@cld4h
cld4h / README.md
Created September 13, 2022 11:29
Connect to enterprise WiFi network (802.1x) without a cert on Android 11 or above (root needed)

I tested this on my Mi 6 (Sagit) with Lineage OS ROM installed.

  1. adb shell into your android device and su to get root shell.

  2. Go to /data/misc/apexdata/com.android.wifi. You'll see two files: WifiConfigStore.xml and WifiConfigStoreSoftAp.xml. The later one is for wifi hotspot and we'll only Edit the WifiConfigStore.xml.

  3. Insert contents below in entry.xml into <NetworkList> entry. Replace MY_WIFI_SSID, MY_IDENTITY, MY_PASSWORD to the real one.

@cld4h
cld4h / Create-gif.md
Last active November 19, 2023 19:49
Shell scripts and FFmpeg tips
@cld4h
cld4h / README.md
Last active March 13, 2024 23:22
Bypass the GFW; clash fake-ip and tproxy; iptables and transparent proxy on Linux; 在Linux上通过 iptables 以及 clash 配置透明代理用于本机及局域网翻墙网关; Linux 翻墙路由器配置

This article show you the ultimate way to set up a transparent proxy on Linux using clash and iptables to bypass the GFW in China.

We use:

You can go to github gist to download all files mentioned in this article.

第一步

首先执行

create_root_cert_and_key.sh

openssl会询问如下内容:

Country Name (2 letter code) [AU]:CN
@cld4h
cld4h / android-backup-apk-and-datas.md
Created April 24, 2022 13:36 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK