I hereby claim:
- I am mdp on github.
- I am mdp (https://keybase.io/mdp) on keybase.
- I have a public key whose fingerprint is 0FB5 F926 DBAA CEF8 52E9 027F 0A16 D724 A034 42CF
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am mdp on github. | |
| * I am mdp (https://keybase.io/mdp) on keybase. | |
| * I have a public key whose fingerprint is 3977 96B0 0D37 D95B 3FDC F12F 32FC E8AB 7513 4EF9 | |
| To claim this, I am signing this object: |
| #!/bin/bash | |
| # Usage: ./env-to-ssm.sh prefix envfile | |
| # Ex: ./env-to-ssm.sh prod.app .env | |
| AWS_SSM_PREFIX=$1 | |
| ENV_FILE=$2 | |
| cat aws/.env | grep -v ^# | grep -v -e '^$' | while read line |
| #!/bin/bash | |
| arg=$1 | |
| host=$2 | |
| OVPN_DATA="ovpn-data" | |
| set -x | |
| if [ "$arg" == "setup" ]; then |
| try: | |
| import RPi.GPIO as GPIO | |
| except RuntimeError: | |
| print("Error importing RPi.GPIO! This is probably because you need superuser privileges. You can achieve this by using 'sudo' to run your script") | |
| import time | |
| import random | |
| import pytz | |
| from datetime import datetime |
I hereby claim:
To claim this, I am signing this object:
_Assumes you are on OSX (sorry, I didn't have time to test it on linux)
brew install imagemagickbrew install gs./watermark.sh mydoc.pdf < recipients.txt
My Docker bash scripts for VPS
Below is a list of redirects my browser goes through when I visit a NYTimes link on Twitter. Surely we don't have to hop through 'Trib.al' 4 different times? On a mobile connection you get to watch your url bar hop around for 5 seconds before you get to the article.
| let sources = { | |
| 'default-src': ['\'self\''], | |
| 'script-src': ['\'self\'','https://*.myexternalcdn.com'], | |
| 'frame-src': ['https://someexternalframesource.com'], | |
| 'img-src': ['\'self\'', 'https:', 'data:'], | |
| 'style-src': ['\'self\'', 'https:'], | |
| 'font-src': ['\'self\'', 'https:'], | |
| 'connect-src': ['\'self\''], | |
| } |