This file contains hidden or 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
(accept = () => { | |
const arr = document.querySelectorAll('button.invitation-card__action-btn:not(.artdeco-button--muted)') | |
arr.length && arr[0].click() | |
setTimeout(accept,500) | |
})() |
This file contains hidden or 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
# 数据库初始化之前会有多次错误提示,不要心急 | |
version: "3.7" | |
services: | |
# kong | |
kong: | |
# 镜像版本,目前使用2.8.1 | |
image: kong:2.8.1 | |
user: kong | |
depends_on: | |
- kong-postergres-init |
This file contains hidden or 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
on alfred_script(q) | |
tell application "System Events" to set isRunning to exists (processes where name is "iTerm2") | |
if isRunning then | |
tell application "iTerm2" to set hasWindow to exists (windows) | |
if hasWindow then | |
tell application "iTerm2" | |
tell current window to create tab with default profile | |
tell current session of current window to write text q | |
end tell | |
else |
This file contains hidden or 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
// 进入到豆瓣广播的列表页,例如:https://www.douban.com/people/******/ | |
// 按 F12 或者 Command + Shift + I | |
// 进入 Console 界面,粘贴以下代码,按回车确定 | |
// 成功后手动刷新页面,重复以上操作 | |
(function() { | |
let ck = ""; | |
document.querySelectorAll(".nav-user-account a").forEach(e => { | |
if (e.href.includes("logout")) { | |
const url = new URL(e.href); | |
ck = url.searchParams.get("ck"); |