Skip to content

Instantly share code, notes, and snippets.

View tomprogers's full-sized avatar

Tom Rogers tomprogers

  • Minneapolis, MN
View GitHub Profile
@tomprogers
tomprogers / ctrl+cmd+down.txt
Created March 25, 2022 18:10
How to fix Ctrl+Cmd+Down noise in Electron-based apps for MacOS
From: https://github.com/atom/atom/issues/1669#issuecomment-135503562
create the following file at `~/Library/KeyBindings/DefaultKeyBinding.dict` (or add these entries to the existing file):
```
{
"^@\UF701" = "noop:";
"^@\UF702" = "noop:";
"^@\UF703" = "noop:";
}
@tomprogers
tomprogers / LOGGING.md
Created August 21, 2022 18:58
Logging guidelines

Log levels

Severity Method Appropriate for
MAX mark() a) Temporary only, while developing; never on master or in production
5 fatal() a) Every uncaught exception
4 error() a) Every throw, swallowed or not
3 warn() a) Any debug or info that contains bad news
2 info() a) Side effects after success; b) task progress; see warn
1 trace() a) Upon entry into every routine, sig & values