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
| #!/usr/bin/env bash | |
| # ============================================================ | |
| # tunnel.sh — SSH Tunnel Manager | |
| # Pure bash, no python/jq dependencies, state stored in TOML | |
| # Usage: ./tunnel.sh [--base DIR] [config|start|stop|list|delete|clean|help] | |
| # ============================================================ | |
| # Parse --base option (extract from any position) | |
| _parse_base_dir() { | |
| BASE_DIR="" |
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
| $SSHOpts = @('-o', 'ConnectTimeout=5', '-o', 'BatchMode=yes') | |
| $DefaultParallel = 5 | |
| function Show-Usage { | |
| Write-Host @" | |
| 用法: sync_ssh_config.ps1 [選項] | |
| 將本機 ~/.ssh/config 同步到所有 SSH config 中定義的遠端主機。 | |
| 選項: |
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
| #!/usr/bin/env pwsh | |
| # GitHub Generic Installation Script for Windows | |
| # Usage: $env:APP_NAME="app"; $env:REPO="owner/repo"; irm https://gist.githubusercontent.com/superyngo/a6b786af38b8b4c2ce15a70ae5387bd7/raw/gpinstall.ps1 | iex | |
| # | |
| # | install | $env:APP_NAME="wedi"; $env:REPO="superyngo/wedi"; $env:UNINSTALL="false"; irm https://gist.githubusercontent.com/superyngo/a6b786af38b8b4c2ce15a70ae5387bd7/raw/gpinstall.ps1 | iex | |
| # | uninstall | $env:APP_NAME="wedi"; $env:REPO="superyngo/wedi"; $env:UNINSTALL="true"; irm https://gist.githubusercontent.com/superyngo/a6b786af38b8b4c2ce15a70ae5387bd7/raw/gpinstall.ps1 | iex | |
| # | |
| # System-level installation (requires Administrator): | |
| # Start-Process pwsh -Verb RunAs -ArgumentList "-NoExit","-Command","`$env:APP_NAME='wedi'; `$env:REPO='superyngo/wedi'; irm https://gist.githubusercontent.com/superyngo/a6b786af38b8b4c2ce15a70ae5387bd7/raw/gpinstall.ps1 | iex" | |
| # |
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
| param( | |
| [string]$IdentityFile = "$env:USERPROFILE\.ssh\id_rsa.pub", | |
| [Parameter(ValueFromRemainingArguments = $true)] | |
| [string[]]$Target | |
| ) | |
| function Print-Usage { | |
| Write-Host "Usage: ssh-copy-id [-i identity_file] user@host" | |
| exit 1 | |
| } |
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
| #!/bin/bash | |
| set -e | |
| # ==================================================== | |
| # 功能: | |
| # 1️⃣ 若第 1 分割區非指定 FS,重新格式化為指定格式 (預設 xfs) | |
| # 2️⃣ 若尾端有未分配空間且 >32MB,自動建立 FAT32 分區 label="refind" | |
| # 3️⃣ 自動偵測並安裝必要格式化工具 | |
| # 4️⃣ 支援 --dry-run 模式(只顯示不執行) | |
| # ==================================================== |
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
| <# | |
| .SYNOPSIS | |
| rclone Mount 管理工具 (PowerShell 版本) | |
| .DESCRIPTION | |
| 功能: mount, unmount, status, show, help | |
| 使用 SSH config 設定掛載 rclone SFTP remote 到本地目錄 | |
| .PARAMETER Operation | |
| 操作類型: mount/mnt, unmount/umount/umnt, status, show, help |
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
| #!/usr/bin/env bash | |
| # wrtman - Manage logrotate configurations | |
| # Usage: | |
| # ./wrtman.sh install [rotate_name] | |
| # ./wrtman.sh uninstall [rotate_name] | |
| # ./wrtman.sh info [rotate_name] | |
| # ./wrtman.sh list | |
| # ./wrtman.sh test [rotate_name] | |
| # v0.2.1 fix config permission, add permission check for testing |
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
| #!/bin/bash | |
| # wappman.sh | |
| # | |
| # Application process manager with monitoring capabilities: | |
| # - Manages application lifecycle (start/stop/restart) | |
| # - Optional health checking (periodic process monitoring) | |
| # - Optional file watching (auto-restart on file changes) | |
| # - Pure script solution (no systemd/supervisor dependencies) | |
| # | |
| # Usage: |
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
| <# | |
| .SYNOPSIS | |
| mini-nano.ps1 - A lightweight PowerShell-based text editor | |
| .DESCRIPTION | |
| A terminal-based text editor similar to nano, written entirely in PowerShell. | |
| Provides essential text editing features with support for multiple file types | |
| and automatic comment symbol detection. | |
| .FEATURES |
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
| // ==UserScript== | |
| // @name PDD订单导出表格 | |
| // @namespace https://www.pinduoduo.com/ | |
| // @version 1.1 | |
| // @description 导出拼多多订单信息 | |
| // @AuThor ForkedFrom吾愛破解yiqifeng | |
| // @match https://mobile.yangkeduo.com/orders.html* | |
| // @require https://cdn.staticfile.org/jquery/3.5.0/jquery.min.js | |
| // @grant GM_download | |
| // @run-at document-end |
NewerOlder