Skip to content

Instantly share code, notes, and snippets.

@cdarwin
cdarwin / config.kbd
Created June 24, 2022 21:19
Minimal Kmonad config with homerow mods
;; sudo /Users/crd/usr/local/bin/kmonad /Users/crd/workspace/github.com/qmk/qmk_firmware/users/crd/config.kbd
(defcfg
;; For Linux
;; input (device-file "/dev/input/by-id/usb-04d9_daskeyboard-event-kbd")
;; output (uinput-sink "My KMonad output"
;; For Windows
;; input (low-level-hook)
;; output (send-event-sink)
[vagrant@fedora32 app]$ pwd
/vagrant/app
[vagrant@fedora32 app]$ ls
boards build cmake CMakeLists.txt drivers dts include Kconfig src west.yml
[vagrant@fedora32 app]$ west build -b proton_c -- -DSHIELD=kyria_left -DKEYMAP=default
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): /vagrant/zephyr/cmake/app/boilerplate.cmake
-- Application: /vagrant/app
-- Zephyr version: 2.3.0 (/vagrant/zephyr)
-- Board: proton_c
@cdarwin
cdarwin / dz60.json
Created July 28, 2019 16:15
DZ60 Tsangan for QMK Configurator
{"keyboard":"dz60","keymap":"dz60_default","layout":"LAYOUT_60_tsangan","layers":[["KC_GESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_BSPC","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_BSLS","KC_LCTL","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_ENT","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","MO(1)","KC_LCTL","KC_LALT","KC_LGUI","KC_SPC","KC_LGUI","KC_RALT","KC_RCTL"],["KC_GRV","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_UP","KC_NO","KC_NO","KC_NO","KC_VOLD","KC_VOLU","KC_MUTE","KC_NO","KC_NO","KC_NO","KC_NO","KC_HOME","KC_PGUP","KC_LEFT","KC_RGHT","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_NO","KC_END","KC_PGUP","KC_DOWN","KC_NO",
@cdarwin
cdarwin / .Xresources
Created October 21, 2018 15:33
ThinkPad Loonux Configs
URxvt.intensityStyles: false
!URxvt.font: xft:Hack:pixelsize=24:antialias=true
!URxvt.font: xft:Hack:pixelsize=18:antialias=true
URxvt.font: xft:DejaVu Sans Mono:pixelsize=24:antialias=true
URxvt.letterSpace: -1
URxvt.scrollBar: false
! 1.5x
Xft.dpi: 144
@cdarwin
cdarwin / README.md
Last active April 2, 2020 05:30
docker-compose vs. docker.compose-ng

This gist intends to compare setting up a docker registry with docker-compose and the proposed docker.compose-ng formula to be merged upstream.

docker-compose

This section describes standing up a docker registry using the docker-compose command line tool.

Spin up the docker-compose testing envinronment using the included Vagrantfile. After salt bootstrap provisioning, this uses salt-call and the docker.compose formula to install and configure the environment enabling use of the docker-compose tool. It then uses the docker-compose tool and the included docker-compose.yml document to set up a docker registry service container including a data only volume container for persistant storage. Using the included test script, inspect the environment and save the output for later comparrison. Finally, clean up the test environment.

luser@lolcathost:~$ v
@cdarwin
cdarwin / beatbox.sh
Created August 21, 2014 00:08
Beat Box
#!/usr/bin/env bash
while true
do
for beat in "boots" "cats"
do
echo -n "${beat} and "
done
done
@cdarwin
cdarwin / dups.md
Last active January 3, 2016 22:49
Obviously, replace FILE with the interesting filename.
$ tree
.
├── bar
│   └── baz
├── file_baz
└── foo
    ├── bar
    │   ├── baz
 │ │ └── file_foo
@cdarwin
cdarwin / index.md
Created July 18, 2012 23:40
Testing out gist.io
@cdarwin
cdarwin / datadog_aggregation_test.rb
Created June 4, 2012 23:43
Trying aggregation_key
message = "[#{project.name}] #{message}"
dog = Dogapi::Client.new(project.datadog_api_key)
dog.emit_event(Dogapi::Event.new(message,
:msg_title => host,
:aggregation_key => project.name
), :host => host)