I hereby claim:
- I am gigawhitlocks on github.
- I am ianwhitlock (https://keybase.io/ianwhitlock) on keybase.
- I have a public key whose fingerprint is 17C0 6195 3CBA 8E76 F9C9 9BB5 8941 9A7A 5E79 2775
To claim this, I am signing this object:
package main | |
import ( | |
"archive/zip" | |
"fmt" | |
"io" | |
"os" | |
"sync" | |
"syscall" | |
) |
#!/bin/bash | |
set -euo pipefail | |
openssl req -new -text -passout pass:abcd -subj /CN=localhost -out server.req -keyout privkey.pem | |
openssl rsa -in privkey.pem -passin pass:abcd -out server.key | |
openssl req -x509 -in server.req -text -key server.key -out server.crt | |
chmod 600 server.key | |
test $(uname -s) == Linux && echo chown 70 server.key | |
docker run -d --name postgres -v "$(pwd)/server.crt:/var/lib/postgresql/server.crt:ro" -v "$(pwd)/server.key:/var/lib/postgresql/server.key:ro" postgres:12-alpine -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key |
I hereby claim:
To claim this, I am signing this object:
from pyvcloud.vcloudair import VCA | |
from pprint import pprint | |
import os | |
import time | |
import uuid | |
class ESXInstance(object): | |
def __init__(self, password=os.getenv("vca_password"), | |
username=os.getenv("vca_username"), |
(defun gif-emacs (duration) | |
(interactive "sDuration: ") | |
(start-process "emacs-to-gif" nil | |
"byzanz-record" | |
"-d" duration | |
"-w" (number-to-string (+ 5 (frame-pixel-width))) | |
"-h" (number-to-string (+ 50 (frame-pixel-height))) | |
"-x" (number-to-string (frame-parameter nil 'left)) | |
"-y" (number-to-string (+ (frame-parameter nil 'top) 10)) | |
(concat "~/emacs_gifs/" (format-time-string "%Y-%m-%dT%T") ".gif"))) |
### Keybase proof | |
I hereby claim: | |
* I am gigawhitlocks on github. | |
* I am ianwhitlock (https://keybase.io/ianwhitlock) on keybase. | |
* I have a public key whose fingerprint is E429 3E94 559A 251A 1C45 AE18 C47C DD6C 4019 B337 | |
To claim this, I am signing this object: |
function evil() { | |
if [ $SSH_CLIENT ]; | |
then if [[ $1 == /* ]]; | |
then ssh ian@$(echo $SSH_CLIENT | awk '{print $1}') -C emacsclient /ubuntu@isw-dev:$1; | |
else ssh ian@$(echo $SSH_CLIENT | awk '{print $1}') -C emacsclient /ubuntu@isw-dev:$(pwd)/$1; | |
fi | |
else vim; | |
fi | |
} |
(define fizzbuzz | |
; this is a default-args wrapper | |
(lambda () | |
(fizzbuzz-iter 1))) | |
(define fizzbuzz-iter | |
(lambda (iter) | |
; the actual meat of fizzbuzz |
function sudowoodo() { | |
read -p "Are you sure? " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
sudo mkfs.ext4 /dev/sda | |
fi | |
} |