Removal | |
---|---|
Delete shortest match of needle from front of haystack |
${haystack#needle} |
This file contains 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
$token="<Your_api_token>" | |
$accountName="<Your_account>" | |
$projectSlug="<Your_project_slug>" | |
$toFind = @("foo", "bar") | |
$headers = @{ | |
"Authorization" = "Bearer $token" | |
"Content-type" = "application/json" | |
} |
This file contains 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
{ | |
"variables": { | |
"ssh_username": "vagrant", | |
"ssh_password": "vagrant", | |
"iso_checksum_md5": "6a7f31eb125a0b2908cf2333d7777c82", | |
"user_home":"/home/vagrant", | |
"image_description": "" | |
}, | |
"provisioners": [ | |
{ |
This file contains 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
2018/04/17 13:26:06 [INFO] Packer version: 1.2.2 | |
2018/04/17 13:26:06 Packer Target OS/Arch: windows amd64 | |
2018/04/17 13:26:06 Built with Go Version: go1.10 | |
2018/04/17 13:26:06 Using internal plugin for amazon-ebs | |
2018/04/17 13:26:06 Using internal plugin for amazon-ebssurrogate | |
2018/04/17 13:26:06 Using internal plugin for digitalocean | |
2018/04/17 13:26:06 Using internal plugin for docker | |
2018/04/17 13:26:06 Using internal plugin for ncloud | |
2018/04/17 13:26:06 Using internal plugin for oracle-oci | |
2018/04/17 13:26:06 Using internal plugin for virtualbox-ovf |
This file contains 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
# Asume there is path to java in PATH variable | |
# Asume there JAVA_HOME_8_x64 variable defined | |
# Asume you have sed | |
export PATH=$(echo $PATH| sed -r -e "s|(:?)/usr/lib/jvm/[^:]+|\\1$JAVA_HOME_10_X64/bin|") |