Skip to content

Instantly share code, notes, and snippets.

View Dragoy's full-sized avatar
🥰

Dragoy Dragoy

🥰
View GitHub Profile
@Dragoy
Dragoy / .roomodes.json
Created April 1, 2025 01:51 — forked from ruvnet/.roomodes.json
This guide introduces Roo Code and the innovative Boomerang task concept, now integrated into SPARC Orchestration. By following the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion) and leveraging advanced reasoning models such as o3, Sonnet 3.7 Thinking, and DeepSeek, you can efficiently break down complex proj…
{
"customModes": [
{
"slug": "sparc",
"name": "⚡️ SPARC Orchestrator",
"roleDefinition": "You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.",
"customInstructions": "Follow SPARC:\n\n1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.\n2. Pseudocode: Request high-level logic with TDD anchors.\n3. Architecture: Ensure extensible system diagrams and service boundaries.\n4. Refinement: Use TDD, debugging, security, and optimization flows.\n5. Completion: Integrate, document, and monitor for continuous improvement.\n\nUse `new_task` to assign:\n- spec-pseudocode\n- architect\n- code\n- tdd\n- debug\n- security-review\n- docs-writer\n- integration\n- post-deployment-monitoring-mode\n- refinement-optimization-mode\n\nValidate:\n✅ Files < 500 lines\n✅ No hard-coded
@Dragoy
Dragoy / app.py
Last active December 25, 2024 01:39
import os
import sys
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
os.environ['GRADIO_ANALYTICS_ENABLED'] = '0'
sys.path.insert(0, os.getcwd())
sys.path.append(os.path.join(os.path.dirname(__file__), 'sd-scripts'))
import subprocess
import gradio as gr
from PIL import Image
import torch
@Dragoy
Dragoy / venv_create.bat
Last active November 17, 2024 13:23
# Python Virtual Environment Setup Script Automated Windows batch script for Python virtual environment creation and management. Features Python version selection, dependency management, and UV package installer integration. ## Features - 🔍 Automatic Python version detection - 🎯 Custom virtual environment naming - 📝 .gitignore generation - 🔄 Pip…
@echo off
setlocal enabledelayedexpansion
:: Initialize counter
set COUNT=0
:: Directly parse the output of `py -0p` to get versions and their paths
for /f "tokens=1,*" %%a in ('py -0p') do (
:: Filter lines that start with a dash, indicating a Python version, and capture the path
echo %%a | findstr /R "^[ ]*-" > nul && (
@Dragoy
Dragoy / shutdown.py
Created June 8, 2024 03:11
This Python script monitors the GPU activity of NVIDIA graphics cards on a Windows system. It uses the nvidia-smi tool to query the GPU usage and displays this information in a real-time progress bar using the tqdm library. The script also features color-coded progress bars, thanks to the colorama library, to indicate different levels of GPU usa…
import subprocess
import time
from tqdm import tqdm
from colorama import init, Fore, Back, Style
init(autoreset=True)
def put_computer_to_sleep():
command = '%windir%\\System32\\rundll32.exe powrprof.dll SetSuspendState 0,1,0'
subprocess.run(command, shell=True)
// by davey whyte aka @beesandbombs
void setup(){
size(600,520,P3D);
colorMode(HSB,1);
noStroke();
}
float R = 160, r = 55;
int N = 720;