Skip to content

Instantly share code, notes, and snippets.

View tosin2013's full-sized avatar

Tosin Akinosho tosin2013

View GitHub Profile
@tosin2013
tosin2013 / tmux-workspace.sh
Last active December 5, 2025 20:56
tmux-workspace.sh
#!/bin/bash
# ==============================================================================
# CONFIGURATION
# ==============================================================================
SESSION_NAME="my-workspace"
WORK_DIR="$HOME/Projects/my-project"
# ==============================================================================
# HELPER: SESSION CONFIGURATION
@tosin2013
tosin2013 / gist:e226c3f335ae587ad969cbce9d89e776
Created November 18, 2025 18:19
configure-centos10.x.sh
#!/bin/bash
sudo dnf install -y bash tar gzip which coreutils findutils xz procps glibc libstdc++ libatomic
sudo dnf install git vim unzip wget bind-utils python3-pip tar util-linux-user gcc python3-devel podman ansible-core make tmux -y
sudo dnf install ncurses-devel curl -y
sudo dnf module list nodejs
sudo dnf module enable nodejs:20 -y
sudo dnf install -y nodejs
curl 'https://vim-bootstrap.com/generate.vim' --data 'editor=vim&langs=javascript&langs=go&langs=html&langs=ruby&langs=python' > ~/.vimrc
# This also installs ansible-core if it is not already installed
pip3 install ansible-dev-tools
#!/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.