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
@set APIKEY=your_cloud_api_key | |
@set URI=https://clients.hostwinds.com/cloud/api.php | |
@set FILENAME=instances.json | |
@if exist %FILENAME% del %FILENAME% | |
@curl %URI% ^ | |
-sS ^ | |
-X POST ^ | |
-d "action=get_instances&API=%APIKEY%" > %FILENAME% |
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
APIKEY='your_cloud_api_key' | |
URI='https://clients.hostwinds.com/cloud/api.php' | |
FILENAME='instances.json' | |
if [ -f $FILENAME ]; | |
then | |
rm $FILENAME | |
fi | |
curl $URI \ |
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
# Test code for the question: https://stackoverflow.com/q/65525116/8016720 | |
# Provides configuration details for Terraform | |
terraform { | |
required_version = ">= 0.14.3, < 0.15.0" | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "~>2.41" |
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
IF exist .terraform (rd /s /q .terraform) | |
IF exist terraform.tfstate.d (rd /s /q terraform.tfstate.d) | |
IF exist .terraform.lock.hcl (del .terraform.lock.hcl) | |
IF exist terraform.tfstate (del terraform.tfstate) | |
IF exist terraform.tfstate.backup (del terraform.tfstate.backup) |
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
# This script is used in my article about Terraform, Google Cloud DNS and Cloud IAM. | |
# https://www.jhanley.com/terraform-experiments-with-google-cloud-dns-and-iam/ | |
###################################################################### | |
# Terraform | |
###################################################################### | |
terraform { | |
required_version = ">= 0.14.7" | |
} |
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
This is a simple GitHub Gist. | |
This is line 2. |
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
import sys | |
from google.cloud import storage | |
# Replace with valid bucket and object names | |
bucket_name = 'example_bucket_name' | |
object_name = 'example_object_name' | |
# Instantiates a client | |
storage_client = storage.Client() |
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
############################################################################## | |
# Date Created: 2021-09-17 | |
# Last Update: 2021-09-17 | |
# https://www.jhanley.com - Google Cloud | |
# Copyright (c) 2021, John J. Hanley | |
# Author: John J. Hanley | |
# License: MIT | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
/node_modules | |
/public/blog | |
/public/hot | |
/public/storage | |
/storage/*.key | |
/vendor | |
.env | |
.env.backup | |
.phpunit.result.cache | |
docker-compose.override.yml |
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
{ | |
"require": { | |
"phpseclib/phpseclib": "^2.0", | |
} | |
} |
OlderNewer