Tried moving my Documents/Desktop/Music/etc folders to a Google Drive mounted via Drive File Stream. Seemed to work well at first, but after the first reboot Windows clearly wasn’t happy and kept complaining about not finding the Desktop or the Documents…
Possibly because that drive seems to be mounted a bit too slowly (i.e. happens a bit after one has logged in)? And/or because it’s just mounted in a way Windows doesn’t like?
When connecting my headphones via a simple USB-plug, the audio levels are often way, way, too loud. Today I had to turn the volume all the way down to 2% for the audio just to be OK’ish. That’s not very usable, and also kind of scary…
Open up “C:\Program Files\EqualizerAPO\config\config.txt”
Replace its contents with:
Preamp: -30 dB
And adjust that level as necessary…
Now I can finally use the volume bar in Windows, and the volume media keys on my keyboard properly. And no longer do I need to be afraid of suddenly having my eardrums shattered if the audio were to move a percentage or two… or, even worse, reset to max…
Needed to convert several SVGs to PNG, and discovered the free Inkscape easily can be used in batch scripts.
The following .bat file will convert all SVGs dropped on it to a PNG with height 48 placed next to the original SVG. More options can be found in the Inkscape manual.
Find the long id of the Signing key we want to use:
🔶 > gpg --edit-key alice
gpg (GnuPG) 2.0.30; Copyright (C)2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
pub 4096R/AA79CCAE created: 2017-08-23 expires: never usage: SC
trust: ultimate validity: ultimate
sub 4096R/62275E24 created: 2017-08-23 expires: never usage: S 👈
sub 4096R/4AEA9524 created: 2017-08-23 expires: never usage: E [ultimate](1). Alice Person (alice)<alice.person@example.com> [ultimate](2) Alice Person (alice)<alice@example.org>
🔶 gpg> quit
🔶 > gpg --list-secret-keys--keyid-format LONG alice
sec 4096R/8C0BBECBAA79CCAE 2017-08-23
uid Alice Person (alice)<alice.person@example.com>
uid Alice Person (alice)<alice@example.org>
ssb 4096R/6ADB9D4262275E24 2017-08-23 👈
ssb 4096R/33F2E1644AEA9524 2017-08-23
Note: So in this case we want 6ADB9D4262275E24
Configure git and (optionally) make it sign commits and tags by default:
Note: If not using commit.gpgsign true, one can also use -S to explicitly sign a commit.
Verify commit was signed:
🔷 >git log--show-signature
commit 2814856365a07b3deb374f1337258102c06b77ef
gpg: Signature made 08/23/17 06:18:50 W. Europe Daylight Time^M
gpg: using RSA key 6ADB9D4262275E24^M
gpg: Good signature from "Alice Person (alice) <alice.person@example.com>"[ultimate]^M
gpg: aka "Alice Person (alice) <alice@example.org>"[ultimate]^M
Author: Alice Person <alice.person@example.com>
Date: Wed Aug 23 06:18:482017 +0200
Signed commit
Add a signed tag, using -s:
🔶 >git tag v1 -m"Signed tag"
Note: If not using tag.forceSignAnnotated true, one can also use -s to explicitly sign a tag.
Verify tag was signed:
🔷 >git tag-v v1
gpg: Signature made 08/23/17 06:34:18 W. Europe Daylight Time
gpg: using RSA key 6ADB9D4262275E24
gpg: Good signature from "Alice Person (alice) <alice.person@example.com>"[ultimate]
gpg: aka "Alice Person (alice) <alice@example.org>"[ultimate]
object 53e7f2e637eaf3c47b5dcad30b57be7b6829be02 type commit
tag v1
tagger Alice Person <alice.person@example.com>1503462856 +0200
🔶 $ gpg --gen-key
gpg (GnuPG) 2.0.30; Copyright (C)2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want: (1) RSA and RSA (default) (2) DSA and Elgamal (3) DSA (sign only) (4) RSA (sign only)
🔶 Your selection? 4
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)4096
Requested keysize is 4096 bits
Please specify how long the key should be valid. 0 = key does not expire <n> = key expires in n days <n>w = key expires in n weeks <n>m = key expires in n months <n>y = key expires in n years
🔶 Key is valid for? (0)0
Key does not expire at all
🔶 Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
🔶 Real name: Alice Person
🔶 Email address: alice.person@example.com
🔶 Comment: alice
You selected this USER-ID: "Alice Person (alice) <alice.person@example.com>"
🔶 Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
You need a Passphrase to protect your secret key.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: key AA79CCAE marked as ultimately trusted
public and secret key created and signed.
gpg: checking the trustdb
gpg: public key of ultimately trusted key AA77EE54 not found
gpg: 3 marginal(s) needed, 1complete(s) needed, PGP trust model
gpg: depth: 0 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 2u
pub 4096R/AA79CCAE 2017-08-23
Key fingerprint = 98A1 5DD0 0653 55BB 3358 B35C 8C0B BECB AA79 CCAE
uid [ultimate] Alice Person (alice)<alice.person@example.com>
Note that this key cannot be used for encryption. You may want to use
the command"--edit-key" to generate a subkey for this purpose.
Open the key for editing:
🔶 $ gpg --edit-key alice
gpg (GnuPG) 2.0.30; Copyright (C)2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
pub 4096R/AA79CCAE created: 2017-08-23 expires: never usage: SC
trust: ultimate validity: ultimate [ultimate](1). Alice Person (alice)<alice.person@example.com>
(Optionally) Add other user ids, and set the right one as primary:
🔷 gpg> adduid
🔷 Real name: Alice Person
🔷 Email address: alice@example.org
🔷 Comment: alice
You selected this USER-ID: "Alice Person (alice) <alice@example.org>"
🔷 Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
You need a passphrase to unlock the secret key for
user: "Alice Person (alice) <alice.person@example.com>" 4096-bit RSA key, ID AA79CCAE, created 2017-08-23
pub 4096R/AA79CCAE created: 2017-08-23 expires: never usage: SC
trust: ultimate validity: ultimate [ultimate](1) Alice Person (alice)<alice.person@example.com> [ unknown](2). Alice Person (alice)<alice@example.org>
# Select one of them
🔷 gpg> uid 1
pub 4096R/AA79CCAE created: 2017-08-23 expires: never usage: SC
trust: ultimate validity: ultimate [ultimate](1)* Alice Person (alice)<alice.person@example.com> [ unknown](2). Alice Person (alice)<alice@example.org>
🔷 gpg> primary
You need a passphrase to unlock the secret key for
user: "Alice Person (alice) <alice.person@example.com>" 4096-bit RSA key, ID AA79CCAE, created 2017-08-23
pub 4096R/AA79CCAE created: 2017-08-23 expires: never usage: SC
trust: ultimate validity: ultimate [ultimate](1)* Alice Person (alice)<alice.person@example.com> [ unknown](2) Alice Person (alice)<alice@example.org>
Add subkeys for signing and encryption:
🔶 gpg> addkey
Key is protected.
You need a passphrase to unlock the secret key for
user: "Alice Person (alice) <alice.person@example.com>" 4096-bit RSA key, ID AA79CCAE, created 2017-08-23
Please select what kind of key you want: (3) DSA (sign only) (4) RSA (sign only) (5) Elgamal (encrypt only) (6) RSA (encrypt only)
🔶 Your selection? 4
RSA keys may be between 1024 and 4096 bits long.
🔶 What keysize do you want? (2048)4096
Requested keysize is 4096 bits
Please specify how long the key should be valid. 0 = key does not expire <n> = key expires in n days <n>w = key expires in n weeks <n>m = key expires in n months <n>y = key expires in n years
🔶 Key is valid for? (0)0
Key does not expire at all
🔶 Is this correct? (y/N) y
🔶 Really create? (y/N) y
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
pub 4096R/AA79CCAE created: 2017-08-23 expires: never usage: SC
trust: ultimate validity: ultimate
sub 4096R/62275E24 created: 2017-08-23 expires: never usage: S [ultimate](1)* Alice Person (alice)<alice.person@example.com> [ unknown](2) Alice Person (alice)<alice@example.org>
🔶 gpg> addkey
Key is protected.
You need a passphrase to unlock the secret key for
user: "Alice Person (alice) <alice.person@example.com>" 4096-bit RSA key, ID AA79CCAE, created 2017-08-23
Please select what kind of key you want: (3) DSA (sign only) (4) RSA (sign only) (5) Elgamal (encrypt only) (6) RSA (encrypt only)
🔶 Your selection? 6
RSA keys may be between 1024 and 4096 bits long.
🔶 What keysize do you want? (2048)4096
Requested keysize is 4096 bits
Please specify how long the key should be valid. 0 = key does not expire <n> = key expires in n days <n>w = key expires in n weeks <n>m = key expires in n months <n>y = key expires in n years
🔶 Key is valid for? (0)0
Key does not expire at all
🔶 Is this correct? (y/N) y
🔶 Really create? (y/N) y
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
pub 4096R/AA79CCAE created: 2017-08-23 expires: never usage: SC
trust: ultimate validity: ultimate
sub 4096R/62275E24 created: 2017-08-23 expires: never usage: S
sub 4096R/4AEA9524 created: 2017-08-23 expires: never usage: E [ultimate](1)* Alice Person (alice)<alice.person@example.com> [ unknown](2) Alice Person (alice)<alice@example.org>
sec 4096R/AA79CCAE 2017-08-23 Alice Person (alice)<alice.person@example.com>
Create a revocation certificate for this key? (y/N) y
Please select the reason for the revocation: 0 = No reason specified 1 = Key has been compromised 2 = Key is superseded 3 = Key is no longer used
Q = Cancel (Probably you want to select1 here)
🔶 Your decision? 1
Enter an optional description; end it with an empty line:
🔶 >
Reason for revocation: Key has been compromised (No description given)
🔶 Is this okay? (y/N) y
You need a passphrase to unlock the secret key for
user: "Alice Person (alice) <alice.person@example.com>" 4096-bit RSA key, ID AA79CCAE, created 2017-08-23
Revocation certificate created.
Please move it to a medium which you can hide away; if Mallory gets
access to this certificate he can use it to make your key unusable.
It is smart to print this certificate and store it away, just incase
your media become unreadable. But have some caution: The print system of
your machine might store the data and make it available to others!