Skip to content

Instantly share code, notes, and snippets.

View d4rn0k's full-sized avatar

Konrad Szwedo d4rn0k

View GitHub Profile
@hl2guide
hl2guide / mpv.conf
Last active November 23, 2025 10:54
MPV config file for Windows 11 in 2025 (https://mpv.io/)
# MPV v3 Config - version 1.5
# Date: 2025-05-08 16:14:44 +1000
# REF: https://github.com/Argon-/mpv-config/blob/master/mpv.conf
# REF: https://github.com/Zabooby/mpv-config
# REF: https://gist.github.com/igv
# ===== SEEKING =====
@rubin110
rubin110 / blinds.yaml
Last active June 16, 2025 23:36
ESPHome blinds with a stepper motor
# ESPHome config to control veneitan style blinds where a stepper motor has been attached to the spinning rod that lits the blinds one direction or other.
# 3D printed model by sidoh:
# https://www.printables.com/model/22186-retrofitted-motor-mount-for-blinds-automation
# Cobble a bunch of code from the designer's config:
# https://github.com/sidoh/esphome/tree/master
# This is setup to use a ULN2003 driver. Also a bit of modification because saving the end_posotion
# value didn't make sense.
#
# If it's not clear, this device is setup with 2 steppers for 2 different sets of blinds, left and right
# Please pay attention to which direction your stepper motor is turning during the intial config
@st4rdog
st4rdog / msi-afterburner-undervolt-how-to.md
Last active March 4, 2026 06:40
MSI Afterburner Voltage Curve Editor Tutorial - Undervolt

Tutorial

  • Start at default curve.
  • Ctrl-click-drag any point in right-half to bend it until a point intersects with desired mhz/voltage.
  • Select point and adjust to perfection using shift-up-down.
  • Shift-click-drag empty space and select points (including selected point) on the right. Selected point should be left-most point.
  • Shift-Enter twice to flatten all points in selection area. They will flatten to match the selected point.
  • Adjust if required.

Controls

@gregmac
gregmac / README.md
Last active August 3, 2025 17:26
esphome ESP32 Water Level Sensor

Sump pit water level sensor

This is an ESPHome configuration for an ESP32 that monitors a sump pump pit, using the ESP32 capacitive touch sensors, with a level being reported to Home Assistant.

ESP32 Wiring

The ESP32 is mounted on a piece of PVC pipe, with wires extending down to different lengths. I used a length of old ethernet cable I had sitting around.

There's also a wire at the bottom connected to the ground pin, and this gives more reliable touch sensor values. The USB32 is powered from USB.

AWSTemplateFormatVersion: '2010-09-09'
Description: Extreme Performance Tuning Benchmark Environment
Parameters:
AmiId:
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2'
@r3mcos3
r3mcos3 / volume_control.yaml
Last active March 25, 2023 01:34
Home Assistant Blueprint For Volume Control
blueprint:
domain: automation
name: Volume Control 2.0
input:
media:
name: Media Players
description: Media players to use
default: []
selector:
target:
@estorgio
estorgio / Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver).md
Last active December 6, 2025 02:38
Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active March 16, 2026 01:07
set -e, -u, -o, -x pipefail explanation
@conoro
conoro / yunmai_protocol.txt
Created March 28, 2017 14:38 — forked from pwnall/yunmai_protocol.txt
Yunmai smart scale (M1301, M1302, M1303) Bluetooth LE protocol notes
Yunmai smart scale (M1301, M1302, M1303) Bluetooth LE protocol notes
Commands are written to GATT attribute 0xffe9 of service 0xffe5. Responses come
as value change notifications for GATT attribute 0xffe4 of service 0xffe0. These
are 16-bit Bluetooth LE UUIDs, so nnnn is 0000nnnn-0000-1000-8000-00805F9B34FB.
-----
Packet Structure

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?