I hereby claim:
- I am jjc1138 on github.
- I am jjc1138 (https://keybase.io/jjc1138) on keybase.
- I have a public key whose fingerprint is 04F1 3A87 F4B0 1A4A 614D E539 7287 96CB FA8A 09DB
To claim this, I am signing this object:
#!/bin/bash -e | |
for nvme_device_name in `lsblk | cut --delimiter=" " --fields=1 | grep ^nvme | sort -n`; do | |
nvme_device="/dev/${nvme_device_name}" | |
if ( nvme id-ctrl "${nvme_device}" | grep --quiet "^mn\\s*:\\s*Amazon EC2 NVMe Instance Storage\\s*$" ); then | |
echo "${nvme_device}" | |
fi | |
done |
fileprivate extension Array { | |
func filterIntoTrueAndFalse(_ shouldBeIncludedInFirstResult: (Element) throws -> Bool) rethrows -> ([Element], [Element]) { | |
var trueResults = [Element]() | |
var falseResults = [Element]() | |
for i in self { | |
if try shouldBeIncludedInFirstResult(i) { | |
trueResults.append(i) | |
} else { | |
falseResults.append(i) |
I hereby claim:
To claim this, I am signing this object: