# setup gpg
brew install gpg # alternatively, install GPGTools - https://gpgtools.org/
# import your friend's public key
gpg --recv-keys 55418814 --keyserver pgp.mit.edu
# encrypt your stuff
gpg --encrypt --output secretfile.txt.gpg --recipient 55418814 secretfile.txt
# mail it with love
This file contains 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
for i in {1..8}; do aws ec2 create-volume --availability-zone us-east-1d --size 128 --output text >> _disks; done | |
(i=0; for d in `awk '{print $4}' _disks`; do i=$((i + 1)); aws ec2 create-tags --resources ${d} --tags '{"key":"Name", "value": "_disks"}'; aws ec2 attach-volume --instance-id i-xxxxxxxx --volume-id ${d} --device /dev/sdg${i}; done) |
This file contains 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
#!/bin/bash -ex | |
for i in {f..m}; do | |
VOLID=$(aws ec2 create-volume --availability-zone us-east-1a --iops 1000 --size 640 --volume-type io1 | grep -o vol-\\\w\\+) | |
aws ec2 create-tags --resources $VOLID --tags Key=Name,Value=xxxxxxxx | |
aws ec2 attach-volume --device /dev/sd${i} --instance-id i-xxxxxxxx --volume-id $VOLID | |
done |
This file contains 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
#!/usr/bin/perl -w | |
# recover rsyslog disk queue index (.qi) from queue files (.nnnnnnnn). | |
# | |
# See: | |
# runtime/queue.c: qqueuePersist() | |
# runtime/queue.c: qqueueTryLoadPersistedInfo() | |
# | |
# [email protected] 2012-03-14 | |
# | |
use strict; |
This file contains 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
DEVELOPER_DIR=`xcode-select -print-path` /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash /path/to/crash.log /path/to/dsym |
This file contains 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
git log -n1 --format="%D" $(git log --merges -n 1 --format="%P" | awk '{print $2}') | cut -c 8- |
This file contains 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
git log --format=%s -n1 | sed -n -e 's/^Merge pull request .* from wilrnh\///p' |
This file contains 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
exec 1> >(logger -s -t $(basename $0)) 2>&1 |
I hereby claim:
- I am wilrnh on github.
- I am wilrnh (https://keybase.io/wilrnh) on keybase.
- I have a public key ASBouOfx1_TFodzrZULjGCYA1Iw9S9b9cYKmzgxip_U7Vgo
To claim this, I am signing this object:
This file contains 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
#!/bin/bash | |
# https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019 | |
mount | grep efivars | |
sudo -i | |
lsblk | |
export DEV="/dev/nvme0n1" | |
export DM="${DEV##*/}" | |
export DM="${DM}$( if [[ "$DM" =~ "nvme" ]]; then echo "p"; fi )" | |
export ROOT=250G |