Skip to content

Instantly share code, notes, and snippets.

View shoyuf's full-sized avatar
🏠
Working

Shoyuf shoyuf

🏠
Working
View GitHub Profile
@shoyuf
shoyuf / linkedin.js
Last active May 25, 2020 02:52
linkedin accept all friend's invitations
(accept = () => {
const arr = document.querySelectorAll('button.invitation-card__action-btn:not(.artdeco-button--muted)')
arr.length && arr[0].click()
setTimeout(accept,500)
})()
@shoyuf
shoyuf / docker-compose.yml
Last active June 8, 2022 08:42
kong and konga for docker compose yaml
# 数据库初始化之前会有多次错误提示,不要心急
version: "3.7"
services:
# kong
kong:
# 镜像版本,目前使用2.8.1
image: kong:2.8.1
user: kong
depends_on:
- kong-postergres-init
@shoyuf
shoyuf / alfred-terminal.applescript
Last active September 2, 2020 03:43
open iTerm 2 and exec script on Alfred
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
@shoyuf
shoyuf / delete.js
Last active April 4, 2024 22:32
删除自己的豆瓣广播 delete douban statuses
// 进入到豆瓣广播的列表页,例如: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");