Skip to content

Instantly share code, notes, and snippets.

View praxisdj's full-sized avatar

Djonathan Krause praxisdj

View GitHub Profile
@praxisdj
praxisdj / auto_commit.bat
Created August 18, 2018 23:55
Auto commit by bat
cd C://Users//djodr//Documents//....
set HOME=%USERPROFILE%
git add .
git commit -m "auto commit"
git push origin master
pause
@praxisdj
praxisdj / run_python_server.txt
Created August 18, 2018 23:56
Run Python HTTP Server
python -m http.server
@praxisdj
praxisdj / create_express_server.js
Last active October 10, 2018 13:37
Step by step to create NodeJS Express local server
/*
1. Add express
$ npm install express --save
2. Add cors
$ npm install cors --save
3. On Windows, add new firewall rule to allow receive request on PORT
*/
@praxisdj
praxisdj / gist-claude-sandbox.md
Created April 3, 2026 21:12
Run Claude Code with --dangerously-skip-permissions safely using a Lima VM sandbox on macOS

Run Claude Code with --dangerously-skip-permissions Safely Using a Lima VM

The Problem

Claude Code's --dangerously-skip-permissions flag is powerful — it lets the AI execute any shell command without asking for confirmation. This enables fully autonomous coding sessions, but on your bare machine it's risky: a prompt injection (via a malicious file, PR description, or fetched URL) could silently read your SSH keys, AWS credentials, or inject code into your shell config.

The Solution

Use a lightweight Linux VM as the sandbox. The VM provides kernel-level isolation while your project files are mounted in from the host via SSHFS. Claude can do whatever it wants inside the VM — your host machine stays protected.