Skip to content

Instantly share code, notes, and snippets.

View BrainWart's full-sized avatar

Cody McGinnis BrainWart

View GitHub Profile
@BrainWart
BrainWart / configuration.nix
Created September 26, 2022 02:40
Crostini NixOS LXC Configuration
{ config, modulesPath, pkgs, ... }:
{
imports = [
(modulesPath + "/virtualisation/lxc-container.nix")
];
services.openssh.enable = true;
programs.xwayland.enable = true;
@BrainWart
BrainWart / mk-book.sh
Last active June 7, 2022 11:33
This script will take the markdown files in a folder, allow you to order them, and then it will replace the file links with the chapter number.
#!/bin/bash
# Create a temporary directory for storing files
TMP=$(mktemp -d -t tmp.XXXXXXXXX)
function finish {
rm -rf $TMP
}
trap finish EXIT
@BrainWart
BrainWart / launch.json
Created March 2, 2021 19:25
ZMK Pick Test to debug
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/app/build/tests/${input:testName}/zmk.exe",
"args": [],
"stopAtEntry": false,
<!DOCTYPE html>
<html>
<head>
<title>Testing</title>
<style>
* {
margin: 0;
padding: 0;
font-family: sans-serif;
}
#define DEFAULT 0
// ---------------------------------------------------------------------------------------------------------------------------------
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | \ |
// | *TEXT | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHIFT | Z | X | C | V | B | HOME | END | | PGDN | PGUP | N | M | , | . | / | SHIFT |
// | GUI | [ | ] | BKSP | DEL | | RET | SPACE | ` | &NUMS | R-ALT |
#define LAYER_NUMS 1
// ---------------------------------------------------------------------------------------------------------------------------------
// | F11 | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F12 |
@BrainWart
BrainWart / out.txt
Created August 20, 2020 14:58
west build error log
-- west build: making build dir /mnt/d/source/zmk/app/build/left pristine
-- west build: generating a build system
-- ZMK Config directory: ../../zmk-config/config
-- Board: nice_nano, /mnt/d/source/zmk/app/boards/arm/nice_nano, kyria_left, kyria
-- ZMK Config Kconfig: ../../zmk-config/config/kyria.conf
-- Using keymap file: ../../zmk-config/config/kyria.keymap
-- Using keymap file: ../../zmk-config/config/kyria.keymap
Including boilerplate (Zephyr base): /mnt/d/source/zmk/zephyr/cmake/app/boilerplate.cmake
-- Application: /mnt/d/source/zmk/app
-- Zephyr version: 2.3.0 (/mnt/d/source/zmk/zephyr)