All of the following information is based on go version go1.14.7 darwin/amd64.
(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)
aixandroid
| 2020/05/17 06:20:22 ### WILL SKIP THE FOLLOWING TAGS: [SupportedVersions ovf:License] | |
| 2020/05/17 06:20:22 -------------------------------------------------------------------------------- | |
| 2020/05/17 06:20:22 Request caller: govcd.(*Client).validateAPIVersion-->govcd.(*Client).vcdFetchSupportedVersions-->govcd.executeRequestWithApiVersion-->govcd.(*Client).executeRequest-->govcd.(*Client).NewRequestWithApiVersion-->govcd.(*Client).NewRequestWithApiVersion | |
| 2020/05/17 06:20:22 GET https://iaas.xxxxxx.net/api/versions | |
| 2020/05/17 06:20:22 -------------------------------------------------------------------------------- | |
| 2020/05/17 06:20:22 Req header: | |
| 2020/05/17 06:20:22 ################################################################################ | |
| 2020/05/17 06:20:22 Response caller govcd.(*VCDClient).Authenticate-->govcd.(*VCDClient).GetAuthResponse-->govcd.(*VCDClient).vcdloginurl-->govcd.(*Client).validateAPIVersion-->govcd.(*Client).vcdFetchSupportedVersions-->govcd.(*Client).executeRequest-->govcd.decodeBody |
| #!/bin/bash | |
| images=$(sudo docker images | awk '{print $1":"$2}') | |
| registry_server="192.168.31.27:5000" | |
| for image in $images | |
| do | |
| echo "Image: $image" | |
| sudo docker tag $image $registry_server/$image | |
| sudo docker push $registry_server/$image | |
| sudo docker rmi $registry_server/$image |
| ##------------------------------ | |
| ## Applicable on on Ubuntu 18.04 | |
| ## Never tested on other OS | |
| ##------------------------------ | |
| #!/bin/bash | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| sudo apt install software-properties-common -y | |
| sudo apt-add-repository --yes --update ppa:ansible/ansible |
| ### Debug a variable | |
| - name: Debug VM info | |
| debug: | |
| msg: "{{info}}" | |
| when: info is defined | |
| ### Check apps installed or not | |
| - name: Check if Docker already exists | |
| shell: > | |
| docker -v |
| #!/bin/bash | |
| echo Update system | |
| apt update -y && apt upgrade -y | |
| echo Stop rsyslog | |
| service rsyslog stop | |
| echo Empty log files | |
| find /var/log/ -type f -exec cp /dev/null {} \; | |
| echo Remove tmp files | |
| rm -rf /tmp/* | |
| rm -rf /var/tmp/* |
| kolla-build -b ubuntu --push --registry 192.168.31.27:5000 --tag ussuri -t binary keystone |
| /** | |
| * Taken from https://dev.to/craicoverflow/a-no-nonsense-guide-to-environment-variables-in-go-a2f | |
| */ | |
| package tools | |
| import ( | |
| "os" | |
| "strconv" | |
| "strings" |
| 2021-03-12,2021-05-17,2021-05-18,2021-05-19,2021-12-27,2022-01-01,2021-02-12,2021-03-11,2021-03-14,2021-04-02,2021-05-01,2021-05-13,2021-05-13,,2021-05-14,2021-05-26,2021-06-01,2021-07-20,,2021-08-10,2021-08-17,2021-10-19,2021-12-25,2021-05-12,2021-12-24 |
| How to Benchmark | |
| ------------------------ | |
| wget -qO- bench.sh | bash | |
| bash <(wget --no-check-certificate -O - https://raw.github.com/mgutz/vpsbench/master/vpsbench) |