Skip to content

Instantly share code, notes, and snippets.

View atoktoto's full-sized avatar

Andrzej Tokarski atoktoto

View GitHub Profile
@atoktoto
atoktoto / debugging.md
Last active December 25, 2023 20:57
Debugging RP2040 (Rasbperry Pi Pico SDK) using CLion on Windows

Debugging RP2040 (Rasbperry Pi Pico SDK)

Using: Windows, Clion, Picoprobe & OpenOCD

  1. Go through all the steps necessery to build from command line, as described in "Getting started with Raspberry Pi Pico".
  2. Add MinGW toolchain to CLion: obraz
  3. Add CMake profiles using the MinGW toolchain, specify the Pico SDK path as an environment variable: obraz

At this stage the project should build.

@atoktoto
atoktoto / create-template.nu
Last active February 27, 2024 21:22
Nu shell script for creating Proxmox templates with pre-baked qemu-guest-agent and docker
#!/bin/nu
let source_image_url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
let source_image_stem = $source_image_url | url parse | get path | path parse | get stem
let source_image = $"($source_image_stem).img"
let agent_image = $"($source_image_stem)-agent.img"
let docker_image = $"($source_image_stem)-docker.img"
apt install libguestfs-tools -y