Skip to content

Instantly share code, notes, and snippets.

View bogorad's full-sized avatar

Eugene bogorad bogorad

View GitHub Profile
@bogorad
bogorad / config.yml
Last active June 1, 2025 12:00
current esphome config for m5stack-nano-c6
# radar_entrance.yaml
substitutions:
LOCATION: "entrance"
name: "radar_${LOCATION}"
friendly_name: "radar_${LOCATION}"
<<: !include packages/generic_m5stack-nano-c6.yaml
# !!! When overriding, copy button & light from config!!!
#######################################################
@bogorad
bogorad / generate-host-key.sh
Last active March 5, 2025 09:38
generate-host-key.sh
#!/usr/bin/env bash
set -euo pipefail
# Function to log error and exit
die() {
echo "ERROR: $1" >&2
exit 1
}
# Function for logging with timestamps
@bogorad
bogorad / gist:666544f12a168676b0fb22718a8d7c4d
Created February 3, 2025 21:16
qmk + miryoku + achordion
// Copyright 2022 Manna Harbour
// https://github.com/manna-harbour/miryoku
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdio.h"
#include QMK_KEYBOARD_H
#include "print.h"
#include "manna-harbour_miryoku.h"
@bogorad
bogorad / block-ads-x.js
Last active March 15, 2025 21:22
block x ads, tampermonkey script
// ==UserScript==
// @name Block Ad Elements on Twitter/X
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Block parent elements containing the word "Ad" and monitor dynamic content changes
// @author You
// @match https://twitter.com/i/litst*
// @match https://x.com/i/lists/*
// @match https://x.com/home
// @match https://x.com/*/status