Skip to content

Instantly share code, notes, and snippets.

View Saik0s's full-sized avatar

Igor Tarasenko Saik0s

View GitHub Profile
#!/bin/bash
source /venv/main/bin/activate
COMFYUI_DIR=${WORKSPACE}/ComfyUI
# Packages are installed after nodes so we can fix them...
APT_PACKAGES=(
#"package-1"
#"package-2"
@Saik0s
Saik0s / codebase_index.swifttemplate
Created February 8, 2025 02:46
sourcery template for generating a code index file from swift source files
---
description: Code index maps all types, methods and properties across the project files. Mirrors folder structure to give instant high-level view of codebase architecture - perfect for grasping project scope and organization at a glance.
globs: **/*.{swift,md}
---
Format:
./Directory/
struct TypeName: Protocols
- property: Type
- method(param: Type) -> ReturnType
@Saik0s
Saik0s / 01_planning_summary.md
Created January 17, 2025 13:12 — forked from pyros-projects/01_planning_summary.md
Alternative Meta prompts for use with Coding Agents á la Cline etc

Technical Project Planning Meta-Prompt

You are an expert software architect and technical project planner. Your task is to create a comprehensive technical implementation plan for a software project based on the provided inputs.

User Input

do you know googly python-fire? Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. I want a similar library, but instead of a CLI it generates amazing web apps for any python project!

Output Format

@Saik0s
Saik0s / 01_planning.md
Created January 17, 2025 11:31 — forked from pyros-projects/01_planning.md
Meta Prompting

Technical Project Planning Meta-Prompt

You are an expert software architect and technical project planner. Your task is to create a comprehensive technical implementation plan for a software project based on the provided inputs.

User Input

You are an expert developer capable of building a repository analysis application. Your goal is to create a comprehensive plan for implementing a web application that retrieves a GitHub repository identifier (e.g., 127.0.0.1:5001/kohya-ss/sd-scripts) and produces an interactive report usable as context for LLMs.

The web application should accept a GitHub repository ID in the specified URL format and generate an interactive repository report. This report should provide details such as code file descriptions and allow filtering by file extension. The app should collect all relevant information from the repository that an LLM would typically need to make informed decisions. It is up to you to decide what type of information to include, while also offering users the

@Saik0s
Saik0s / Albert Heijn app API.md
Created July 28, 2024 00:21 — forked from jabbink/Albert Heijn app API.md
Interact with the Albert Heijn mobile app API to retrieve receipt data, and other things

AH API

Always use User-Agent: Appie/8.22.3 and Content-Type: application/json
Technically there is more information about your device and user ID after it, but the server does not seem to care

Token

If you have a valid access_token, add it as a header in request
Authorization: Bearer access_token

@Saik0s
Saik0s / links.md
Created June 20, 2024 21:03 — forked from tkersey/.2025.md
For future reference but maybe not.
@Saik0s
Saik0s / Bindings.swift
Created April 2, 2024 23:47 — forked from AliSoftware/Bindings.swift
Re-implementation of @binding and @State (from SwiftUI) myself to better understand it
/*:
This is a concept re-implementation of the @Binding and @State property wrappers from SwiftUI
The only purpose of this code is to implement those wrappers myself
just to understand how they work internally and why they are needed,
⚠️ This is not supposed to be a reference implementation nor cover all
subtleties of the real Binding and State types.
The only purpose of this playground is to show how re-implementing
them myself has helped me understand the whole thing better
@Saik0s
Saik0s / youtube_summary.py
Last active January 29, 2024 20:14
create youtube video summary
#!/usr/bin/env python3
import requests
import json
import sys
# Constants
CURRENT_VERSION = "1.1.0"
OPENROUTER_URL = "https://openrouter.ai/api/v1/chat/completions"
@Saik0s
Saik0s / main.py
Last active January 27, 2024 03:50
Realtime Screen Analyzer using cogvlm
import base64
import csv
import io
import os
import time
from datetime import datetime, timedelta
from typing import Tuple
import numpy as np
import pyautogui
async def run_async(func, *args, **kwargs) -> T:
"""
Runs a synchronous function in an asynchronous manner.
"""
async def wrapper() -> T:
try:
return await loop.run_in_executor(
None, functools.partial(func, *args, **kwargs)
)