Skip to content

Instantly share code, notes, and snippets.

View derekjkeller's full-sized avatar
🌭

Derek Keller derekjkeller

🌭
View GitHub Profile

Karabiner layouts for symbols and navigation

Gavin Sinclair, January 2022

Introduction

I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.

The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.

@rbutera
rbutera / karabiner.json
Created January 20, 2021 19:50
Karabiner Elements configuration with dual function hyper/escape key
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@rochacbruno
rochacbruno / README.md
Last active August 6, 2025 02:33
Vim Configs and CheatSheet

VIM CheatSheet

Based on configuration provided in .config/nvim/init.vim

Glossary

  • L = Leader Key, mapped to a single space " "
  • C = Control
  • S = Shift
@jclaret
jclaret / Satellite
Last active December 2, 2021 15:56
# Satellite
## Tasks Status
sudo su - postgres -c "psql -d foreman -c 'select label,count(label),state,result from foreman_tasks_tasks where state <> '\''stopped'\'' group by label,state,result ORDER BY label;'"
## Foreman-rake commands - https://access.redhat.com/solutions/1754193
### Cancel Tasks
> foreman-rake console
irb(main):001:0> ForemanTasks::Task.find("799bc5fb-2d4c-4d0d-9d7d-4e42e9a8ace8").destroy
### Synchronize a repository from CDN
@nfsarmento
nfsarmento / nginx-wordpress.conf
Last active November 2, 2025 09:45
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
@sleepyfox
sleepyfox / 2019-07-25-users-hate-change.md
Last active October 25, 2025 18:39
'Users hate change'

'Users hate change'

This week NN Group released a video by Jakob Nielsen in which he attempts to help designers deal with the problem of customers being resistant to their new site/product redesign. The argument goes thusly:

  1. Humans naturally resist change
  2. Your change is for the better
  3. Customers should just get used to it and stop complaining

There's slightly more to it than that, he caveats his argument with requiring you to have of course followed their best practices on product design, and allows for a period of customers being able to elect to continue to use the old site, although he says this is obviously only a temporary solution as you don't want to support both.

@flyemsafe
flyemsafe / gist:8be5a767f011955f49c4887928817d4b
Last active November 12, 2020 07:34
Setup OpenShift 3.11 Satellite
  • Set Environment Variables
ARCH="x86_64"
TYPE="app"
LC_ENVS="Testing Production"
ORG=ACME
SAT_VER="6.4"
CV_PRODUCT="openshift"
CV="cv-${TYPE}-${CV_PRODUCT}"
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active November 2, 2025 23:00
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.github.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@benformosa
benformosa / satellite_backup_estimate.sh
Last active November 12, 2020 07:25
Estimate the size of a Red Hat Satellite backup
#!/usr/bin/bash
set -o errexit # -e
set -o pipefail
# Estimate the size of a Red Hat Satellite backup
# Based on https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/administering_red_hat_satellite/chap-red_hat_satellite-administering_red_hat_satellite-backup_and_disaster_recovery#sect-Red_Hat_Satellite-Administering_Red_Hat_Satellite-Backing_up_Satellite_Server_or_Capsule_Server-Estimating_the_Size_of_a_Backup
# Author: Ben Formosa
# Copyright 2018, Commonwealth of Australia