- 你的性别
- 男
- 女
- 你所在的宿舍楼
______
! 交换Escape和Alt_R | |
clear mod1 | |
keycode 9 = Alt_R NoSymbol Alt_R | |
keycode 108 = Escape NoSymbol Escape | |
add mod1 = Escape Meta_L |
# Alias | |
alias duh="du -d 1 -h|sort -h" | |
alias gsubu="git submodule update --init --recursive" | |
alias gfu="git fetch upstream" | |
alias gmuo="git merge upstream/master origin/master" | |
alias gmms="git merge master src" | |
alias glga="git log --stat --decorate --graph --all" | |
alias lb="ls -B" | |
alias cman="man -L zh_CN.utf8" # Man in Chinese | |
alias ack-grep="ack" |
#!/usr/bin/env bash | |
GOAGENT="proxy=http://127.0.0.1:8087" | |
SSLCACERT="sslcacert=/home/wangjiezhe/Downloads/googleappengine/goagent/local/CA.crt" | |
IPV6="proxy=http://pkuproxy.acg.gd:1898" | |
YUM_PATH="/etc/yum.repos.d" | |
error() { | |
echo "Usage: $(basename "$0") goagent|ipv6|none" | |
exit 1 |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
unzip3_gbk.py: Deal with zip files using encoding GB2312/GBK/GB18030 | |
""" | |
import os | |
# import sys | |
import argparse | |
import zipfile |
#!/usr/bin/env bash | |
set -e | |
tmpdir=$(mktemp -t -d advcp.XXXXXX) | |
cd ${tmpdir} | |
wget https://aur.archlinux.org/packages/ad/advcp/advcp.tar.gz | |
tar xf advcp.tar.gz | |
source advcp/PKGBUILD |
#!/usr/bin/env bash | |
set -e | |
PROXY="--proxy http://127.0.0.1:8087" | |
tmpdir=$(mktemp -t -d dog.XXXXXX) | |
cd $tmpdir | |
# curl -O $PROXY https://launchpad.net/ubuntu/+archive/primary/+files/dog_1.7.orig.tar.gz | |
# curl -O $PROXY https://launchpad.net/ubuntu/+archive/primary/+files/dog_1.7-8.diff.gz |
#!/usr/bin/env bash | |
set -e | |
PROXY="--proxy http://127.0.0.1:8087" | |
check_and_preinstall() { | |
CHECKLIST=(${depends[*]} ${makedepends[*]}) | |
num=0 | |
for package in ${CHECKLIST[*]} | |
do |
#!/usr/bin/env bash | |
dconf write /org/gnome/desktop/app-folders/folder-children "['Utilities', 'Sundry', 'Wine']" | |
dconf load /org/gnome/desktop/app-folders/folders/ < 'wine_directory.conf' |
#!/usr/bin/env bash | |
cat << EOF | tee ~/.zshrc | |
PIP_UPGRADE="$(pwd)/pip_upgrade.py" | |
alias pip-upgrade="sudo python \${PIP_UPGRADE}" | |
alias pip3-upgrade="sudo python3 \${PIP_UPGRADE}" | |
EOF |