Skip to content

Instantly share code, notes, and snippets.

@mhoye
mhoye / gist:dcc2c2febeba230ca7ceb25c970390a1
Last active January 11, 2026 15:42
uBlock Origin Bonus Content
||youtube.com$domain=~youtube.com # Don't pull youtube JS unless you're using youtube. This breaks
# embedded videos, which is mildly inconveninent, but makes everything much faster.
||www.gstatic.com$domain=~google.com
||gstatic.com$domain=~google.com # Don't use gstatic unless you're on Google. This might
# break some things but so far I haven't noticed any problems.
||accounts.google.com$domain=~google.com # Don't pop up the "log in with google" dialog everywhere. This makes the
# internet feel about 95% less creepy.
||static.licdn.com$domain=~www.linkedin.com # I was changing my 4 month old child's diaper when they said to me, Dad,
# don't run LinkedIn code if you're not using Linkedin. Here's what that
# taught me about b2b sales.

How to for Klipper on Docker (prind) + FYSETC-Portable Input Shaper (PIS)

I have an unusual Klipper setup (multiple printers in Docker) and found that the docs for the PIS and prind didn't meet my needs. This is what I did for my Sovol SV06.

As always, do everything at your own risk. These steps will could be different for your printer and configuration, so use at your own risk.

Setup

@mohitbhoite
mohitbhoite / attiny85-vu-meter.cpp
Created October 2, 2022 03:28
ATtiny85 based VU meter
/*
* ATtiny85 based VU meter
* Author: Mohit Bhoite
* Date: 01 August 2022
*
* Based on original code by Adafruit Industries. Distributed under the BSD license.
* and David Johnson-Davies - www.technoblogy.com
* CC BY 4.0 Licensed under a Creative Commons Attribution 4.0 International license:
* http://creativecommons.org/licenses/by/4.0/
*
// Pipe library demonstrating a concept of chained operations
$fn = 72; // define exact number of fragments in curves
// using $fs instead would cause some mismatched # of edges during tapers
echo(str("For best results, all angles should be multiples of ", 360/$fn, " degrees"));
in = 25.4;
// Example of how to use pipe
// Note that all calls are chained (there's only one semicolon, at the end)
@markusressel
markusressel / esphome_neopixel_clock_effect.yaml
Last active December 23, 2024 12:26
ESPHome configuration example to create an animated clock using the Neopixel 60 LED ring
Moved to https://github.com/markusressel/ESPHome-Analog-Clock