I hereby claim:
- I am pacohope on github.
- I am pacohope (https://keybase.io/pacohope) on keybase.
- I have a public key whose fingerprint is 97BE DA24 3F14 E0FA 0D43 07AB 695A 1FCB A0B6 2312
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
import click | |
import os | |
import pandas as pd | |
def file_split(file): | |
s = file.split('.') | |
name = '.'.join(s[:-1]) # get directory name |
#!/bin/bash | |
# I use an "Admin" profile that has all EC2 permissions | |
AWSPROFILE="Admin" | |
KEYNAME="my-aws-key" | |
KEYFILE="file:///Users/paco/.ssh/foo.pem" | |
# Create foo.pem via: | |
# sshkeygen -f /Users/paco/.ssh/foo.pub -e > /Users/paco/.ssh/foo.pem | |
# use ec2 describe-regions to get the official, up-to-the-minute region list. | |
REGIONS=$(aws ec2 describe-regions | jq -r '.Regions[].RegionName') |
#!/bin/bash | |
# | |
# Set notifications for all my vaults on the same SNS topic. | |
# Set Variables up top. The rest flows through. | |
# See Also: http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications-console.html | |
# Set these four | |
REGION="eu-west-1" | |
PROFILE="MYPROFILE" |
# | |
# Given the ID of an Amazon public AMI in one region, figure out what the | |
# equivalent AMI IDs are for that same AMI in all other regions known. | |
# If that AMI isn't defined in a region, it prints the region's name, but | |
# comments it out. | |
# | |
from __future__ import print_function | |
import boto3 |
def mapper(f): | |
if type == "array" then map(f) | |
elif type == "object" then | |
. as $in | |
| reduce keys[] as $key | |
({}; | |
[$in[$key] | f ] as $value | |
| if $value | length == 0 then . else . + {($key): $value[0]} | |
end) | |
else . |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllBasics", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets", | |
"s3:HeadBucket", | |
"s3:ListObjects" |
#!/bin/zsh | |
# | |
# I hate doing this. This is someone else's code. For a long time I didn't know who to credit. Now | |
# I do: https://stackoverflow.com/questions/27159322/rgb-values-of-the-colors-in-the-ansi-extended-colors-index-17-255 | |
# It is by a user named adaephon (https://stackoverflow.com/users/2992551/adaephon) | |
# | |
function termcolors () | |
{ | |
print TERM | |
print -P "Foreground: >█<" |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "DenyUnencryptedObjectUploads", | |
"Effect": "Deny", | |
"Principal": "*", | |
"Action": "s3:PutObject", | |
"Resource": [ | |
"arn:aws:s3:::BUCKETNAME/*", |
#!/bin/sh | |
# Fork of https://gist.github.com/thefloweringash/8729473 | |
# | |
# freebsd-update is a clever script that downloads a lot of bsdiff | |
# patches and whole files when patches are not suitable. The result of | |
# this process is a collection of files in | |
# /var/db/freebsd-update/files. If the files already exist, it will | |
# not fetch them again. | |
# |