Skip to content

Instantly share code, notes, and snippets.

View WyattJia's full-sized avatar
🎯
Focusing

bitstring WyattJia

🎯
Focusing
View GitHub Profile
@ykfq
ykfq / Kubernetes 调度优化--重平衡策略方案整理.md
Created January 29, 2019 06:50
Kubernetes 调度优化--重平衡策略方案整理
<title>Kubernetes 调度优化--重平衡策略方案整理</title>
Apache apisix benchmark script: https://github.com/iresty/apisix/blob/master/benchmark/run.sh
Kong beanchmark script:
curl -i -X POST \
--url http://localhost:8001/services/ \
--data 'name=example-service' \
--data 'host=127.0.0.1'
curl -i -X POST \
@badbye
badbye / free_doc88.js
Created February 8, 2022 04:39
免费下载道客巴巴的文档. download file from doc88.com without paying
$('#continueButton').click()
var keeps = $("#pageContainer").parentsUntil('body').toArray().concat($("#pageContainer").children().toArray())
var divs = $("div:not(#pageContainer)").toArray()
divs.filter(x => keeps.indexOf(x) < 0).forEach(x => x.remove())
window.print()
@honmaple
honmaple / yabai.lua
Created March 25, 2024 10:27
Like i3wm's scratchpad
local _M = {
scratchpad = {}
}
local yabai = string.gsub(hs.execute("which yabai", true), "%s+", "")
_M.init = function()
local output, status = _M.exec("query --windows")
if not status then return end