Move 150+ scripts from root and scripts/ into client/project directories: - clients/dataforth/scripts/ (110 files: AD2, sync, SSH, DB, DOS scripts) - clients/bg-builders/scripts/ (14 files: Lesley mgmt, Exchange, termination) - clients/internal-infrastructure/scripts/ (10 files: GDAP, Gitea, backups) - projects/msp-tools/scripts/ (9 files: CIPP, MSP onboarding, Datto) - projects/gururmm-agent/scripts/ (3 files: API test, JWT, record counts) - clients/glaztech/scripts/ (1 file: CentraStage removal) Also reorganized: - VPN scripts → infrastructure/vpn-configs/ - Retrieved API/JS files → api/ - Forum posts → projects/community-forum/forum-posts/ - SSH docs → clients/internal-infrastructure/docs/ - NWTOC/CTONW docs → projects/wrightstown-smarthome/docs/ - ACG website files → projects/internal/acg-website-2025/ - Dataforth docs → clients/dataforth/docs/ - schema-retrieved.sql → docs/database/ Deleted 24 tmp_*.ps1 one-off debug scripts (preserved in git history). Root reduced from 220+ files to 62 items (docs + directories only). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
1.3 KiB
Python
28 lines
1.3 KiB
Python
import json
|
|
import sys
|
|
|
|
# Read and extract batch file content
|
|
jsonl_file = r'D:\ClaudeTools\imported-conversations\general-work\claude-general\5e058595-cbe5-4373-94ea-728e103504f5.jsonl'
|
|
|
|
with open(jsonl_file, 'r', encoding='utf-8') as f:
|
|
for line_num, line in enumerate(f, 1):
|
|
try:
|
|
data = json.loads(line)
|
|
if 'content' in data:
|
|
content_items = data.get('content', [])
|
|
for item in content_items:
|
|
if isinstance(item, dict) and item.get('type') == 'text':
|
|
text = item.get('text', '')
|
|
# Look for batch file code
|
|
if '@ECHO OFF' in text and ('UPDATE' in text or 'STARTNET' in text or 'AUTOEXEC' in text):
|
|
# Find code blocks
|
|
if '```' in text:
|
|
parts = text.split('```')
|
|
for i, p in enumerate(parts):
|
|
if '@ECHO OFF' in p or 'REM' in p[:100]:
|
|
print(f"=== LINE {line_num}, BLOCK {i} ===")
|
|
print(p[:3000])
|
|
print("\n" + "="*50 + "\n")
|
|
except Exception as e:
|
|
pass
|