Skip to content

Instantly share code, notes, and snippets.

View bogorad's full-sized avatar

Eugene bogorad bogorad

View GitHub Profile
@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 July 30, 2025 17:01
block x ads, unhide text - tampermonkey script
// ==UserScript==
// @name Twitter/X Ad Hider & Auto-Expander
// @namespace http://tampermonkey.net/
// @version 1.4
// @description Hides promoted tweets (ads) and automatically clicks "Show more" to expand long tweets in the timeline.
// @author Your Name (or alias)
// @match *://*.twitter.com/*
// @match *://x.com/*
// @grant none
// @run-at document-idle