Skip to content

Instantly share code, notes, and snippets.

@rcarmo
rcarmo / buid-xrdp-glamor-annotated.sh
Last active January 17, 2025 22:56 — forked from rkkoszewski/gist:aa531cee7126edf329b76bdd0546f502
Notes for installing XorgXrdp and Xrdp with GLAMOR support
#!/bin/bash
# Install Latest XRDP with XORGXRDP and GFX/Glamor server-side acceleration
# Tested on Ubuntu 22.04 LTS
BUILD_DIR=/tmp/xrdpbuild
echo "-> preparing $BUILD_DIR"
rm -f -r $BUILD_DIR
mkdir -p $BUILD_DIR
@rcarmo
rcarmo / grub_linux_manual.py
Created July 19, 2023 07:42 — forked from rversteegen/grub_linux_manual.py
My GRUB linux boot entry generation script
#!/usr/bin/env python3
#exec tail -n +3 $0
# Be careful not to change
# the 'exec tail' line above.
# This script lives in /etc/grub.d/
# 2015,2022 Ralph Versteegen
# The menuentry template was orginally generated by /etc/grub.d/10_linux
@rcarmo
rcarmo / synthy-balls.py
Created August 23, 2024 10:25 — forked from todbot/synthy-balls.py
use rotary encoder to launch balls that play notes when bouncing in CircuitPython
# synthy-balls.py -- use rotary encoder to launch balls that play notes when bouncing
# 20 Aug 2024 - @todbot / Tod Kurt
# video demo: https://youtu.be/cCTPtk6KQQk
import time, random, math
import board
import busio, displayio, terminalio
import rotaryio, keypad
import audiobusio, audiocore, audiomixer, synthio
import gc9a01
#from adafruit_display_text import bitmap_label as label
@rcarmo
rcarmo / enphase_average.5m.py
Created October 11, 2024 07:11 — forked from jasonsnell/enphase_average.5m.py
Enphase Envoy Local Data - SwiftBar Menu Bar Script
#! /usr/bin/env python3
# Adapted from [email protected]
# see https://github.com/grzegorz914/homebridge-enphase-envoy
# <xbar.title>Enphase Solar (Averages)</bitbar.title>
# <xbar.version>v1.2</xbar.version>
# <xbar.author>Jason Snell</xbar.author>
# <xbar.author.github>jasonsnell</xbar.author.github>
# <xbar.desc>Display local Enphase solar stats.</xbar.desc>
# <swiftbar.hideAbout>true</swiftbar.hideAbout>