Source:
This file contains hidden or 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
| 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.
This file contains hidden or 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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:GetRole", | |
| "iam:PutRolePolicy" | |
| ], | |
| "Resource": [ |
This file contains hidden or 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
| { | |
| "Lawful Good": [ | |
| "Lovers", | |
| "Tacos", | |
| "Steaks", | |
| "Breath Mints", | |
| "Firefighters" | |
| ], | |
| "Chaotic Good": [ | |
| "Shoe Thieves", |
This file contains hidden or 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
| 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("") |
This file contains hidden or 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 json | |
| from hca.dss import DSSClient | |
| dss = DSSClient() | |
| print(dss.get_all_bundles(replica="gcp")) | |
| print(dss.get_all_bundles(replica="aws")) |
This file contains hidden or 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 os, sys | |
| import argparse | |
| """ | |
| A Simple Argparse Program | |
| That Works Just The Way | |
| We Like It. | |
| Charles Reid |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder