See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| [CmdLetBinding()] | |
| Param( | |
| [Parameter(Mandatory=$true,ValueFromPipeLine=$false,ValueFromPipeLineByPropertyName=$true)] | |
| [String] $HostedZoneId, | |
| [Parameter(Mandatory=$true,ValueFromPipeLine=$false,ValueFromPipeLineByPropertyName=$true)] | |
| [ValidateSet("CNAME","A","AAAA","MX","TXT","PTR","SRV","SPF","NS","SOA")] | |
| [String] $Type, | |
| [Parameter(Mandatory=$true,ValueFromPipeLine=$false,ValueFromPipeLineByPropertyName=$true)] |
| --- | |
| - hosts: docker | |
| tasks: | |
| - command: "echo {{ item }}" | |
| register: result | |
| with_items: | |
| - 1dag | |
| - 2 | |
| - 3 | |
| - debug: |
| from flask import Flask | |
| from flask import render_template | |
| import csv | |
| import json | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def my_runs(): | |
| runs = [] |
| import boto3 | |
| import base64 | |
| if __name__ == '__main__': | |
| session = boto3.session.Session() | |
| kms = session.client('kms') | |
| encrypted_password = 'AQECAHjgTiiE7TYRGp5Irf8jQ3HzlaQaHGYgsUJDaavnHcFm0gAAAGswaQYJKoZIhvcNAQcGoFwwWgIBADBVBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDDwxVQuG0oVwpkU7nQIBEIAoVGk1/wpserb+GVUOzE7PiL/Nr9fTDFKZfpKpF0ip2ct4B2q0Wn6ZZw==' | |
| binary_data = base64.b64decode(encrypted_password) |
| function test_and(){ | |
| var cars=[ | |
| {make: "Jeep",model: "Cherokee",trim:"Sport 4dr Front-wheel Drive",year:"2016",wheel:{wheel_size:"17 x 7.5",wheel_metal:"Aluminum"}}, | |
| {make: "Jeep",model: "Wrangler",trim:"Sahara 2dr 4x4",year: "2015"} | |
| ] | |
| for (var i in cars){ | |
| if (cars[i]["wheel"] && cars[i]["wheel"]["wheel_size"]){ | |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
unittest2
| #!/bin/bash -eo pipefail | |
| ## Allows for creation of "Basic" DNS records in a Route53 hosted zone | |
| function main() { | |
| record_name=$1 | |
| record_value=$2 | |
| [[ -z $record_name ]] && echo "record_name is: $record_name" && exit 1 | |
| [[ -z $record_value ]] && echo "record_value is: $record_value" && exit 1 |