{
"ClusterName": "snail-cluster",
"ClusterArn": "arn:aws:ecs:us-west-2:123456789012:cluster/snail-cluster",
"Status": "ACTIVE",
"RegisteredContainerInstancesCount": 3,
"RunningTasksCount": 2,
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
| (.name // "Unknown") as $n | | |
| (.mana_cost // ((.card_faces // []) | map(.mana_cost) | join(" // "))) as $mc | | |
| (.type_line // ((.card_faces // []) | map(.type_line) | join(" // "))) as $t | | |
| (.oracle_text // ((.card_faces // []) | map(.oracle_text) | join(" — "))) as $o | | |
| (if .power then "\(.power)/\(.toughness)" else ((.card_faces // []) | map(select(.power)) | map("\(.power)/\(.toughness)") | .[0]) end) as $pt | | |
| ($o \vert{} gsub("\n"; " ")) as $clean_o | | |
| "* **\($n)**" | |
| + (if $mc != "" and $mc != null then " | Cost: `\($mc)`" else "" end) | |
| + " | Type: \($t)" |
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
| import argparse | |
| import json | |
| import os | |
| import sys | |
| # Suppress PyTorch and HuggingFace parallel threading overhead in Termux | |
| os.environ["TOKENIZERS_PARALLELISM"] = "false" | |
| os.environ["OMP_NUM_THREADS"] = "1" | |
| from google import genai |
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
| import re | |
| import sys | |
| from pathlib import Path | |
| def parse_markdown_for_toc(markdown_content): | |
| heading_pattern = re.compile(r'^(#{1,})\s+(.+?)(\s*)$', re.MULTILINE) | |
| toc = [] | |
| for match in heading_pattern.finditer(markdown_content): |
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
| import sys | |
| def read_binary_file_to_hex(filename): | |
| with open(filename, 'rb') as binary_file: | |
| data = binary_file.read() | |
| hex_data = data.hex() | |
| block_size = 32 | |
| offset = 0 | |
| for i in range(0, len(hex_data), block_size): | |
| block = hex_data[i:i + block_size] |
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
| export NODE\_OPTIONS=--experimental-worker |
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/sh | |
| shuf /usr/share/dict/words | grep -E "^[a-z]{4,8}$" | head -4 |
NewerOlder