Skip to content

Instantly share code, notes, and snippets.

View joao-pinheiro's full-sized avatar

Joao Pinheiro joao-pinheiro

View GitHub Profile

Podman Cheatsheet

This cheat sheet covers the commands used for working with Podman, a popular tool for managing containers. Podman commands are mostly compatible with Docker. As stated on the Podman landing page, "Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images."

Image repositories

# List all local images
podman images
# Remove (forced) a local image from the local cache
@joao-pinheiro
joao-pinheiro / blocklist.sh
Created April 9, 2024 14:59 — forked from mudge/blocklist.sh
A Bash script to generate an Unbound configuration to block all domains on The Firebog's "The Big Blocklist Collection" and allow all domains on Anudeep's list
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Download all ticked blocklists from The Firebog's "The Big Blocklist
# Collection" [0] and block access to them with Unbound by redirecting traffic
# to 0.0.0.0.
#
# [0]: https://firebog.net
(
@joao-pinheiro
joao-pinheiro / cura_autolev.gcode
Last active July 12, 2021 16:37
Ender3 Pro Cura startup with Autolev
; Ender 3 Custom Start G-code
G92 E0 ; Reset Extruder
G91 ; Relative positioning
G1 Z4.0 F3000 ; Avoid anything on plate
G90 ; Absolute positioning
G28 ; Home all axes
G29 ; Auto level
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
@joao-pinheiro
joao-pinheiro / virtual_microphone.md
Last active November 9, 2020 11:44
Linux pipe audio file to microphone input

Running encrypted RAIDZ2 ZFS pool on top of file volumes mounted via s3fs-fuse with MinIO backend

... all on the same machine

0. Requirements

  • docker
  • s3fs
  • zfsutils