This file contains 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
#!/usr/bin/env python3 | |
# | |
# openssl asn1parse -noout -out private_key.der -genconf <(python jwks2asn1.py private_key.json) | |
# openssl rsa -in private_key.der -inform der > private_key.pem | |
# | |
# rfc7517.3 : urlsafe_b64decode | |
# rfc7517.A.1 : ints are big-indian | |
# | |
import base64 |
This file contains 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
import boto3 | |
import json | |
client = boto3.client('iam') | |
paginator = client.get_paginator('list_policies') | |
response_iterator = paginator.paginate(Scope='AWS') | |
managed_policies = [] | |
for response in response_iterator: | |
for policy in response['Policies']: |
This file contains 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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Template to create libnd EC2 | |
Conditions: | |
HasNetworkInterfaceId: !Not [!Equals [!Ref NetworkInterfaceId, '']] | |
HasPrivateIpAddress: !Not [!Equals [!Ref PrivateIpAddress, '']] | |
Parameters: | |
AMI: | |
ConstraintDescription: must be an AMI available in the EC2 instance's region | |
Default: ami-6869aa05 | |
Description: Base AMI |
This file contains 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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Create a Volume from scratch and attach it to an instance. | |
Metadata: | |
AWS::CloudFormation::Interface: |
This file contains 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
{ | |
"universityarchives": "5561", | |
"reservesmicrotextandmediadesk": "5557", | |
"medievalinstitutelibrary": "5558", | |
"circulationservicedesk": "1483", | |
"engineeringlibrary": "5566", | |
"architecturelibrary": "5563", | |
"kelloggkroclibrary": "5567", | |
"mahaffeybusinesslibrary": "5564", | |
"chemistryphysicslibrary": "5565", |
This file contains 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
#! /usr/bin/env python | |
""" local codebuild implementation | |
Parses buildspec.yml files, and executes them locally, as per: | |
http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-example | |
""" | |
from __future__ import print_function | |
import functools | |
import glob | |
import os |
This file contains 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
# create gh-pages branch | |
git checkout --orphan gh-pages | |
git rm -rf . | |
touch README.md | |
git add README.md | |
git commit -m 'initial gh-pages commit' | |
git push origin gh-pages | |
# add gh-pages as submodule | |
git checkout master |