Skip to content

Instantly share code, notes, and snippets.

View ambling's full-sized avatar

Ambling ambling

View GitHub Profile
@ambling
ambling / .tmux.conf
Last active March 3, 2024 22:09
.tmux.conf
set -g mouse on
set-option -g history-limit 5000
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# Do not exit copy mode after copy
# set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default
@ambling
ambling / plot.py
Last active March 23, 2017 17:39 — forked from guanhuamai/Draw.py
python script to plot the benchmarking results on RTree
import matplotlib.colors as cl
import matplotlib.pyplot as plt
import numpy as np
class ResultReader:
def __init__(self):
self.lines = list()
self.op = ""
self.ds = ""
@ambling
ambling / init_repo.sh
Created February 27, 2016 09:36
initialize an empty repo in a simple git remote server
#!/bin/bash
sudo bash <<EOF
cd /home/git
git init --bare $1.git
chown -R git:git /home/git/$1.git
EOF
@ambling
ambling / chinese_ip_ranges.txt
Created November 4, 2015 05:02
ip ranges of china
0.0.0.0/255.0.0.0
1.0.0.0/255.128.0.0
1.160.0.0/255.224.0.0
1.192.0.0/255.224.0.0
10.0.0.0/255.0.0.0
14.0.0.0/255.224.0.0
14.96.0.0/255.224.0.0
14.128.0.0/255.224.0.0
14.192.0.0/255.224.0.0
27.0.0.0/255.192.0.0