Skip to content

Instantly share code, notes, and snippets.

View yousong's full-sized avatar
🖐️
flexing my fingers

Yousong Zhou yousong

🖐️
flexing my fingers
View GitHub Profile
@bobrik
bobrik / README.md
Last active May 7, 2024 12:19
CFS hiccups
@brycepg
brycepg / centos7-sphinx-latex.sh
Last active December 1, 2022 09:28
Install Sphinx latexpdf Dependencies for Centos 7
#!/bin/bash
# source: https://cbs.centos.org/koji/rpminfo?rpmID=45050
set -xeuo pipefail
sudo yum install -y "tex(cmap.sty)" "tex(ecrm1000.tfm)" "tex(fancybox.sty)" "tex(footnote.sty)" "tex(framed.sty)" "tex(multirow.sty)" "tex(parskip.sty)" "tex(threeparttable.sty)" "tex(titlesec.sty)" "tex(upquote.sty)" "tex(wrapfig.sty)" "texlive-collection-fontsrecommended" "texlive-collection-latex" "tex(fncychap.sty)" python-sphinx > /dev/null
# Determine latex search directory
SEARCH_DIRECTORY="$(kpsewhich -var-value=TEXMFHOME)/tex/latex/local"
mkdir -p "$SEARCH_DIRECTORY"
# capt-of.sty has no Centos 7 package
#!/bin/sh
KERNEL=$1
PATCHVER=$2
[ -z "$1" -o -z "$2" ] && {
echo "usage: refresh_kernel.sh <version> <release>"
echo "example: refresh_kernel.sh 3.18 3.18.30"
exit 1
}
@sakamoto-poteko
sakamoto-poteko / a20test.asm
Last active January 30, 2024 01:51
A20-test
[bits 16]
org 07c00h
mov ax, cs
mov ds, ax
mov es, ax
call check_a20
test ax, ax
@andelf
andelf / chnquote.py
Created November 9, 2011 04:46
中文引号处理转换
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import operator
import itertools
import re
def debug(x):
print 'debug', dir(x), x.group()