Skip to content

Instantly share code, notes, and snippets.

@katherlee
katherlee / capsctrl.reg
Created September 28, 2016 14:16
Map CapsLock to Ctrl on Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
@katherlee
katherlee / emacsContextMenu.reg
Created December 11, 2016 05:29
Emacs context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\openwemacs]
@="&Edit with Emacs"
[HKEY_CLASSES_ROOT\*\shell\openwemacs\command]
@="C:\\emacs\\bin\\emacsclientw.exe --alternate-editor=\"C:\\emacs\\bin\\runemacs.exe\" -n \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\openwemacs]
@="Edit &with Emacs"
[HKEY_CLASSES_ROOT\Directory\shell\openwemacs\command]
@katherlee
katherlee / setUTC.reg
Created December 11, 2016 05:29
Set Windows time to UTC
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
@katherlee
katherlee / tmux_local_install.sh
Last active April 9, 2018 15:55 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.6
@katherlee
katherlee / PKGBUILD
Created July 10, 2018 21:52
python-pyscf
pkgname='python-pyscf'
_name=${pkgname#python-}
pkgver=1.5.1
pkgrel=1
pkgdesc="Python module for quantum chemistry"
provides=('python-pyscf')
arch=('x86_64')
url="https://github.com/sunqm/pyscf"
source=("https://github.com/sunqm/pyscf/archive/v${pkgver}.tar.gz")
md5sums=('c19087b98f4ff6492a62988dba1d036b')
@katherlee
katherlee / thinkpad-p1-gen2-arch-install.md
Last active September 3, 2019 19:46
Installing Arch Linux on ThinkPad P1 Gen 2

Installing Arch Linux on ThinkPad P1 Gen 2

I recently got my hands on a ThinkPad P1 Gen 2 with an Intel i7 9850H, an NVIDIA Quadro T2000, 16 GB RAM, 500 GB SSD, and a 500 nits FHD display (which is AWESOME!) Since there's an empty RAM slot and an empty SSD slot I upgraded it with another 16 GB of RAM and 1 TB of SSD. I plan to keep the OEM Windows 10 intact on the 500 GB drive (for making slides and playing games) and install Arch on the 1 TB one.

I mostly followed the great an-idiots-guide-to-installing-arch-on-a-lenovo-carbon-x1-gen-6 when installing arch, and I note the differences in this document.

中国科大校友基金会网络服务个人用户管理办法(2020年7月修订)

中国科大校友基金会(USTCAF)对此管理办法有最终解释权

服务介绍

本服务是中国科大校友基金会/USTCAF(下简称AF)为方便需要短期回国的海外校友以及有特定需求的国内校友访问必须的海外资源而提供的公益性的网络加速服务。

本服务不提供海外用户访问国内资源的加速。

@katherlee
katherlee / FontMod.yaml
Created September 21, 2021 19:35
FontMod config for CJK font replacement in Windows 10 English
style: &style
# Remove '#' to override font style
# size: 20
# width: 0
# weight: 0
# italic: false
# underLine: false
# strikeOut: false
# charSet: 0
# outPrecision: 0