hook://file/XMKyhIUEL?p=RG9jdW1lbnRzLy5hcmNoaXZl&n=inbox
/Users/yutianran/Documents/.archive/inbox
在/Users/yutianran/.hard_link 中创建文件夹/Users/yutianran/Documents/.archive/inbox 的软链接,名称保持一致
; gist https://gist.github.com/fishyer/3416fe927b280d736dbe866f25893f84 | |
[System] | |
Debug = false | |
Mode = master | |
Listen = :5212 | |
SessionSecret = dfvlzfygqtcchkcpczhmlhioxlspmivmnltnqyjdhpnyrukqmcnlimezrlezccny | |
HashIDSalt = xqjexrhngemjqfgwtvyhiinftoehpowqlarxoqibnaebsigjgpzaizaxkxncijhd | |
ProxyHeader = X-Forwarded-For | |
[Database] | |
Type = mysql |
from fish_util.src.loguru_util import print | |
from multiprocessing import Process | |
from fastapi import FastAPI | |
from playwright.sync_api import Page, sync_playwright | |
import time | |
import redis | |
import arrow | |
import uvicorn | |
redis_client = redis.StrictRedis(host="127.0.0.1", port=6379, db=0) |
// 获取脚本配置 | |
const { SHOW_CONSOLE } = hamibot.env; | |
// 快速模式: fast normal | |
auto("normal"); | |
// 等待开启无障碍权限 | |
auto.waitFor(); | |
// 显示控制台 |
// 获取脚本配置 | |
const { SHOW_CONSOLE } = hamibot.env; | |
// 快速模式: fast normal | |
auto("normal"); | |
// 等待开启无障碍权限 | |
auto.waitFor(); | |
// 显示控制台 |
// ==UserScript== | |
// @name 监听网页元素-五彩标注 | |
// @namespace your-namespace | |
// @version 1.0 | |
// @description 当匹配到以后,就修改五彩标注的样式 | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
:root | |
{ | |
--dark0-hard: #1d2021; | |
--dark0: #282828; | |
--dark0-soft: #32302f; | |
--dark1: #3c3836; | |
--dark2: #504945; | |
--dark3: #665c54; | |
--dark4: #7c6f64; |
curl --location --request POST 'https://www.hulunote.com/myapi/quick-text-put/868253a542864a498090260f24XXXXXX' \ | |
--header 'Host: www.hulunote.com' \ | |
--header 'Accept: application/json, text/plain, */*' \ | |
--header 'Accept-Language: zh-CN' \ | |
--header 'Content-Type: application/json' \ | |
--header 'Sec-Fetch-Dest: empty' \ | |
--header 'Sec-Fetch-Mode: cors' \ | |
--header 'Sec-Fetch-Site: cross-site' \ | |
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) uTools/3.0.2 Chrome/102.0.5005.167 Electron/19.0.10 Safari/537.36' \ | |
--header 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="102"' \ |
#!/bin/sh | |
# 首先push到github,提交MyObsidian完成以后,再开始构建MyLogseq站点 | |
git push origin main | |
# 同时输出到控制台和file | |
function echof(){ | |
echo -e $1 | tee -a $log_path | |
} |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import socket | |
class handler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
path = str(self.path) | |
try: | |
domain = path[path.rindex("/")+1:] | |
print(domain) |