Skip to content

Instantly share code, notes, and snippets.

View tosin2013's full-sized avatar

Tosin Akinosho tosin2013

View GitHub Profile
@tosin2013
tosin2013 / pmb_centos10_setup.sh
Created June 3, 2026 18:58
pmb_centos10_setup.sh
#!/usr/bin/env bash
# PMB (Personal Memory Brain) Deployment Script for CentOS 10 Stream
# This script sets up the host environment, clones PMB, installs it into a venv,
# and configures a systemd service to run the PMB dashboard.
set -euo pipefail
echo "======================================================="
echo " Starting PMB Setup for CentOS 10 Stream"
echo "======================================================="
@tosin2013
tosin2013 / configure-aws-cli.sh
Created April 28, 2026 18:59
configure-aws-cli.sh
#!/bin/bash
#set -xe
function checkForProgramAndInstall() {
command -v $1 > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
printf '%-72s %-7s\n' $1 "PASSED!";
else
sudo yum install -y $1
@tosin2013
tosin2013 / setup-dev-ubuntu.sh
Created April 7, 2026 15:57
setup-dev-ubuntu.sh
#!/usr/bin/env bash
set -Eeuo pipefail
# Ubuntu developer workstation bootstrap
# Installs:
# - Node.js 20
# - Docker Engine + compose/buildx plugins
# - Git
# - Common developer tools
@tosin2013
tosin2013 / tmux-workspace.sh
Last active January 21, 2026 16:54
tmux-workspace.sh
#!/bin/bash
# ==============================================================================
# CONFIGURATION
# ==============================================================================
SESSION_NAME="my-workspace"
WORK_DIR="$HOME/Projects/my-project"
# ==============================================================================
# HELPER: SESSION CONFIGURATION
@tosin2013
tosin2013 / configure-centos10.x.sh
Last active June 5, 2026 14:00
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