- ISPs and VPS providers hosting donated #! shellboxes won't always have DNS hostnames, or have ones we can automatically discern
- Machines that -do- have provider-assigned hostnames we can discern like in AWS, are subject to change if a machine is terminated/restored with same disk.
- Users will discover federated #! shellboxes via some central list
- Users should always be able to ssh to the same hostname and end up with the same disk/homdir
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
| #include "ergodox_ez.h" | |
| #include "debug.h" | |
| #include "action_layer.h" | |
| #include "version.h" | |
| #include "keymap_german.h" | |
| #include "keymap_nordic.h" |
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
| #!/bin/python3 | |
| import cv2 | |
| class PunchCard(object): | |
| def __init__(self, x_offset=131, y_offset=141, y_scale=52, x_scale=153): | |
| self.x_offset = x_offset | |
| self.y_offset = y_offset | |
| self.x_scale = x_scale | |
| self.y_scale = y_scale |
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
| #!/bin/bash | |
| # Script to automate the provisioning of a new SSH certificate onto a yubikey device. | |
| set -e | |
| set -u | |
| set -o pipefail | |
| for path in "/usr/lib64/opensc-pkcs11.so" \ | |
| "/usr/lib/opensc-pkcs11.so" \ |
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
| git_repository( | |
| name = "io_bazel_rules_go", | |
| remote = "https://github.com/bazelbuild/rules_go.git", | |
| tag = "0.4.4", | |
| ) | |
| load( | |
| "@io_bazel_rules_go//go:def.bzl", | |
| "go_repositories", | |
| "new_go_repository", | |
| ) |
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
| #!/bin/bash | |
| tmpdir=$(mktemp -d) | |
| export GNUPGHOME="$tmpdir" | |
| echo "allow-loopback-pinentry" >> "$GNUPGHOME/gpg-agent.conf" | |
| echo "pinentry-mode loopback" >> "$GNUPGHOME/gpg.conf" | |
| function cleanup { | |
| rm -rf "$GNUPGHOME" | |
| } | |
| trap cleanup EXIT |
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
| #!/bin/bash | |
| environment=$1 | |
| app_name=$2 | |
| tag=$3 | |
| asg_name=$( | |
| aws ec2 describe-instances \ | |
| --region us-west-2 \ | |
| --filters \ | |
| "Name=tag:$tag,Values='$app_name-$environment'" \ |
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
| #!/bin/bash | |
| api_url='https://www.kickstarter.com/projects/597507018/pebble-2-time-2-and-core-an-entirely-new-3g-ultra/stats.json?v=1' | |
| while sleep 1; do | |
| ks_json=$(curl $api_url -s | gunzip 2> /dev/null ) | |
| [ $? -ne 0 ] && continue | |
| old_total=$total | |
| total=$(echo $ks_json | jq -r '.project.pledged') | |
| [[ "$total" == "$old_total" ]] && continue |
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
| # Place in .ebextensions/00-bypass-nginx-proxy.config at the root of your appkication repository. | |
| files: | |
| "/tmp/setup_iptables.sh": | |
| mode: "000755" | |
| content: | | |
| #!/bin/sh | |
| # remove rules added by us (marked by the "added_by_ebextension" comment), if any | |
| iptables-save | grep -v added_by_ebextension | iptables-restore |
I hereby claim:
- I am lrvick on github.
- I am lrvick (https://keybase.io/lrvick) on keybase.
- I have a public key whose fingerprint is 6B61 ECD7 6088 748C 7059 0D55 E90A 4013 36C8 AAA9
To claim this, I am signing this object: