Skip to content

Instantly share code, notes, and snippets.

Shichao An shichao-an

View GitHub Profile
minazou67 /
Last active Aug 13, 2019
How to upgrade the Linux Kernel of debian 8 jessie

How to upgrade the Linux Kernel of debian 8 jessie

Debian 8 のカーネルをアップグレードする方法です。


  • Microsoft Windows Server 2012 R2
  • Hyper-V
  • Debian 8.2 jessie
nialv7 / touhou
Last active Oct 16, 2015
View touhou
/* 东方曲按同人曲数量排名 */
U.N.Owen Was Her?: 262
亡き王女の為のセプテット: 256
恋色マスタースパーク: 248
幽雅に咲かせ、墨染の桜 ~ Border of Life: 237
ネクロファンタジア: 188
上海紅茶館 ~ Chinese Tea: 169
おてんば恋娘: 166
竹取飛翔 ~ Lunatic Princess: 163
simeonf /
Last active May 6, 2020
Creating a PEX from a python script

So you want to create a pex that packages your script and its dependencies?

Ok - first to make our script! Call it

import requests

if __name__ == '__main__':
  req = requests.get("")
  print req.text.split("\n")[0]
View dns_pollution_iplist.txt
psayre23 / gist:c30a821239f4818b0709
Last active Jul 4, 2020
Runtime Complexity of Java Collections
View gist:c30a821239f4818b0709
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
jkreps / benchmark-commands.txt
Last active Jul 1, 2020
Kafka Benchmark Commands
View benchmark-commands.txt
bin/ --zookeeper --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/ --zookeeper --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/ test7 50000000 100 -1 acks=1 buffer.memory=67108864 batch.size=8196

SSH agent forwarding and screen

When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.

This is enabled by adding the

ForwardAgent yes

option to any of your Host entries in ~/.ssh/config (or alternatively with the -A option). Don't set this option in a wildcard Host * section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.

mgedmin /
Last active May 22, 2020
Free SSL certificate HOWTO

How to get a free SSL certificate

I'm writing this up from memory, so errors may appear.

This has been updated to use SHA256 certificates.


  1. Go to
  2. Click on 'Control Panel'
mbostock / .block
Last active Mar 2, 2020
Save SVG as PNG
View .block
license: gpl-3.0
clowwindy /
Last active May 31, 2020
为什么不应该用 SSL 翻墙

SSL 设计目标:

  1. 防内容篡改
  2. 防冒充服务器身份
  3. 加密通信内容


  1. 不被检测出客户端在访问什么网站
  2. 不被检测出服务器在提供翻墙服务
You can’t perform that action at this time.