i shall update this gist again properly with periodic revisions and remove any duplicate contents. Below i have added quick representation of most features if not all
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
| # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: CloudFormation template that represents a request driven web service on AWS App Runner. | |
| Parameters: | |
| AppName: | |
| Type: String | |
| EnvName: | |
| Type: String | |
| WorkloadName: |
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
| Username (card) Instance FQDN | |
| aceofclubs ec2-54-144-249-81.compute-1.amazonaws.com | |
| aceofdiamonds ec2-18-207-139-146.compute-1.amazonaws.com | |
| aceofhearts ec2-18-206-198-157.compute-1.amazonaws.com | |
| aceofspades ec2-18-207-112-130.compute-1.amazonaws.com | |
| jackofclubs ec2-18-207-207-147.compute-1.amazonaws.com | |
| jackofdiamonds ec2-54-172-59-2.compute-1.amazonaws.com | |
| jackofhearts ec2-54-82-213-231.compute-1.amazonaws.com | |
| jackofspades ec2-107-22-144-212.compute-1.amazonaws.com | |
| kingofclubs ec2-18-206-198-177.compute-1.amazonaws.com |
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
| # Chef code to use AWS Secrets Manager in a Chef Recipe | |
| include_recipe "chef-vault" | |
| vault = chef_vault_item(:chefsecrets, "awschefsecretsmanager") | |
| aws_access_key = vault["access_key_id"] | |
| aws_secret_key = vault["secret_access_key"] | |
| require 'aws-sdk' | |
| require 'json' |
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 requests | |
| from bs4 import BeautifulSoup | |
| url = "http://www.azlyrics.com/lyrics/onyx/bacdafucup.html" | |
| print "Default request (it will fail)..." | |
| # make the default request | |
| try: | |
| r = requests.get(url) |
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
| // A Declarative Pipeline is defined within a 'pipeline' block. | |
| pipeline { | |
| // agent defines where the pipeline will run. | |
| agent { | |
| // This also could have been 'agent any' - that has the same meaning. | |
| label "" | |
| // Other possible built-in agent types are 'agent none', for not running the | |
| // top-level on any agent (which results in you needing to specify agents on | |
| // each stage and do explicit checkouts of scm in those stages), 'docker', |
Linux: sudo yum install git
Mac: Download
Windows: Download
- posh-git: A set of PowerShell scripts that provide Git/PowerShell integration
- Download posh-git
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
| # knife cheat | |
| ## Search Examples | |
| knife search "name:ip*" | |
| knife search "platform:ubuntu*" | |
| knife search "platform:*" -a macaddress | |
| knife search "platform:ubuntu*" -a uptime | |
| knife search "platform:ubuntu*" -a virtualization.system | |
| knife search "platform:ubuntu*" -a network.default_gateway |
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
| for i in range(1, 101): | |
| print "Fizz" * (not i % 3) + "Buzz" * (not i % 5) or i | |
| print " ".join("Herp" * (not i % 3) + "Derp" * (not i % 5) or str(i) for i in range(1, 101)) |
NewerOlder