Skip to content

Instantly share code, notes, and snippets.

@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
@hoyhoy
hoyhoy / gist:895bb851efa3b1cffbb424a54cce22e2
Last active September 5, 2025 16:11
llvm-bootstrap-x86_64-apple-darwin24.6.0.sh
#!/opt/bin/bash
set -e
BUILD_DIR=build-$(date +%Y-%m-%d-%I-%M-%S)
# BUILD_DIR=build-2025-04-02-06-18-06
echo BUILD_DIR=${BUILD_DIR}
# BUILD_DIR=build-2024-04-19-01-09-40
# mkdir ${BUILD_DIR}
@hoyhoy
hoyhoy / llvmorg-21.1.0.diff
Created September 1, 2025 19:05
llvmorg on x86_64-apple-darwin24.6.0
diff --git a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
index ca45d7bd2af7..5b04aaf2c2c1 100644
--- a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
+++ b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
@@ -21,7 +21,7 @@ if(APPLE)
set(ARM64 arm64)
set(ARM32 armv7 armv7s armv7k)
set(ARM64_32 arm64_32)
- set(X86_64 x86_64 x86_64h)
+ set(X86_64 x86_64)
@hoyhoy
hoyhoy / build-llvm.sh
Last active December 15, 2024 04:35
Script to Build LLVM 19 on x86_64 macOS 15
#!/bin/sh
set -e
BUILD_DIR=build-$(date +%Y-%m-%d-%I-%M-%S)
echo BUILD_DIR=${BUILD_DIR}
# BUILD_DIR=build-2024-04-19-01-09-40
mkdir ${BUILD_DIR}
LLVM_VERSION_MAJOR=19