Skip to content

Instantly share code, notes, and snippets.

View Raymo111's full-sized avatar

Raymond Li Raymo111

View GitHub Profile
Raymo111 / Dark Reader pdf light mode.js
Created January 17, 2022 03:55
PDFium light mode for Dark Reader
let eee = "#eeeeee"
let sr = document.querySelector("#viewer").shadowRoot.querySelector("#toolbar").shadowRoot
sr.querySelector("#toolbar").style.backgroundColor = "lightgray"
sr.querySelector("#toolbar").style.color = "black"
let ce = sr.querySelector("#center").firstElementChild.shadowRoot
ce.querySelector("#pageselector").style.backgroundColor = eee
ce.querySelector("#pageselector").style.color = "black"
ce.querySelector("#divider").style.color = "black"
ce.querySelector("#pagelength").style.color = "black"
sr.querySelector("[aria-label='Zoom level']").style.backgroundColor = eee
Raymo111 /
Created December 2, 2021 22:56
Python script to convert CSAcademy Graph Editor Markup to TikZ
import json
before = """\\begin{center}
\\begin{tikzpicture}[every node/.style={draw,circle,minimum size=25pt}]
after = """;
renjieliu / Migrate Termux setup from Device A to Device
Last active January 16, 2024 01:43
Migrate Termux setup from Device A to Device B

Follow below steps to migrate the setup of Termux from Device A to Device B

Step 1. Backup termux on device A and run below command one by one.

  • cd /data/data/com.termux/files
  • tar -zcvf ./termux-backup_20211031.tar.gz home usr
  • mv ./termux-backup_20211031.tar.gz /storage/[Device A ID]/Android/data/com.termux/files/termux-backup_20211031.tar.gz

Step 2. Restore the setup of Termux on Device B.

Raymo111 / MSI Bravo A4DDR Arch
Last active January 5, 2022 04:09
How to install Arch Linux on an MSI Bravo A4DDR

How to Install Arch Linux on an MSI Bravo A4DDR

By Raymo111

Last updated 29 July 2021

Disclaimer: I have personally tested every step of this. However, I'm not responsible for anything you do.

There's a Reddit thread for this laptop.


  1. Setup Windows.
Raymo111 /
Last active November 26, 2020 06:19
Cheetsheets for everything programming/software related
Raymo111 / Std
Last active November 26, 2020 06:20
Standardized English Alphabet

a ("a-ee", "a" like in "aha")


cee ("c" pronounced like "ts" in "its")


e ("ay-ee", "ay" like in "day")

Raymo111 / UWaterloo
Last active January 23, 2022 23:37
How to connect to UWaterloo's new email system via any mail client

How to connect to UWaterloo's new email system via any mail client

By Raymond Li (Raymo111), July 1st, 2020 (Happy Canada Day!)

Last updated 12 Sept 2021
Credits to PixlOne for O365Interactive mode and headless Davmail

Step 1: Get Davmail.

  • I'm on Arch Linux, so I installed it from the AUR.
Raymo111 / Just in case we need
Created April 3, 2020 15:11
Dyno settings for CS '25


{user}, welcome to {server}! Please use `?iwillabidebyallserverrules yourname yourprogram` here to get started!

By doing so, you acknowledge that you have read this message in its entirety and agree to abide by all server rules. Note that you will be kicked out if you enter inappropriate info. This includes that `yourname` must be your *actual* firstname, or firstname and last initial.

Use `?ranks` to show all programs, and `?rules` to show all server rules.

If you are not in any of the listed programs, please choose `spy` :)
Raymo111 /
Created October 25, 2019 02:30
Dilbert Crawl
case "$2" in
"") end=$1 ;;
*) end=$2 ;;
start=$(date -d $start '+%Y-%m-%d')
end=$(date -d $end '+%Y-%m-%d')
[ -d Dilberts ] || mkdir Dilberts