- Listen to the expert in their field. When Carmen the cardiac surgeon tells me I need to get more aerobic exercise, I pay attention. She knows more about my heart than I do.
- Don't listen to the expert outside of their field. My cardiac surgeon doesn't know any more about designing computers than anybody else off the street.
- Choose the more educated expert. If the cardiac nurse tells me to run 3 miles a week, I'll do 3. If the surgeon says to run 5, then I'll do 5.
- Choose the more specialized expert. My family doctor has good advice on keeping my heart healthy, but not as good as the cardiac surgeon's advice.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package memoize | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// fptr is a pointer to a function variable which will receive a | |
// memoized wrapper around function impl. Impl must have 1 or more | |
// arguments, all of which must be usable as map keys; and it must |
I hereby claim:
- I am cjyar on github.
- I am cjyar (https://keybase.io/cjyar) on keybase.
- I have a public key ASBkC_tdKZtXzyLoSbGgLcRW9fprOPKQHKijFOSU64mMXQo
To claim this, I am signing this object:
You can have many different levels of security with PGP. For lots of people, keeping your master key on your computer is good enough, and it's better than no PGP at all. But this guide is my max-security PGP setup. Here are the threats and mitigations that I'm concerned with:
- Quantum cracking: It's likely that someday people will be able to crack RSA and DSA keys using quantum computers. ECC keys are likely also crackable, but can be faster, shorter, and possibly more secure. There's some controversy about which type of ECC keys to use; I settled on Curve 25519.
- Key reuse: It's a bad idea to reuse your encryption key for signing. (It's safe with current algorithms, but it
Before starting, make sure you have a backup, and make sure to have a linux live boot ready to rescue your system. It's easy to mess this up!
- Use gdisk to convert the partition table to GPT.
gdisk /dev/sda
- Create the "BIOS boot" partition that GRUB needs.
n
to create a new partition. Needs to be about 1MB. You can probably squeeze this in from sectors 34-2047. UseL
orl
to look up the code for "BIOS boot" (ef02). - Write the new partition table.
w
- Reload the partition table.
>
partprobe /dev/sda