Skip to content

Instantly share code, notes, and snippets.

View sorny's full-sized avatar
Dies Das 🍍

Gerald Reisinger sorny

Dies Das 🍍
View GitHub Profile
abmantis / m5stack-atom-matrix-esphome.yaml
Created July 4, 2023 21:06
M5Stack Atom Matrix ESPHome
name: m5-atom-matrix
upload_speed: 115200
priority: 700
- output.turn_on: wifi_fix_output
denisgolius /
Last active January 30, 2024 08:51
install VicotriaMetrics Single on ubuntu 20.04
set -e
system_set_hostname "$HOSTNAME"
apt update && apt upgrade -y && apt install -y curl wget net-tools traceroute jq
# Generate files
mkdir -p /etc/victoriametrics/single
mkdir -p /var/lib/victoria-metrics-data
ChipCE /
Last active April 16, 2024 23:07
Klipper bed mesh on print area only macro install guide


Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh

Klipper mesh on print area only install guide

What this macro do

  • This macro will dynamically changing the bed mesh area based on the size of the parts will be printed. The fw will only probe on the area that the part will be printed (plus mesh_area_offset value)
tomdaley92 /
Last active April 16, 2024 19:34
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

sorny /
Last active April 10, 2024 06:13
X11 forwarding with macOS and Docker

X11 forwarding on macOS and docker

A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY. Works on both Intel and M1 macs!

This guide was tested on:

  • macOS Catalina 10.15.4
  • docker desktop (43884) - stable release
  • XQuartz 2.7.11 (xorg-server 1.18.4)
  • Macbook Pro (Intel)
xoseperez /
Last active February 11, 2024 15:05
Raspberry Pi 3 with Mosquitto, Node-RED, InfluxDB, Grafana and Nginx (as a reverse proxy)
ljjjustin /
Last active April 4, 2024 15:00
if [ $# -ne 3 ]; then
echo "usage: $0 <unix socket file> <host> <listen port>"
kaspergrubbe / geonames_postgres.rb
Last active April 4, 2024 08:12
Import files from into a PostgreSQL database that runs Postgis
#!/usr/bin/env ruby
require 'open3'
require 'fileutils'
def run_command(command)
puts("+: " + command)
Open3.popen2e(command) do |stdin, stdout_stderr, wait_thread| do
stdout_stderr.each {|l| puts l }
bmweiner /
Last active December 30, 2023 19:30
Stream audio to any Sonos component via AirPlay using a Raspberry Pi.

Sonos Airplay

Stream audio to any Sonos component via AirPlay using a Raspberry Pi (Model B, Raspbian Jessie) and the following software:

  • Shairport Sync: configures the Raspberry Pi as an AirPlay audio player.
  • DarkIce: encodes audio received from AirPlay (system audio) and sends it to Icecast2.
  • Icecast2: serves streaming audio from DarkIce at a network URL.
olih /
Last active April 17, 2024 19:46
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq