Skip to content

Instantly share code, notes, and snippets.

View freeyoung's full-sized avatar

Eric Qian freeyoung

  • Berlin, Germany
View GitHub Profile
@liberal-boy
liberal-boy / 代理服务器 Cake 队列规则常用参数推荐.md
Last active March 2, 2023 10:40
代理服务器 Cake 队列规则常用参数推荐

代理服务器 Cake 队列规则常用参数推荐

  • 注意,BBR 等基于延迟判断发送窗口的拥塞控制算法可能与 AQM 发生冲突!!!对于使用 BBR 的设备,fq 可能还是最好的选择。

为什么选用 Cake

Cake 使用主动队列管理(AQM)技术保持全局同步,可以控制延迟,有效利用宽带。同时它还可以保证每个主机,每个流公平的分享宽带。

使用 Cake 的条件

Cake 与 kernel 4.19 并入主线,因此使用 Cake 需要 kernel 和 iproute2 版本大于 4.19。如何确认 kernel 和 iproute2 版本,以及如何升级本文不做详细说明。

@reorx
reorx / thunderbird_customization.md
Last active July 27, 2022 15:50
Thunderbird customization configs
@humiaozuzu
humiaozuzu / convention.md
Last active May 29, 2019 05:13
Ansible best practice

Ansible best practice

通用规则

  • YAML 使用 2 空格+.yml后缀
  • Jinja 变量前后需要使用空格 {{ var }}
  • YAML 中引用变量时需要用双引号
  • 环境变量全大写,其他变量全小写
  • 所有变量前需要加上 role name 作为前缀,比如 nginx_xxx
  • role 命名使用短横线
adb shell appops set com.tencent.mm OP_READ_PHONE_STATE ignore
adb shell appops set com.tencent.mm COARSE_LOCATION ignore
adb shell appops set com.tencent.mm FINE_LOCATION ignore
adb shell appops set com.tencent.mm RUN_IN_BACKGROUND ignore
@Liqianyu
Liqianyu / bestroutetb
Last active August 11, 2016 13:58
bestroutetb china route UPDATE:2016-2-19
## Australia 47.44% 23043328
## China 100.00% 336902912
## Thailand 45.61% 4109824
## India 72.12% 27300096
## Malaysia 42.59% 2838784
## South Korea 65.20% 73268992
## Vietnam 73.08% 11535360
## Taiwan Province of China 57.18% 20297728
## Singapore 30.64% 2177024
## New Zealand 29.48% 2017024
@lsylsy2
lsylsy2 / cidr_merge
Last active April 30, 2016 17:01
2015-6-2生成,APNIC中国IP中北京大学免费地址可以访问部分,通过cidrmerge压缩
1.0.1.0/24
1.0.2.0/23
1.0.8.0/21
1.0.32.0/19
1.1.0.0/24
1.1.2.0/23
1.1.4.0/22
1.1.8.0/21
1.1.16.0/20
1.1.32.0/19
@daxadax
daxadax / burgerbot.rb
Last active April 13, 2022 09:20
burgerbot
#!/usr/bin/env ruby
# modified from https://gist.github.com/pbock/3ab260f3862c350e6b5f #
require 'watir-webdriver'
class BurgerBot
def initialize
@attempt_count = 0
@pbock
pbock / buergerbot.rb
Last active March 27, 2024 19:42
Bürgerbot: Refreshes the Berlin Bürgeramt page until an appointment becomes available, then notifies you.
#!/usr/bin/env ruby
require 'watir-webdriver'
def log (message) puts " #{message}" end
def success (message) puts "+ #{message}" end
def fail (message) puts "- #{message}" end
def notify (message)
success message.upcase
system 'osascript -e \'Display notification "Bürgerbot" with title "%s"\'' % message
rescue StandardError => e
27.150.192.0/21
27.150.200.0/22
27.150.204.0/24
27.150.205.0/24
27.150.206.0/23
27.150.208.0/21
27.150.216.0/22
27.150.220.0/23
27.150.222.0/24
27.150.223.0/24