Skip to content

Instantly share code, notes, and snippets.

View max-mykhailenko's full-sized avatar
🚩
In remote work we trust

Max Mykhailenko max-mykhailenko

🚩
In remote work we trust
View GitHub Profile
@max-mykhailenko
max-mykhailenko / REMAP_M1_KEYS.MD
Created April 14, 2023 18:28 — forked from zats/REMAP_M1_KEYS.MD
Apple M1 MacBook Do Not Disturb Key remapping

Following is a sample of LaungAgent that remaps do not disturb key to Siri (I am using Type to Siri)

This is a lightweight solution not relying on external apps.

Setting up

  1. Create ~/Library/LaunchAgents/com.local.KeyRemapping.plist
  2. Edit it to have following content
@max-mykhailenko
max-mykhailenko / t.sh
Created April 8, 2016 17:29 — forked from wesbos/t.sh
# Put this in your .zshrc or .bashrc file
# Install `tree` first — brew install tree
function t() {
# Defaults to 3 levels deep, do more with `t 5` or `t 1`
# pass additional args after
tree -I '.git|node_modules|bower_components|.DS_Store' --dirsfirst --filelimit 15 -L ${1:-3} -aC $2
}