Skip to content

Instantly share code, notes, and snippets.

@hoyhoy
hoyhoy / ssh_config
Last active July 12, 2026 17:42
SSH Port Forwarding Claptraps for Ruined
Host rhel10-z15
Hostname xxxxxxxx # rhel10 on a z15 (s/390) if you even care
User hoyhoy
ServerAliveInterval 15
# VM running the VPN
ProxyJump jumpbox.local
IdentitiesOnly yes
@hoyhoy
hoyhoy / memoized_cache.cpp
Last active July 11, 2026 18:40
Memoized Cache
#include <cerrno> // Provides ENOENT
#include <mutex>
#include <shared_mutex>
#include <string>
#include <unordered_map>
namespace CodingExamples {
class Cache {
private:
@hoyhoy
hoyhoy / .clang-tidy
Last active June 25, 2026 16:37
.clang-tidy
Checks: '*,
-altera*,
-boost-use-ranges,
-bugprone-easily-swappable-parameters,
-bugprone-reserved-identifier,
-cert-dcl03-c,
-cert-dcl37-c,
-cert-dcl51-cpp,
-cert-err34-c,
-clang-analyzer-security.ArrayBound,
@hoyhoy
hoyhoy / config.jsonc
Last active April 30, 2026 22:44
~/.config/fastfetch/config.jsonc
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"padding": {
"top": 1
}
},
"display": {
"separator": " 󰑃 "
},
@hoyhoy
hoyhoy / flake.nix
Created March 23, 2026 21:10
Nix-darwin Flake for Conan Build
{
description = "Meson nix-darwin system flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:nix-darwin/nix-darwin/master";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
# home-manager = {
# url = "github:nix-community/home-manager/nixpkgs-unstable";
@hoyhoy
hoyhoy / .ghostty-config
Created March 12, 2026 21:11
Ghostty Config, if you even care...
# Font settings
# font-family = "JetBrainsMono NFM"
font-size = 14
adjust-cell-height = 8%
adjust-cell-width = 8%
font-style-bold = "Heavy"
font-synthetic-style = true
bold-is-bright = true
# Enable font features that might help with bold
@hoyhoy
hoyhoy / brave.nix
Created February 24, 2026 07:18
Sane Defaults for Brave on NixOS
{ config, pkgs, ... }:
{
programs.chromium = {
extensions = [
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
"mnjggcdmjocbbbhaepdhchncahnbgone" # sponsor block
"kceglpglilklghkgofolieongaolnaob" # cookie auto delete
];
@hoyhoy
hoyhoy / llvm.nix
Created January 29, 2026 20:43
Flake for LLVM Build
{
description = "LLVM Build Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
@hoyhoy
hoyhoy / conan.ps1
Last active December 3, 2025 23:11
PS1 Script to Generate the Conan settings.yml from a Developer Powershell for VS 2022 or VS 2026
# Get the value of the VSCMD_VER environment variable
$vsCmdVersion = $env:VSCMD_VER
# Check if VSCMD_VER is set
if (-not $vsCmdVersion) {
Write-Host "Error: VSCMD_VER environment variable is not set or is empty." -ForegroundColor Red
exit 1
}
# Extract the major and minor version (e.g., "17.13" from "17.13.2")
@hoyhoy
hoyhoy / llvm_two_stage_build.sh
Last active April 19, 2026 10:35
LLVM 22.1.3 Two Stage Build Script for MacOS 15.7
#!/usr/bin/env bash
# Bash script to complile LLVM
# @hoyhoy
# 11/18/2025
# Installs to /opt/llvm-${LLVM_VERSION} i.e. /opt/llvm-21.1.6
# and then symbolically link /opt/llvm-latest to /opt/llvm-21.1.6