Skip to content

Instantly share code, notes, and snippets.

View XiaochenCui's full-sized avatar
🌴
On vacation

Xiaochen Cui XiaochenCui

🌴
On vacation
View GitHub Profile
@XiaochenCui
XiaochenCui / note.md
Created May 7, 2019 05:21
FP (Functional Programming) Studying
@XiaochenCui
XiaochenCui / system.md
Last active June 2, 2023 14:10
System Research
@XiaochenCui
XiaochenCui / test.py
Created November 4, 2018 09:08
一个简单的爬虫
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
# 这个程序将会处理一个页面
# 第一步:下载网页(人类:在浏览器中打开网页)
import requests
brew install gmp
brew install mpfr
brew install libmpc
pip install gmpy2
#!/bin/bash
LINE_NUMBER=${LINE_NUMBER:-1}
HEADER=""
ERROR_HEADER=("E" "F")
END_FLAG=false
print_message() {
if [ -n "$MESSAGE" ]
then
#!/usr/bin/env python
# encoding: utf-8
"""
@version: 1.0
@author: Mark Tao
@contact: urtop@qq.com
@file: multi_download.py
@time: 2015/11/1 19:55
"""
from multiprocessing.dummy import Pool as ThreadPool

vim 中需要转义才能生效的 meta characters

  • ()
  • +

look around

meaning perl vim remark
Matches the preceding atom with zero width (?=pattern) @=
@XiaochenCui
XiaochenCui / .gitconfig
Last active January 4, 2017 05:17
xiaochen's git global config
[user]
name = XiaochenCui
email = jcnlcxc@163.com
[push]
default = simple
[credential]
helper = store
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
co = checkout
@XiaochenCui
XiaochenCui / command-cheatsheet.md
Last active January 4, 2017 05:11
shell command cheatsheet
  • du -hs /path/to/directory

    summarizes disk usage of a directory

  • lsb_release -a

    check ubuntu version

  • sudo /etc/init.d/nscd restart

@XiaochenCui
XiaochenCui / rabbitmq-cheatsheet.md
Last active January 3, 2017 08:57
rabbitmq cheatsheet

rabbitmq-cheatsheet

rabbitmqctl

vhost

  • rabbitmqctl add_vhost [vhost_name]

  • rabbitmqctl delete_vhost [vhost_name]