aboutsummaryrefslogtreecommitdiff
path: root/extra.html
blob: 963c4529f89bdf7ee45e6b4b92339672d9eaab7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<html lang="en">
  <head>
    <title>Extra Extra</title>
    <link rel="stylesheet" href="style.css">
    <style>
    code {
      border: 1px solid grey;
      border-radius: 3px;
      color: #434C5E;
      padding: 1.5px;
    }
    pre {
      background: #f4f4f4;
      border: 1px solid #grey;
      color: #434C5E;
      padding-top: 20px;
      padding-left: 20px;
      overflow: auto;
    }
    </style>
  </head>
  <body>
    <h2>Some bits & bobs</h2>
    Here lives some miscellaneous things I reference one or one hundred
    times and figure they should be gathered somewhere.
    <h3>wpa_supplicant</h3>
    Frequently forgotten usage of the <code>wpa_cli</code> tool
    <pre>
> 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
    </pre>
    <h3>GPG key signing with Git</h3>
    Sometime ago I spent hours on a new system on this. When signing a
    commit, this error would appear
    <pre>
gpg: skipped "Foo Bar <Foo_Bar@baz>": No secret key[GNUPG:] INV_SGNR 9 Foo Bar <Foo_Bar@baz>[GNUPG:] FAILURE sign 17
gpg: signing failed: No secret key
    </pre>
    After much searching I came up empty handed. Finally, one thing
    stood out. The name and email in <code>~/.gitconfig</code> must
    match exactly to the name and email associated with the GPG key
    <pre>
$ gpg --list-secret-keys --keyid-format=long
/home/foo/.gnupg/pubring.kbx
-----------------------------
sec   rsa4096/FC53C827D09C7050 2019-03-24 [SC]
      ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
uid                 [ultimate] Foo Bar <Foo_Bar@baz>
ssb   rsa4096/2EE67124D597BB00 2019-03-24 [E]

$ head -n 4 .gitconfig
[user]
	name = Foo Bar
	email = Foo_Bar@baz
	signingkey = FC53C827D09C7050
    </pre>
  </body>
</html>