Skip to content

Instantly share code, notes, and snippets.

View tosin2013's full-sized avatar

Tosin Akinosho tosin2013

View GitHub Profile
#!/usr/bin/env bash
# Auto-installation script for gitleaks, action-validator, and pre-commit
# Reference: https://pre-commit.com/
set -euo pipefail # Exit on error, undefined variables, and pipe failures
# Color codes for output formatting
readonly RED='\033[0;31m'
readonly GREEN='\033[0;32m'
@tosin2013
tosin2013 / documcp.sh
Last active August 29, 2025 05:30
DocuMCP is an intelligent MCP (Model Context Protocol) server that revolutionizes documentation deployment. (For vscode)
#!/bin/bash
# DocuMCP is an intelligent MCP (Model Context Protocol) server that revolutionizes documentation deployment. It analyzes your repository, recommends the best static site generator, and automatically creates production-ready documentation following the Diataxis framework.
# https://tosin2013.github.io/documcp/
```
mkdir -p .vscode
export DOCUMCP_TARGET_REPO=/absolute/path/to/your/project
cat <<'EOF' > .vscode/mcp.json
{
@tosin2013
tosin2013 / aider-make.sh
Last active August 7, 2025 16:06
aider-make.sh
#!/bin/bash
# aider-make: AI-powered Makefile automation with aider integration
# Author: Generated for automation of make targets with AI assistance
# Version: 1.0.0
set -euo pipefail # Exit on error, undefined vars, pipe failures
# =============================================================================
# CONFIGURATION VARIABLES (User Configurable)

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

I HAVE a project manager that I can communicate with using. kanbn will help me with the long term goals and planning for this project.


====================================================
COMMAND: kanbn help

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
#!/bin/bash
set -x # Enable debugging
# Set output files
STRUCTURE_FILE="codebase_structure.txt"
SUMMARY_FILE="summary_document.txt"
MODULE_SUMMARY_DIR="module_summaries"
WORKFLOWS_FILE="core_workflows.txt"
STATS_FILE="codebase_stats.txt"
LLM_PROMPT_FILE="llm_relationship_prompt.txt"
@tosin2013
tosin2013 / prompt.md
Created February 10, 2025 15:44
prompt.md

You are Business Architect AI, an expert system designed to help users transform any idea into a viable business by generating comprehensive and structured business deliverables. You leverage a Project Manager persona who oversees the entire process, generates specialized professional personas, maintains context and memory throughout the interaction, and produces outputs that mirror real business documents and strategies with specified timelines and due dates. The Project Manager acts as an intermediary between the user and the professional personas, ensuring seamless communication, coordination, and collaboration.

Project Manager Attributes:

  • Organizational Skills: Structures tasks, manages resources, and maintains orderly progress throughout the project lifecycle.
  • Attention to Detail: Meticulously reviews tasks and deliverables to ensure accuracy and completeness.
  • Effective Communication: Provides clear instructions, constructive feedback, and regular updates to all team p
@tosin2013
tosin2013 / quickprompt.py
Created November 18, 2024 03:24
quickprompt.py -
import os
import json
import requests
import questionary
import inquirer
def ensure_api_key():
"""
Checks if the environment variable 'GROQ_API_KEY' is set.
@tosin2013
tosin2013 / README.md
Last active November 23, 2024 17:05
aider_setup.sh - Aider Setup Script - Streamlined setup for using various AI models with aider-chat, including options for DeepSeek, OpenAI, OpenRouter, and Ollama models.

Aider Setup Script

This Bash script streamlines the setup and execution of Aider, an AI-powered pair programming assistant that operates within your terminal. It automates the installation process, manages virtual environments, and configures Aider with various models and settings.

Prerequisites

  • Python: Ensure Python 3.9 or higher is installed. Verify your version with:

python3 --version

@tosin2013
tosin2013 / delete-pods.sh
Created July 1, 2024 18:53
delete-pods.sh
#!/bin/bash
set -xe
# Get all projects in OpenShift
projects=$(oc get projects -o=jsonpath='{.items[*].metadata.name}')
# Iterate through each project
for project in $projects; do
echo "Checking project: $project"
# Get pods with non-zero restarts in the current project