Skip to content

Instantly share code, notes, and snippets.

View m-Just's full-sized avatar

Kaican Li m-Just

  • Planet Earth
View GitHub Profile
@chiang-yuan
chiang-yuan / 2023-07-09-latex-matplotlib-on-HPCs.md
Last active November 2, 2025 16:58
Use latex with matplotlib on HPCs where you can't sudo!

Have you ever wanted to use LaTeX with matplotlib? You are definitely not alone. There are many tutorials out there that can guide you through the installation process. Then we can just follow the official documentation to make plots by activating plt.rcParams['text.usetex'] = True.

What we need to do is just installing typical latex by

sudo apt update
sudo apt install texlive # for minimum latex build
sudo apt install dvipng texlive-latex-extra texlive-fonts-recommended # required by matplotlib
@PackeTsar
PackeTsar / byobu-ssh-cheatsheet.md
Last active October 4, 2025 08:03
Byobu (over SSH) Cheat Sheet

Byobu (over SSH) Cheat Sheet

I often find myself using Byobu on a Linux machine when connected to it over SSH. In doing so, I've noticed that many of the documented keyboard shortcuts don't work. This can be due to the native PC's OS intercepting certain keys, or possibly other reasons.

Below is a cheatsheet with Byobu features I have found usually work when run over a SSH connection.

Action Windows + Putty to Ubuntu MacOS + Terminal to Ubuntu
Help menu BASH: byobu-config FN-F1
Create new window CTRL-a c CTRL-a c or FN-F2