| 1 | term = xterm-256color |
| 2 | |
| 3 | font-family = "JetBrains Mono" |
| 4 | font-size = 12.5 |
| 5 | adjust-cell-height = 15% |
| 6 | |
| 7 | foreground = #e8e8e8 |
| 8 | background = #1e1f22 |
| 9 | cursor-color = #a6e22e |
| 10 | cursor-text = #1e1f22 |
jetsung / 抓取 VPS pid
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 1 month ago
| 1 | import argparse |
| 2 | import requests |
| 3 | from urllib.parse import urljoin, urlparse, parse_qs, urlencode, urlunparse |
| 4 | import sys |
| 5 | |
| 6 | session = requests.Session() |
| 7 | session.headers.update({ |
| 8 | "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36", |
| 9 | "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", |
| 10 | "Accept-Language": "en-US,en;q=0.9", |
jetsung / 备份 GitHub 仓库至 Framagit
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 1 month ago
在 GitHub 仓库页面添加“备份到 Framagit”按钮,点击后通过 API 创建项目
| 1 | // ==UserScript== |
| 2 | // @name 备份 GitHub 仓库至 Framagit |
| 3 | // @namespace https://docs.scriptcat.org/ |
| 4 | // @version 0.1.0 |
| 5 | // @description 在 GitHub 仓库页面添加“备份到 Framagit”按钮,点击后通过 API 创建项目 |
| 6 | // @author Jetsung Chan <[email protected]> |
| 7 | // @match https://github.com/*/* |
| 8 | // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com |
| 9 | // @grant GM_xmlhttpRequest |
| 10 | // @grant GM_getValue |
jetsung / WezTerm 主题
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 1 month ago
WezTerm 主题(兼容 Linux 和 Window)
| 1 | local wezterm = require 'wezterm' |
| 2 | local act = wezterm.action |
| 3 | local target = wezterm.target_triple |
| 4 | |
| 5 | local drag_mod = "SUPER" |
| 6 | local default_prog = nil |
| 7 | |
| 8 | -- Windows 特殊处理 |
| 9 | if target:find("windows") then |
| 10 | drag_mod = "ALT" |
jetsung / GitLab / Gitea 镜像仓库一键填充
0 вподобань
0 форк(-ів)
2 файл(-ів)
Остання активність 1 month ago
在GitLab仓库设置页面一键填充镜像仓库信息
| 1 | // ==UserScript== |
| 2 | // @name GitLab 镜像仓库一键填充 |
| 3 | // @namespace ScriptCat Scripts |
| 4 | // @version 0.3.4 |
| 5 | // @description 在GitLab仓库设置页面一键填充镜像仓库信息,并在镜像列表中添加目标仓库跳转链接 |
| 6 | // @author Jetsung Chan <[email protected]> |
| 7 | // @match https://framagit.org/*/-/settings/repository* |
| 8 | // @match https://gitlab.com/*/-/settings/repository* |
| 9 | // @match https://framagit.org/*/project_activity |
| 10 | // @grant GM_getValue |
jetsung / 展示代码仓库的镜像地址
0 вподобань
0 форк(-ів)
3 файл(-ів)
Остання активність 1 month ago
| 1 | #!/usr/bin/env bash |
| 2 | #============================================================ |
| 3 | # File: git-mirror.sh |
| 4 | # Description: 展示代码仓库的镜像地址(支持完美横排) |
| 5 | # Author: Jetsung Chan <[email protected]> |
| 6 | # Version: 0.2.0 |
| 7 | # UpdatedAt: 2025-12-10 |
| 8 | #============================================================ |
| 9 | |
| 10 | [[ -n "${DEBUG:-}" ]] && set -eux || set -euo pipefail |
jetsung / 翻译文档为中文文档脚手架
0 вподобань
0 форк(-ів)
7 файл(-ів)
Остання активність 1 month ago
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | if [[ -n "${DEBUG:-}" ]]; then |
| 4 | set -eux |
| 5 | else |
| 6 | set -euo pipefail |
| 7 | fi |
| 8 | |
| 9 | BASE_URL="https://gist.asfd.cn/jetsung/gendocs/raw/HEAD" |
Новіше
Пізніше