Skip to content

Instantly share code, notes, and snippets.

@vertti
vertti / opencode-safe-permissions.json
Last active July 16, 2026 20:02
OpenCode safe global permissions (~/.config/opencode/opencode.json). JSON permission.bash format. Pre-approved commands covering: file/text inspection, system info, git & GitHub CLI read ops, check-only linters, lockfile-respecting installs, test runners, and Jira read queries. Note: webfetch/websearch only support global allow/ask/deny (no URL-…
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"bash": {
"*": "ask",
"cat *": "allow",
"head *": "allow",
"tail *": "allow",
"ls *": "allow",
@startergo
startergo / qemu-img.md
Last active May 10, 2026 23:33
How to: Use qemu-img command to convert between vmdk, raw, qcow2, vdi, vhd, vhdx formats/disk images (qemu-img create, snapshot, resize etc.)
  • First we need to have qemu installed on the system, for most of Linux systems, we can install “qemu-utils” for Windows we can download QEMU disk image utility from here

  • Other related questions

How to open raw disk from VMware
How to open qcow2 disk from VMware
How to open vdi disk from VMware
How to open raw disk from Hyper-V
How to open qcow2 disk from Hyper-V
How to open vdi disk from Hyper-V
@subfuzion
subfuzion / curl.md
Last active November 5, 2026 22:20
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.