Some bits & bobs
Here lives some miscellaneous things I reference one or one hundred
times and figure they should be gathered somewhere.
wpa_supplicant
Frequently forgotten usage of the wpa_cli
tool
> scan
...
<3>CTRL-EVENT-SCAN-RESULTS
> scan_results # run once above event appears
bssid / freq / sig lvl / flags / ssid
...
> add_network
#
> set_network # ssid "my network"
> set_network # psk "my psswd"
# or if no password:
> set_network # key_mgmt NONE
> enable_network #
> save_config
GPG key signing with Git
Sometime ago I spent hours on a new system on this. When signing a
commit, this error would appear
gpg: skipped "Foo Bar ": No secret key[GNUPG:] INV_SGNR 9 Foo Bar [GNUPG:] FAILURE sign 17
gpg: signing failed: No secret key
After much searching I came up empty handed. Finally, one thing
stood out. The name and email in ~/.gitconfig
must
match exactly to the name and email associated with the GPG key
$ gpg --list-secret-keys --keyid-format=long
/home/foo/.gnupg/pubring.kbx
-----------------------------
sec rsa4096/FC53C827D09C7050 2019-03-24 [SC]
ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
uid [ultimate] Foo Bar
ssb rsa4096/2EE67124D597BB00 2019-03-24 [E]
$ head -n 4 .gitconfig
[user]
name = Foo Bar
email = Foo_Bar@baz
signingkey = FC53C827D09C7050