Skip to content

Instantly share code, notes, and snippets.

View davidspry's full-sized avatar

David Spry davidspry

  • Ballarat, Australia.
View GitHub Profile
@davidspry
davidspry / fold.hpp
Created June 4, 2025 11:44
Generic reduction functions amenable to inlining
#pragma once
#include <concepts>
#include <cstddef>
#include <functional>
#include <type_traits>
#include <utility>
/// Right-fold reduce N successive invocations of the given object.
///
eval "$(/opt/homebrew/bin/brew shellenv)"
# Fuzzy Finder
source <(fzf --zsh)
# VCPKG
export VCPKG_ROOT="$HOME/.vcpkg"
export VCPKG_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
# LLVM, GCC
alias ls='eza'
alias la='eza -a'
alias ll='eza -l'
function upm()
{
# Homebrew
brew update
brew upgrade
brew upgrade --cask --greedy
@davidspry
davidspry / settings.jsonc
Last active May 14, 2025 12:51
Zed configuration
{
"theme": "Kanagawa Wave",
"icon_theme": "JetBrains New UI Icons (Dark)",
// UI Font
"ui_font_family": "Inter",
"ui_font_size": 14,
// Buffer Font
"buffer_font_family": "JetBrains Mono",
@davidspry
davidspry / config.toml
Last active March 3, 2025 06:50
Helix configuration
theme = "github_dark_high_contrast"
[editor]
true-color = true
line-number = "absolute"
mouse = true
auto-completion = true
[editor.cursor-shape]
insert = "bar"
@davidspry
davidspry / config
Last active March 3, 2025 06:51
Ghostty configuration
# Theme
theme = Github-Dark-High-Contrast
# Font
font-family = "JetBrains Mono"
font-size = 12
font-thicken
# Window
window-padding-x = 10
@davidspry
davidspry / .wezterm.lua
Last active January 12, 2025 05:15
Wezterm configuration for macOS
-- Wezterm configuration for macOS
local wezterm = require 'wezterm'
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- Theme
config.color_scheme = 'Catppuccin Mocha'