Operating System: Ubuntu 18.04
AWS Region (e.g. ap-southeast-1)
| =========================================================== | |
| Java (Elasticsearch Prerequisite) | |
| =========================================================== | |
| 1. Navigate to the tmp directory | |
| $ cd /tmp | |
| 2. Download the RPM installer | |
| $ curl --insecure --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" -L "http://download.oracle.com/otn-pub/java/jdk/8u77-b02/jdk-8u77-linux-x64.rpm" > jdk-8u77-linux-x64.rpm |
| # govtech-sgcore-experiments-internal-playbook-scheduling-v1-1.yml | |
| # 2018 04 04 | |
| # 2018 04 05 | |
| # 2018 04 06 | |
| # 2018 04 10 | |
| # DMC | |
| # To Run: | |
| # $ ansible-playbook govtech-sgcore-experiments-internal-playbook-scheduling-v1-1.yml | |
| --- |
| ################################################################################ | |
| # | |
| # prepend | |
| # sed -e s#^#prefix#g file.txt > new_file.txt | |
| # sed -i s#^#prefix#g file.txt | |
| # append | |
| # sed -e s#$#suffix#g file.txt > new_file.txt | |
| # sed -i s#$#suffix#g file.txt |
| #!/bin/bash | |
| # | |
| # | |
| # | |
| # | |
| # for f in * ; do | |
| # if [ -d "$f" ] ; then |
| # config.yml | |
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| - image: xxx/yyy:zzz | |
| - image: aaa/bbb:ccc | |
| # environment: | |
| # HERE: CAN | |
| # environment: |
| curl \ | |
| --header "Content-Type: application/json" \ | |
| --data '{"": {"":"", "":""}}' \ | |
| --request POST \ | |
| https://domain/api |
| $Subs = Get-AzureRmSubscription | |
| foreach ($Sub in $Subs) { | |
| $SelectSub = Select-AzureRmSubscription -SubscriptionName $Sub.Name | |
| $VNETs = Get-AzureRmVirtualNetwork | |
| foreach ($VNET in $VNETs) { | |
| #$Sub.Name | |
| #$VNET.Name | |
| #$VNET.AddressSpace.AddressPrefixes | |
| Write-Host "$($Sub.Name),$($VNET.Name),$($VNET.AddressSpace.AddressPrefixes)" | |
| } |