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 / README.md
Last active May 4, 2019 08:03
SMACv3包使用,项目主页:https://github.com/automl/SMAC3
@luowanqian
luowanqian / ConfigSpace.ipynb
Last active May 3, 2019 14:15
文章:ConfigSpace备忘录,文章链接:http://www.scutmath.com/configspace_memo.html
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luowanqian
luowanqian / kmg.ipynb
Last active October 27, 2022 20:04
文章:快速生成Kernel Matrix,文章链接:http://www.scutmath.com/fast_kernel_matrix_generation.html
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@luowanqian
luowanqian / Makefile
Last active May 3, 2019 14:17
文章:以Column-major Order读取HDF5文件数据,文章链接:http://www.scutmath.com/hdf5_column_major.html
all:
python3 setup.py build_ext -i
clean:
rm -rf build/
rm -f h5read.c
rm -f *.so