Install the OpenSSL on Debian based systems
sudo apt-get install openssl| import boto3 | |
| ec2 = boto3.resource('ec2') | |
| def lambda_handler(event, context): | |
| # create filter for instances in running state | |
| filters = [ | |
| { | |
| 'Name': 'instance-state-name', | |
| 'Values': ['running'] |
| machine api.heroku.com | |
| login [email protected] | |
| password 01230123012301230123012301230123 | |
| machine api.github.com password something login somebody | |
| machine ftp.server login abc password def account ghi macdef somemacro | |
| cd somehwhere | |
| continues until end of paragraph |
service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval (in minutes)service.beta.kubernetes.io/aws-load-balancer-access-log-enabled (true|false)service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-nameservice.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefixservice.beta.kubernetes.io/aws-load-balancer-additional-resource-tags (comma-separated list of key=value)service.beta.kubernetes.io/aws-load-balancer-backend-protocol (http|https|ssl|tcp)service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled (true|false)| import paramiko | |
| from pebble import concurrent | |
| from concurrent.futures import TimeoutError | |
| while not deviceTests_is_desktop_on_wifi_flag: | |
| print("Waiting for desk %s to complete challenge 1 - Connect to WiFi" % ourHackerDeskNumber) | |
| trySSHConnection = deviceTests_is_desktop_on_wifi(ourHackerDeskNumber) | |
| try: |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
Is a useful one-liner which will give you the full directory name of the script no matter where it is being called from
These will work as long as the last component of the path used to find the script is not a symlink (directory links are OK). If you want to also resolve any links to the script itself, you need a multi-line solution:
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
| #!/bin/sh | |
| sudo apt update | |
| sudo apt install -y git vim python3-pip apt-transport-https ca-certificates curl software-properties-common jq | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge" | |
| echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list | |
| curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo apt update | |
| sudo apt install -y docker-ce google-chrome-stable |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "NonResourceBasedReadOnlyPermissions", | |
| "Action": [ | |
| "ec2:DescribeSubnets", | |
| "ec2:DescribeSnapshots", | |
| "ec2:DescribeImages", | |
| "ec2:DescribeVolumes", |