$ pip install awscli
...
$ aws configure # and setup the default profile
...
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
| # PowerShell | |
| Set-StrictMode -Version 2.0 | |
| Set-PSDebug -Trace 0 | |
| $ErrorActionPreference = 'STOP' | |
| function Register-LogWriter { | |
| <# | |
| .SYNOPSIS |
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
| #!/bin/bash | |
| # /etc/cron.hourly/0refresh-ntp | |
| # Workaround for guest clock going out of skew regularly | |
| # Essentially synchronizes systemd-timesyncd with NTP | |
| # via timedatectl but using a reference of the datetime | |
| # returned by http://worldtimeapi.org/api/ip | |
| set -eu -o pipefail |
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
| # Demo of the external data source | |
| # https://registry.terraform.io/providers/hashicorp/external/latest/docs/data-sources/data_source | |
| data "external" "passwd_field" { | |
| program = [ "./passwd_field.sh" ] | |
| query = { | |
| user = var.user | |
| field = var.field | |
| file = local.target_file | |
| } | |
| depends_on = [ |
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
| install: | |
| chmod +x ./v | |
| install -m550 $$PWD/v ~/.local/bin/ | |
| install -m550 $$PWD/v ~/.local/bin/ |
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
| package main | |
| // [Fizzbuzz: One Simple Interview Question](https://www.youtube.com/watch?v=QPZ0pIK_wsc) | |
| import "fmt" | |
| func fizzbuzz(i int) (text string) { | |
| fizz := i%3 == 0 | |
| buzz := i%5 == 0 |
Bike: Kona Dew Deluxe 2011
Frame: Kona 7005 Aluminum Butted, 61cm
Size: 61cm (24")
Weight: 10.2kg
Freewheel: Shimano HG30 11-32 9 spd (Hub???)\
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
| #!/bin/bash | |
| # Initialize terraform so that the ansible-terraform-openstack dynamic | |
| # inventory script can succeed. | |
| bin_dir=${bin_dir:-$( cd "${BASH_SOURCE[0]%/*}" && pwd )} | |
| source "$bin_dir/init.sh" # shared config with ansible, cidb, etc | |
| export TF_VAR_OS_USERNAME="$OS_USERNAME" | |
| export TF_VAR_OS_PASSWORD="$OS_PASSWORD" |
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
| { | |
| "roles": [ | |
| { | |
| "operation": "read", | |
| "resource": "widgets", | |
| "name": "widget-reader" | |
| }, | |
| { | |
| "operation": "write", | |
| "resource": "widgets", |