Skip to content

Instantly share code, notes, and snippets.

View farseerfc's full-sized avatar
👶
rsync -a my-knowledge my_baby_girl:~/

Jiachen Yang farseerfc

👶
rsync -a my-knowledge my_baby_girl:~/
View GitHub Profile
@pelletier
pelletier / wp2rst.py
Created January 1, 2011 17:41
Convert a Wordpress weblog to many rst files you can use with Pelican for instance.
# -*- coding: UTF-8 -*-
import sys
import datetime
import subprocess
from xml.dom.minidom import parse, parseString
def html2rst(html):
@farseerfc
farseerfc / gist:1125490
Created August 4, 2011 15:50
treeyssy.py
#!/usr/bin/env python3
from urllib.request import urlopen
#!/usr/bin/env python2
# from urllib2 import urlopen
import re,sys,os,html
URLBASE="http://bbs.sjtu.edu.cn/"
URLTHREAD=URLBASE+"bbstfind0?"
URLARTICLE=URLBASE+"bbscon?"
@lilydjwg
lilydjwg / lxc-arch2
Last active April 9, 2024 16:34
lxc-arch2: a script to create a copy of my Arch Linux system in systemd-nspawn for testing
#!/bin/zsh -e
cd ~/tmpfs
mkdir -p .lxc-root .lxc-data/root/etc .lxc-work
sudo GDK_DPI_SCALE=$GDK_DPI_SCALE zsh -e - <<'EOF'
chown 0:0 .lxc-data/root .lxc-data/root/etc
modprobe overlay
mountpoint .lxc-root || mount -t overlay -o lowerdir=/,upperdir=$PWD/.lxc-data/root,workdir=$PWD/.lxc-root overlayfs $PWD/.lxc-root
@KenOokamiHoro
KenOokamiHoro / archlinux_cn_talks.md
Last active October 12, 2023 14:00
Arch Linux CN Community talk group guides