Skip to content

Instantly share code, notes, and snippets.

@dreikanter
dreikanter / nuphy-air75-v2.md
Last active March 15, 2026 20:15
NuPhy Air75 V2 Hotkeys

NuPhy Air75 V2 Hotkeys

System

Combo Action
Toggle on back Win / Mac mode switch

Connection

@dreikanter
dreikanter / 20260314_9246_dotfiles-research.md
Last active March 14, 2026 11:41
Dotfiles Management Research

Dotfiles Management Research

Tools Landscape

Tool Stars Symlinks Copies Templates Multi-machine Dependencies Complexity
chezmoi 18.5k No Yes Yes (Go) Yes Go binary Medium
dotbot 7.8k Yes No No Via profiles Python Low
yadm 6.2k No In-place Yes Yes (alts) Git + Bash Low
rcm 3.2k Yes No No Yes (tags) Shell Low
@dreikanter
dreikanter / input-source-switching.json
Created August 27, 2025 18:03
Karabinier-Elements idempotent hotkeys configuration for switching between two keyboard layouts
{
"description": "Use idempotent hotkeys to switch between two keyboard layouts",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": ["left_command", "left_option"],
"optional": ["any"]
}
@dreikanter
dreikanter / README.md
Created June 15, 2022 14:04
A script to extract hashtags from stdin

Usage example:

echo "#banana #banana #ololo #un_der-sco_re #по-русски #123" | ./extract_hashtags
#123
#banana
#ololo
#un_der-sco_re
#по-русски
@dreikanter
dreikanter / github_backup.md
Last active June 5, 2024 00:00
Keep your 🧳 together

Create Github access token: https://github.com/settings/tokens

Setup backup tool:

pip3 install github-backup

export GITHUB_BACKUP_TOKEN=ghp_bananabananabananabananabananabanana
export GITHUB_BACKUP_USER=dreikanter
export GITHUB_BACKUP_PATH=~/github-backup/$GITHUB_BACKUP_USER
@dreikanter
dreikanter / init.lua
Last active December 11, 2021 20:41
~/.hammerspoon/init.lua
-- hs.hotkey.bind({"cmd", "shift"}, "1", function()
-- hs.keycodes.setLayout("English - Ilya Birman Typography")
-- end)
-- hs.hotkey.bind({"cmd", "shift"}, "2", function()
-- hs.keycodes.setLayout("Russian - Ilya Birman Typography")
-- end)
hs.hotkey.bind({"cmd", "alt"}, "1", function()
hs.keycodes.setLayout("English - Ilya Birman Typography")
@dreikanter
dreikanter / purge_rubocop_todo.rb
Created November 16, 2019 19:25
purge_rubocop_todo.rb
require 'yaml'
data = YAML.load_file('.rubocop_todo.yml')
data.each do |cop, options|
excludes = options['Exclude']
next unless excludes
next if excludes.empty?
data[cop]['Exclude'] = excludes.select do |path|
@dreikanter
dreikanter / keybase.md
Last active October 1, 2019 13:39
keybase.md

Keybase proof

I hereby claim:

  • I am dreikanter on github.
  • I am dreikanter (https://keybase.io/dreikanter) on keybase.
  • I have a public key ASDcuPip3Eglyl-q1S2l3xSMsVqRjw2h788AmWPn3FCK8Ao

To claim this, I am signing this object:

@dreikanter
dreikanter / monads.rb
Last active August 19, 2019 15:17
Trying dry-monads
# #fmap - bypass Failure object, or return Success(result)
# #bind - bypass Failure object, or return result
require 'dry/monads'
require 'dry/monads/do'
class SequenceExecutor
include Dry::Monads[:result]
# This will prepend the class with a module, bypassinf a block to #call