I hereby claim:
- I am jsjohnst on github.
- I am jsjohnst (https://keybase.io/jsjohnst) on keybase.
- I have a public key ASBBhxKVheZIDl7uTgJleEIrPk1SaJy3mjI6f26RuHaIVQo
To claim this, I am signing this object:
| read -r -p 'Secret Key: ' secret_key; dgst=$(printf '%016X' $(($(date -u '+%s') / ${TOTP_PERIOD_SECONDS:=30})) | xxd -r -p | openssl dgst -sha1 -mac hmac -macopt "hexkey:$(printf $secret_key | tr '[:lower:]' '[:upper:]' | base32 -d | xxd -p)"); offset=$(( 2 * 16#${dgst: -1} )); token=$(( ( 16#${dgst:offset:8} & 0x7fffffff ) % 10**${TOTP_DIGITS:=6} )); printf "%0${TOTP_DIGITS}d\n" "$token" |
| #!/usr/bin/env bash | |
| opmode=$1 | |
| if [[ "x$opmode" == "x" ]]; then | |
| echo "Usage:" | |
| echo " ${0} <opmode>" | |
| echo "Where <opmode> is either 'patch' or 'revert'" | |
| exit 0; | |
| fi |
| PD = .5; | |
| s[t_, f_] := t^.6 - f | |
| dt[cl_, ps_, sg_, hf_, dp_, f_, flag_] := | |
| Module[{sv, basePt}, | |
| {PointSize[ps], | |
| sv = s[t, f]; | |
| Hue[cl (1 + Sin[.02 t])/2, 1, .3 + sg .3 Sin[hf sv]], | |
| basePt = {-sg s[t, f] Sin[sv], -sg s[t, f] Cos[sv], dp + sv}; | |
| Point[basePt], | |
| If[flag, |
| all: internal-ssl.key internal-ssl.pem | |
| internal-ssl.pem: internal-ssl.conf | |
| openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout internal-ssl.pem -out internal-ssl.pem -config internal-ssl.conf -extensions 'v3_req' | |
| internal-ssl.key: internal-ssl.conf | |
| openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout internal-ssl.key -out internal-ssl.crt -config internal-ssl.conf -extensions 'v3_req' |
I hereby claim:
To claim this, I am signing this object:
| import urllib | |
| import json | |
| import locale | |
| locale.setlocale(locale.LC_ALL, 'en_US') | |
| state = "UT" | |
| states = ['AK', 'AL', 'AR', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'GA', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', | |
| 'KY', 'LA', 'MA', 'MD', 'ME', 'MI', 'MN', 'MO', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', |
| set senderName to "Sender Name" | |
| set senderEmail to "[email protected]" | |
| on trim(txt) | |
| repeat with i from 1 to (count txt) - 1 | |
| if (txt begins with space) then | |
| set txt to text 2 thru -1 of txt | |
| else | |
| exit repeat | |
| end if |
| db = db.getSiblingDB("admin"); | |
| dbs = db.runCommand({ "listDatabases": 1 }).databases; | |
| storageSize = 0; | |
| totalSize = 0; | |
| dbs.forEach(function(database) { | |
| db = db.getSiblingDB(database.name); | |
| stats = db.stats(); | |
| 1. Install: http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.8.dmg | |
| 2. Then launch XQuartz and open the preferences. On the output tab, click "Full-screen mode" | |
| 3. Follow instructions below to install and setup xmonad | |
| $ brew install Caskroom/cask/haskell-platform | |
| $ vim ~/.bash_profile | |
| export PATH="$HOME/Library/Haskell/bin:$PATH" | |
| $ PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:$PKG_CONFIG_PATH \ | |
| LIBRARY_PATH=/opt/X11/lib:$LIBRARY_PATH \ | |
| CPPFLAGS="-I/opt/X11/include" \ |
| { | |
| "Statement": [ | |
| { | |
| "Action": [ | |
| "route53:ChangeResourceRecordSets", | |
| "route53:GetHostedZone", | |
| "route53:ListResourceRecordSets" | |
| ], | |
| "Effect": "Allow", | |
| "Resource": [ |