Skip to content

Instantly share code, notes, and snippets.

View GrayXu's full-sized avatar

Guanglei Xu GrayXu

View GitHub Profile
@ryerh
ryerh / tmux-cheatsheet.markdown
Last active November 18, 2024 13:47 — forked from MohamedAlaa/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表 & 简明教程

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表 & 简明教程

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

@CroneKorkN
CroneKorkN / gist:476778bb669dcb7610ba7f8ac5a930bb
Last active February 24, 2024 13:31
zfs arc hit ratio monitor
#!/bin/bash
# author: louwrentius
# source: http://louwrentius.com/zfs-on-linux-monitor-cache-hit-ratio.html
INTERVAL="$1"
if [ -z $INTERVAL ]
then
INTERVAL=5
@mdPlusPlus
mdPlusPlus / compile_newest_stable_kernel_with_acso_patch.sh
Last active March 22, 2023 12:19
Download, patch, compile and install the newest stable Linux kernel with the ACS override patch (Ubuntu / Debian)
#!/bin/bash
function install_dependencies() {
echo "Installing dependencies..."
sudo apt -qq update
sudo apt -qq install -y curl git wget
# sudo apt -qq install -y bison flex kernel-package libelf-dev libssl-dev
sudo apt -qq install -y bison flex libelf-dev libssl-dev
}
@recolic
recolic / README.md
Last active May 21, 2019 04:09
智享校园洗澡工具dns劫持
@recolic
recolic / README.md
Last active October 14, 2023 10:35
适合华科校园卡的MIFARE卡复制教程

MIFARE GUIDE FOR HUST

整理了可行的MIFARE卡复制方法/工具。使用ACR122U A9工具。复制卡只含有UID,因此只能进图书馆/宿舍楼,不能消费。

Linux

安装libnfc. sudo pacman -S libnfc。下面的教程在ArchLinux (Linux 5.1.4)测试好用。

如果命令失败了,提示找不到NFC设备之类的话,你可以sudo或者重新插拔一下就好了。

@GrayXu
GrayXu / Awesome Ph.D advice lists.md
Last active January 20, 2024 13:44
Awesome Ph.D advice lists