Skip to content

Instantly share code, notes, and snippets.

View abubaker417's full-sized avatar
🎯
Focusing

AbuBaker abubaker417

🎯
Focusing
View GitHub Profile
## πŸ”Ή Vim Modes (most important concept)
- `i` β†’ Insert mode (start typing)
- `Esc` β†’ Back to Normal mode (always your safe key)
- `:` β†’ Command mode
- `v` β†’ Visual mode (select text)
------
## πŸ”Ή File Commands
#!/bin/bash
# Local testing version of deploy script
# This simulates the deployment without actually pulling from git
set -e
BRANCH=$1
if [ -z "$BRANCH" ]; then
@abubaker417
abubaker417 / gist:106bb3c39a0b0c9c528a24743330bcdb
Last active January 19, 2026 16:59
test-deploy-local-notes
Test Development Setup:
# Test dev compose file
docker-compose -f docker-compose.dev.yml up --build
# In another terminal, test endpoints
curl http://localhost:8001/health
curl http://localhost:8001/docs
# Check logs in real-time
docker-compose -f docker-compose.dev.yml logs -f
# Ubuntu
sudo apt update -y
# Install Docker
https://docs.docker.com/engine/install/ubuntu/
# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose