A Python CLI framework built on argparse that provides a extensible supercommand pattern for building command-line tools with nested subcommands.
src/
├── cli.py # Core CLI framework (SupercommandArgumentParser)
└── states/
| DELAY 1000 | |
| GUI SPACE | |
| DELAY 1000 | |
| STRING terminal | |
| DELAY 1000 | |
| ENTER | |
| DELAY 1000 | |
| STRING osascript -e 'set volume 7' | |
| DELAY 1000 | |
| ENTER |
By default, zappa has an extremely insecure and hand-wavey approach to permissions, which is to
This gist contains an IAM policy document that can be attached to a role, and/or to an IAM user, that will allow the IAM user to perform all of the ncessary actions required to deploy a zappa function.
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:GetRole", | |
| "iam:PutRolePolicy" | |
| ], | |
| "Resource": [ |
| { | |
| "Lawful Good": [ | |
| "Lovers", | |
| "Tacos", | |
| "Steaks", | |
| "Breath Mints", | |
| "Firefighters" | |
| ], | |
| "Chaotic Good": [ | |
| "Shoe Thieves", |
| from github import * | |
| import sys | |
| import json | |
| def usage(): | |
| print("") | |
| print("allstars.py: script to print all repos starred by a Github user") | |
| print("Usage: python allstars.py [USERNAME]") | |
| print("") |
| import json | |
| from hca.dss import DSSClient | |
| dss = DSSClient() | |
| print(dss.get_all_bundles(replica="gcp")) | |
| print(dss.get_all_bundles(replica="aws")) |
| import os, sys | |
| import argparse | |
| """ | |
| A Simple Argparse Program | |
| That Works Just The Way | |
| We Like It. | |
| Charles Reid |
| \documentclass[border=2mm]{standalone} | |
| \usepackage{tikz} | |
| \usepackage{xintexpr} | |
| \usetikzlibrary{shapes.geometric} | |
| \begin{document} | |
| \begin{tikzpicture}[scale=3] | |
| % make a node with variable name pol (with the list of features given) at the location (0,0), and don't label it | |
| \node (pol) [draw=none, thick, black!90!black,rotate=0,minimum size=6cm,regular polygon, regular polygon sides=11] at (0,0) {}; |