SSH agentをForwardする

~/.ssh/configに以下の記述を追加する
ForwardAgent yes
これで、ログインするとSSH agentがフォーワードされる。 loginすると次のような環境変数が設定されている。
SSH_AUTH_SOCK=/tmp/ssh-6qafmTrfjF/agent.3055

IOMMUグループに含まれるデバイスを知る

/sys/bus/pci/devices/[device id]/iommu_group/devices以下を見ればよい。
$ ls -l /sys/bus/pci/devices/0000\:01\:00.1/iommu_group/devices/       
total 0
0 lrwxrwxrwx 1 root 0 Jan 20 17:25 0000:00:01.0 -> ../../../../devices/pci0000:00/0000:00:01.0
0 lrwxrwxrwx 1 root 0 Jan 20 17:25 0000:01:00.0 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.0
0 lrwxrwxrwx 1 root 0 Jan 20 17:25 0000:01:00.1 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.1

X11でマウスの割当を変更する

まず、マウスの名前を取得。以下の場合、青文字のLogitech M705がターゲット。
$ xinput       
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech M705                             id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Topre Corporation HHKB Professional       id=8    [slave  keyboard (3)]
サイドのボタン(コード8)を真ん中ボタン(コード2)と入れ替えるには、次のようにする
$ xinput set-button-map "Logitech M705" 1 8 3 4 5 6 7 2 9
ちなみに現在の割当を確認するコマンド
$ xinput get-button-map "Logitech M705"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

MacOSのgitでinvalid action developer pathのエラーの対処

gitを使うと以下のエラーが表示された。
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決方法は、以下のコマンドを実行
xcode-select --install