jetsung / 【脚本】将 torrent 种子文件转为 magnet 磁力链接
0 likes
0 forks
1 files
Last active 1 month ago
| 1 | import subprocess |
| 2 | import sys |
| 3 | import os |
| 4 | import re |
| 5 | import urllib.parse |
| 6 | |
| 7 | """ |
| 8 | torrent_to_magnet_batch.py |
| 9 | |
| 10 | 功能: |
jetsung / 【脚本】2FA 二维码生成 Markdown
0 likes
0 forks
2 files
Last active 1 month ago
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | #============================================================ |
| 4 | # File: totp2md.sh |
| 5 | # Description: 将 TOTP 二维码转换为 Markdown 表格 |
| 6 | # URL: https://fx4.cn/ |
| 7 | # ORIGIN: https://gist.asfd.cn/jetsung/totp2md/raw/HEAD/totp2md.sh |
| 8 | # Author: Jetsung Chan <[email protected]> |
| 9 | # Version: 0.1.0 |
| 10 | # CreatedAt: 2025-08-18 |
jetsung / 【脚本】推送消息到钉钉、飞书、Lark
0 likes
0 forks
1 files
Last active 1 month ago
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | #============================================================ |
| 4 | # File: push-notify.sh |
| 5 | # Description: 推送消息到钉钉、飞书、Lark |
| 6 | # URL: https://fx4.cn/ |
| 7 | # ORIGIN: https://gist.asfd.cn/jetsung/notify/raw/HEAD/notify.sh |
| 8 | # Author: Jetsung Chan <[email protected]> |
| 9 | # Version: 0.1.0 |
| 10 | # CreatedAt: 2025-08-18 |
jetsung / 手机浏览器调用发送短信
0 likes
0 forks
2 files
Last active 1 month ago
手机浏览器调用发送短信 https://mail.163.com/html/200217_sms/sendsms.html?hl=zh_CN&s=2612&n=106981630163222
| 1 | <!DOCTYPE html> |
| 2 | <html lang="zh_CN"> |
| 3 | <head> |
| 4 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 5 | <meta http-equiv="Content-type" content="text/html;charset=utf-8"> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> |
| 7 | <title>上行短信</title> |
| 8 | <style> |
| 9 | *{margin:0;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft Yahei,Hiragino Sans GB,"Microsoft Sans Serif",WenQuanYi Micro Hei,sans,sans-serif;zoom:1;} |
| 10 | html {font-size: calc(100vw / 7.5);} |
jetsung / Xiuno 转 Flarum
0 likes
0 forks
1 files
Last active 1 month ago
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * # XiunoBBS 转 Flarum |
| 5 | * ## 使用说明 |
| 6 | * ### 注意:本程序只转移 主题、帖子和版块,不转会员 |
| 7 | * |
| 8 | * 1. 将本文件上传到两个网站共同的服务器(只要支持两个站的数据库连接均可) |
| 9 | * 2. 复制 xiunobbs 下的 conf/conf.php 到本目录,或者自己修改以下的引入路径 |
| 10 | * 3. 复制 flarum 下的 config.php 到本目录,或者自己修改以下的引入路径 |
jetsung / gbkbig5.go
0 likes
0 forks
1 files
Last active 1 month ago
| 1 | import ( |
| 2 | "bytes" |
| 3 | "io/ioutil" |
| 4 | "golang.org/x/text/encoding/traditionalchinese" |
| 5 | "golang.org/x/text/encoding/simplifiedchinese" |
| 6 | "golang.org/x/text/transform" |
| 7 | ) |
| 8 | //convert GBK to UTF-8 |
| 9 | func Decodegbk(s []byte) ([]byte, error) { |
| 10 | I := bytes.NewReader(s) |
Newer
Older