The tmux prefix is `
prefix + j/k/h/l
- move panesprefix + t/z
- zoom current paneprefix + x
- close current paneprefix + c/b
- open new windowprefix + &
- close current windowprefix + ,
- rename current windowprefix + n/Tab
- next windowprefix + p/S-Tab
- previous windowprefix + -
- split window horizontallyprefix + _
- split window verticallyprefix + =
- split window horizontally 70/30prefix + Esc
- enter copy mode, thenEnter
to copyprefix + $
- rename current sessionprefix + q
- kill current session
n(ext)
- Step overs(tep)
- Step intor(eturn)
- Continue until the current function returnsc(ontinue)
- Continue until the next breakpoint is encounteredunt(il) line_number
- Continue until a specific line is encounteredu(p)
- Up one level in the stack traced(own)
- Down one level in the stack traceh(elp)
- Show helpq(uit)
- Quit debugger
b(reak)
- Show all breakpointsb(reak) line_number
- Set a breakpoint at a specific lineb(reak) line_number, condition
- Set a breakpoint at a specific line, if condition is metb(reak) file:line_number
- Set a breakpoint in a file at a specific lineb(reak) func
- Set a breakpoint at the first line of a functiondisable number
- Disable breakpoint numberenable number
- Enable breakpoint numberclear number
- Remove breakpoint number
p(rint) expr
- Print the value of exprw(here)
- Print current position and stack tracel(ist)
- Print 11 lines of code around the current linell(onglist)
- Print the entire code for current function or framea(rgs)
- Print the arguments of the current function
It seems like pip install types-setuptools
is required for package type hints
To create stubs for packages, use pyright --createstub $PACKAGE
To fix agent forwarding, use fixssh
If SSH isn't working on macOS (no identities), use ssh-add --apple-use-keychain
- GPG Quickstart
- GnuPG forwarding setup
- Offline master key
- Mac-specific forwarding setup
- YubiKey commit signing
- YubiKey big guide
gpg --export -a 07F64768955B38A4A934E3D9C5389003AC500A4A | ssh $HOSTNAME 'gpg --import -'
export public keys to remotegpgconf --kill gpg-agent
when remote isn't workinggpg-connect-agent reloadagent /bye
when local agent isn't workinggpg --list-secret-keys --keyid-format=long --with-keygrip
long IDsgpg-connect-agent "delete_key $KEYGRIP" /bye
delete a private subkeygpgconf --list-dir agent-socket
populate SSH config- If
gpg -k
hangs locally, try removing lockfiles at~/.gnupg/*.lock
and~/.gnupg/public-keys.d/*.lock
- On the remote, make sure
SSH_AUTH_SOCK
isn't set (unset SSH_AUTH_SOCK
)
Remember to add StreamLocalBindUnlink yes
to /etc/ssh/sshd_config
You can append !
to get a specific GPG key
Note
If the remote forwarding stops working for whatever reason. Use the following command:
rm $(gpgconf --list-dir agent-socket)
, then reconnect the SSH session