Skip to content

Instantly share code, notes, and snippets.

View bartman's full-sized avatar
🤓
🏋️‍♂️🥩☕💻ⓒ🦀

Bart Trojanowski bartman

🤓
🏋️‍♂️🥩☕💻ⓒ🦀
View GitHub Profile
@bartman
bartman / Makefile
Last active October 7, 2026 11:36
tuios with screen like keybindings
# git clone https://github.com/Gaurav-Gosain/tuios/
# cd tuios
# make # <--- with this Makefile
# build tuios
all: tuios tuios-web
.PHONY: tuios tuios-web
tuios:
go build -trimpath -ldflags "-s -w -X main.version=dev" -o tuios ./cmd/tuios
@bartman
bartman / omp-braw-wrapper.sh
Last active September 19, 2026 13:42
wrap oh-my-py with bubblewrap
# building up on top of...
# https://gist.github.com/somespecialone/c71c824fd98068b14f825c6df9239091
# thank you @somespecialone
#
# This function should work in zsh and bash.
#
# Like the original, this uses bubblewrap to allow only PWD writes (and those to ~/.omp config)
#
# I also use `--append-system-prompt=` to tell the agent that it's confined so it doesn't complain about writes outside PWD failing.
#
❯ git branch --sort=-committerdate --format='%(HEAD)%(align:28)%(refname:short)%(end) %(color:cyan)%(objectname:short)%(color:reset) %(color:brightblack)🠉%(ahead-behind:HEAD)🠋%(color:reset) %(color:yellow)%(align:13)%(committerdate:relative)%(end)%(color:reset)%(if)%(upstream)%(then) %(color:blue)%(upstream:short)%(color:reset)%(color:magenta)%(upstream:track)%(color:reset)%(end) %(subject) %(color:green)<%(authorname)>%(color:reset)'
*dma-host-bypass f30c5051 🠉0 0🠋 21 hours ago github/dma-host-bypass cleanup bypass::process() functions <Bart Trojanowski>
master 010d1463 🠉0 2🠋 26 hours ago github/master Merge pull request #45 from dma-host-bypass <Bart Trojanowski>
@bartman
bartman / README.md
Last active October 5, 2026 14:48
nvim-0.12-config

This is a clean rewrite of my old nvim config.

git clone https://gist.github.com/bartman/1ce0a21bdb2b4687e1aa6d92cb99f762 bartman-nvim-config

I tried to stick with Neovim builtins that became available in 0.12.

You can copy the files here into ~/.config/nvim/ but replace the __ in filesnames with /. This is a gist, and gists cannot have subdirectories.

@bartman
bartman / one.md
Last active September 4, 2025 16:58
  1. Command and Payload into one region, Status into another
block-beta

columns 2
  block:MM
    IP["InfoPage"]
    EB["ExternalBuff"]
 IB["InternalBuff"]
@bartman
bartman / NOTES.md
Last active June 2, 2025 13:06
zsh option completion broken by uutils-coreutils override [NixOS 25.05]

Here is the change in my config...

 {
   home.packages = with pkgs; [
-    uutils-coreutils
+    (uutils-coreutils.override { prefix = ""; })
   ];
 }
@bartman
bartman / README.md
Last active November 25, 2024 13:06
switching Debian 12 bookworm to Nix and home-manager

intro

I have a Raspberry PI 5 with a freshly installed Debian 12 (using Raspberry PI Imager). I chose the version without a Desktop environment.

NOTE: this is a brand new environment, and I had nothing to retain (like dotfiles, etc).

Ultimately, I pushed this to here: https://github.com/bartman/nix

switching Debian to use Nix

@bartman
bartman / keyboards.md
Last active June 28, 2024 14:08
keyboards I like

Requirements:

  • 60/65% layout (no numpad, no function keys, arrows optional)
  • qmk_firmware support
  • split backspace (split spacebar optional)

My builds:

Hotswap keyboards:

@bartman
bartman / README.md
Last active May 12, 2024 15:07
cpp scripting

want to write scripts in C++? sure you do.

put c-run in your path, then you can write scripts in C++ (or in C).

#!/usr/bin/env c-run
#include <iostream>
int main() {
    std::cout << "hello world\n";
}
@bartman
bartman / debugging.lua
Last active January 30, 2024 19:53
debugging via nvim-dap
-- ~/.config/nvim/lua/plugins/debugging.lua
-- https://github.com/mfussenegger/nvim-dap
-- https://github.com/jay-babu/mason-nvim-dap.nvim
return {
"mfussenegger/nvim-dap",
dependencies = {
"vadimcn/codelldb", -- lldb
"Microsoft/vscode-cpptools", -- gdb
"rcarriga/nvim-dap-ui",