Skip to content

Instantly share code, notes, and snippets.

View luowanqian's full-sized avatar
🎯
Focusing

Luo Wanqian luowanqian

🎯
Focusing
View GitHub Profile
@luowanqian
luowanqian / generate-ssh-key.sh
Created April 12, 2021 03:04 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@luowanqian
luowanqian / leetcode_retag.md
Created August 10, 2020 13:29 — forked from Windsooon/leetcode_retag.md
Retag most popular Leetcode problems
@luowanqian
luowanqian / uninstall-ghostscript.sh
Last active January 27, 2020 16:10 — forked from gwerbin/uninstall-ghostscript.sh
Uninstall Ghostscript that comes with MacTex
#!/usr/bin/env bash
# The MacTex website (https://www.tug.org/mactex/uninstalling.html) says it's "difficult"
# to uninstall Ghostscript, as installed by MacTex. Their suggestion is to:
# open the MacTeX-2015 install package and select "Show Files" from the resulting "File" menu of Apple's installer
# and then:
# Find files related to Ghostscript and remove them.
# which is exactly what this script does. It also prints the names of the deleted files, and moves the files to
# the user's Trash instead of actually deleting them. This can help you roll back the effects of the script in
# case something goes wrong.
@luowanqian
luowanqian / pycdump.py
Created September 25, 2019 13:39 — forked from anonymous/pycdump.py
Dump .pyc file (Python 3.5 version)
#
# read a .pyc file and pretty-print it
#
# copied from http://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html
# and updated to Python 3.5 (Nov 10th 2015)
@luowanqian
luowanqian / tmux-cheatsheet.markdown
Last active September 4, 2018 06:43 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname