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
| ssh.map-port-to-local() { | |
| local LOCAL_HOST=$SSH_MAP_LOCAL_HOST | |
| local LOCAL_PORT=$SSH_MAP_LOCAL_PORT | |
| if [[ -z "$SSH_MAP_REMOTE_SERVER" ]] || [[ -z "$SSH_MAP_REMOTE_PORT" ]]; then | |
| echo "Usage: z.ssh.map-port-to-local" | |
| echo " env export SSH_MAP_REMOTE_SERVER=admin@192.168.2.91 [Required]" | |
| echo " env export SSH_MAP_REMOTE_PORT=12345 [Required]" | |
| echo " env export SSH_MAP_REMOTE_HOST=127.0.0.1 [Default: 127.0.0.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
| #!/usr/bin/env node | |
| /** | |
| * This file fix when the `npx skills update` doesn't work, in project mode. | |
| */ | |
| import { execSync } from "node:child_process"; | |
| import { readFileSync } from "node:fs"; | |
| import { resolve, dirname } from "node:path"; | |
| import { fileURLToPath } from "node:url"; |
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 | |
| SCRIPT_ROOT=$(cd "$(dirname "$0")"; pwd) | |
| WORKER_ID=$1 | |
| QUEUE_ITEM=$2 | |
| LOCK_FILE=$3 | |
| if [[ ! -f "$LOCK_FILE" ]]; then | |
| echo "$WORKER_ID" > "$LOCK_FILE" | |
| # echo "[$(date)] Worker $WORKER_ID: Acquired lock for queue item $QUEUE_ITEM." |
OlderNewer