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
| from helpers.utils import execute_with_retry | |
| from generators.llm import LLMClient | |
| import importlib | |
| llmClient = LLMClient() | |
| def tail_words(text: str, max_words: int = 100) -> str: | |
| words = text.split() | |
| return " ".join(words[-max_words:]) if len(words) > max_words else text |
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 asyncio | |
| import tempfile | |
| import subprocess | |
| from pathlib import Path | |
| from dataclasses import dataclass | |
| from typing import Optional, List | |
| import aiohttp | |
| import xml.etree.ElementTree as ET | |
| from datetime import datetime, timedelta |
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
| # Create user | |
| sudo adduser cj | |
| # Set password expiry | |
| sudo passwd -e cj | |
| # Add to sudo group | |
| sudo usermod -aG sudo cj | |
| # Configure sudo access |