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 random | |
from colorama import Fore, Style, init | |
init() # Initializes colorama | |
def draw_scenario(distance, attempts_left): | |
if attempts_left == 0: | |
print(Fore.RED + "\n💥 BANG! The man was shot." + Style.RESET_ALL) | |
else: | |
print("\nTwo men stand facing each other.") |
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
#!/bin/bash | |
echo ECS_CLUSTER=ecs-cluster-name> /etc/ecs/ecs.config |
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
AWSTemplateFormationVersion: "2010-09-09" | |
Transform: "AWS::Serverless-2016-10-31" | |
Description: AWS | |
Parameters: | |
pPrivateSubnetId1: | |
Description: AWS RDS Global DB subnet 1 Goupd Id | |
Type: String | |
pPrivateSubnetId2: |
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" | |
Resources: | |
VPC: | |
Type: AWS::EC2::VPC | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsHostnames: true | |
Tags: | |
- Key: Name | |
Value: !Sub 'VPC - ${AWS::StackName}' |
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
curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-darwin-amd64 | |
chmod +x ./kops | |
sudo mv ./kops /usr/local/bin/ |
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
useEffect(() => { | |
window.addEventListener("scroll", handleKeyUp); | |
return () => { | |
window.removeEventListener("scroll", handleKeyUp); | |
} | |
}, []); |