由于 polyfill.io 事件,BootCDN、Bootcss、Staticfile 已经不安全,并且被 uBlock 屏蔽,影响部分网站访问
下载 Header Editor 插件,导入本重定向规则(重定向到 Zstatic CDN)
https://gist.githubusercontent.com/Tsuk1ko/da60a38a2258094eaf6efcbf55dc5bcf/raw/polyfill.io_rules.json
由于 polyfill.io 事件,BootCDN、Bootcss、Staticfile 已经不安全,并且被 uBlock 屏蔽,影响部分网站访问
下载 Header Editor 插件,导入本重定向规则(重定向到 Zstatic CDN)
https://gist.githubusercontent.com/Tsuk1ko/da60a38a2258094eaf6efcbf55dc5bcf/raw/polyfill.io_rules.json
在当前页面按 F12 打开 devtool,把下面的代码粘贴到 console 里回车执行
function calc(config) {
const SUCCESS_USE = 8;
const FAILED_USE = Math.max(0, SUCCESS_USE - config.reduceGrowthWhenFailed);
const EACH_SUCCESS_REDUCE_PROB = 0.1;
const run = ({ totalCount, successCount, isLastFailed }) => {
const curProb = Math.min(1, config.initProb + (totalCount === 0 ? config.fistTryAddProb : 0) - successCount * EACH_SUCCESS_REDUCE_PROB + (isLastFailed ? config.failedAddProb : 0));
if (successCount >= config.successNumber || totalCount >= config.maxTry || curProb <= 0) {
/usr/local/qcloud/stargate/admin/uninstall.sh | |
/usr/local/qcloud/YunJing/uninst.sh | |
/usr/local/qcloud/monitor/barad/admin/uninstall.sh |
#!/bin/sh | |
# | |
# 用于阿里云解析的DNS更新脚本 | |
# 2017-2018 Sense <sensec at gmail dot com> | |
# 阿里云解析API文档 https://help.aliyun.com/document_detail/29739.html | |
# | |
# 本脚本由 dynamic_dns_functions.sh 内的函数 send_update() 调用 | |
# | |
# 需要在 /etc/config/ddns 中设置的选项 | |
# option username - 阿里云API访问账号 Access Key ID。可通过 aliyun.com 帐号管理的 accesskeys 获取, 或者访问 https://ak-console.aliyun.com |
curl -sL http://update.aegis.aliyun.com/download/uninstall.sh | bash - | |
curl -sL http://update.aegis.aliyun.com/download/quartz_uninstall.sh | bash - | |
pkill aliyun-service | |
rm -rf /etc/init.d/agentwatch /usr/sbin/aliyun-service /usr/local/aegis* | |
iptables -I INPUT -s 140.205.201.0/28 -j DROP | |
iptables -I INPUT -s 140.205.201.16/29 -j DROP | |
iptables -I INPUT -s 140.205.201.32/28 -j DROP | |
iptables -I INPUT -s 140.205.225.192/29 -j DROP | |
iptables -I INPUT -s 140.205.225.200/30 -j DROP | |
iptables -I INPUT -s 140.205.225.184/29 -j DROP |
Jimp.prototype.medianBlur = function () { | |
const pointsOffset = [-1, 0, 1].flatMap(x => [-1, 0, 1].map(y => [x, y])); | |
const newData = Buffer.from(this.bitmap.data); | |
this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { | |
if (x === 0 || x === this.bitmap.width - 1 || y === 0 || y === this.bitmap.height - 1) return; | |
for (let i = 0; i < 3; i++) { | |
const points = pointsOffset.map(([ox, oy]) => this.bitmap.data[this.getPixelIndex(x + ox, y + oy) + i]); | |
points.sort(); | |
const median = points[Math.floor((points.length - 1) / 2)]; | |
newData[this.getPixelIndex(x, y) + i] = median; |
custom: | |
enable_rule_generator: false | |
overwrite_original_rules: true | |
custom_proxy_group: | |
- { name: Empty, type: select, rule: ['[]DIRECT', '[]REJECT'] } |
@-moz-document domain("bilibili.com") { | |
/*字体*/ | |
/****************************** | |
* Google Design * | |
* https://material.io/icons/ * | |
******************************/ | |
@font-face{ | |
font-family: 'Material Icons'; | |
font-style: normal; | |
font-weight: normal; |
// npm i axios lodash javascript-lp-solver | |
const _ = require('lodash'); | |
const linprog = require('javascript-lp-solver/src/solver'); | |
const { get } = require('axios'); | |
const url_stats = 'https://penguin-stats.io/PenguinStats/api/result/matrix?show_stage_details=true&show_item_details=true'; | |
const url_rules = 'https://ak.graueneko.xyz/akmaterial.json'; | |
const slove = async need => { | |
let data_stats = await get(url_stats).then(r => r.data); |
yum install -y boost boost-devel | |
yum install -y make gcc gcc-c++ kernel-devel python-devel | |
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_11/libtorrent-rasterbar-1.0.11.tar.gz | |
tar zxvf libtorrent-rasterbar-1.0.11.tar.gz | |
cd libtorrent-rasterbar-1.0.11 | |
./configure --disable-debug --with-boost-libdir=/usr/lib64 --disable-encryption --enable-python-binding | |
make && make install | |
cd bindings/python | |
python setup.py build | |
python setup.py install |