Knowledge Base

300 copy-ready commands with fill-in variables, plus step-by-step installation guides.

Installation Guides 11

Categories

Installation Guides (11)

Tags

300 results

Web Server Configs

Apache VirtualHost for a Laravel App

<VirtualHost *:80>
#apache #virtualhost
4 views 0 copies
Web Server Configs

Minimal Caddyfile for a PHP App

{{domain}} {
#caddy #caddyfile
5 views 1 copies
Web Server Configs

Test and Reload Nginx Config Without Downtime

nginx -t && systemctl reload nginx
#nginx #reload
3 views 0 copies
CLI Productivity

Load .env File into the Current Shell

export $(grep -v "^#" {{env_file}} | xargs)
#env #export
1 views 0 copies
CLI Productivity

Create and Reattach a tmux Session

# Create a named session
#tmux #terminal
3 views 0 copies
CLI Productivity

Search Command History with grep

history | grep "{{keyword}}"
#history #grep
1 views 0 copies
CLI Productivity

Fuzzy-Find and Open a File (fzf)

find {{search_path}} -type f | fzf | xargs -o {{editor}}
#fzf #find
2 views 0 copies
Container Operations

Stream Container Logs Since a Time

docker logs {{container_name}} --follow --since {{since}}
#docker #logs
1 views 0 copies
Container Operations

Rebuild and Restart Docker Compose Services

docker compose up -d --build --no-cache {{service}}
#docker #compose
2 views 0 copies
Container Operations

Remove All Stopped Containers and Dangling Images

docker container prune -f
#docker #prune
5 views 0 copies
Container Operations

Open a Shell Inside a Running Container

docker exec -it {{container_name}} {{shell}}
#docker #exec
6 views 0 copies
Networking & Tunneling

Test a Domain Against a Specific IP (curl --resolve)

curl -I --resolve {{domain}}:{{port}}:{{target_ip}} https://{{domain}}/{{path}}
#curl #dns
1 views 0 copies
Networking & Tunneling

Check Which Ports Are Listening

ss -tlnp | grep {{port}}
#network #ports
1 views 0 copies
Networking & Tunneling

Forward a Remote Port to Localhost (SSH Tunnel)

ssh -L {{local_port}}:{{remote_host}}:{{remote_port}} {{ssh_user}}@{{jump_host}}...
#ssh #tunnel
1 views 0 copies
Networking & Tunneling

Expose a Local Port via Cloudflare Tunnel

cloudflared tunnel --url http://localhost:{{local_port}}
#cloudflare #tunnel
1 views 0 copies
Testing Tricks

Pest Architecture Test - No Debug Calls

arch('no debug calls')
#pest #test
1 views 0 copies
Testing Tricks

Use SQLite In-Memory Database for Tests

<!-- phpunit.xml -->
#laravel #test
1 views 0 copies
Testing Tricks

Run Tests in Parallel

php artisan test --parallel --processes {{processes}}
#laravel #test
1 views 0 copies
Testing Tricks

Run a Single Test or Filter by Name

php artisan test --filter "{{test_name}}"
#laravel #test
1 views 0 copies
Monitoring & Logs

Watch Disk Usage of a Directory

watch -n {{interval}} "du -sh {{path}}"
#disk #du
1 views 0 copies
Monitoring & Logs

Follow a Systemd Service Journal

journalctl -u {{service_name}} -f --since "{{since}}"
#systemd #journalctl
1 views 0 copies
Monitoring & Logs

Watch Laravel Log for Errors Only

tail -f {{log_path}} | grep -i "{{level}}"
#laravel #logs
2 views 0 copies
Monitoring & Logs

Stream Nginx Logs in Real Time

tail -f {{access_log}} {{error_log}}
#nginx #logs
1 views 0 copies
Git Advanced

Move a Branch with git rebase --onto

# Move commits from {{old_base}} to {{new_base}}
#git #rebase
1 views 0 copies