This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.markdown-body,.markdown-body blockquote { | |
color: #24292e; | |
word-wrap: break-word; | |
font-size: 14px; | |
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; | |
line-height: 1.5; | |
-ms-text-size-adjust: 100%; | |
-webkit-text-size-adjust: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("bilibili.com") { | |
/*字体*/ | |
/****************************** | |
* Google Design * | |
* https://material.io/icons/ * | |
******************************/ | |
@font-face{ | |
font-family: 'Material Icons'; | |
font-style: normal; | |
font-weight: normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom: | |
enable_rule_generator: false | |
overwrite_original_rules: true | |
custom_proxy_group: | |
- { name: Empty, type: select, rule: ['[]DIRECT', '[]REJECT'] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/qcloud/stargate/admin/uninstall.sh | |
/usr/local/qcloud/YunJing/uninst.sh | |
/usr/local/qcloud/monitor/barad/admin/uninstall.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import plugin from '../../lib/plugins/plugin.js'; | |
let moded = false; | |
const modList = [ | |
{ | |
name: '班尼特', | |
key: 'defDmgIdx', | |
val: 2, |
OlderNewer