Skip to content

Instantly share code, notes, and snippets.

View kalambet's full-sized avatar
👾
The price of freedom is eternal vigilance

Peter Kalambet kalambet

👾
The price of freedom is eternal vigilance
View GitHub Profile
@kmgnd
kmgnd / .zshrc
Last active May 24, 2023 12:10 — forked from bmhatfield/.zshrc
macOS Keychain environment variables
# If you use bash, this technique isn't really zsh specific. Adapt as needed.
source ~/keychain-env.sh
# AWS configuration example, after doing:
# $ keychain-env-add AWS_ACCESS_KEY_ID
# and
# $ keychain-env-add AWS_SECRET_ACCESS_KEY
export AWS_ACCESS_KEY_ID=$(keychain-env-get AWS_ACCESS_KEY_ID);
export AWS_SECRET_ACCESS_KEY=$(keychain-env-get AWS_SECRET_ACCESS_KEY);
@kconner
kconner / macOS Internals.md
Last active May 19, 2024 20:12
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@andrebrait
andrebrait / keychron_linux.md
Last active May 19, 2024 16:00
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 20, 2024 12:37
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: