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
terraform { | |
required_providers { | |
civo = { | |
source = "civo/civo" | |
version = "~>1.0.39" | |
} | |
} | |
} | |
provider "civo" { |
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 for Windows | |
:: Firewall rule name | |
set NAME=allow_from_home | |
:: update the IP address with yours | |
set CIDR=1.2.3.4/32 | |
:: Create a new firewall | |
call civo firewall create %NAME% --create-rules=false --network=default |
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
# pip install google-cloud-recommender | |
from google.cloud import recommender | |
import os | |
# Enter values for your Project ID and Zone | |
PROJECT= | |
LOCATION= | |
RECOMMENDER = 'google.compute.instance.MachineTypeRecommender' |
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
<?php | |
echo 'PHP Version: ' . phpversion() . '<br />' . PHP_EOL; | |
echo '<br />' . PHP_EOL; | |
$extensions = get_loaded_extensions(); | |
// Case insensitive sort by value | |
array_multisort(array_map('strtolower', $extensions), $extensions); | |
foreach ($extensions as $i => $ext) |
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
powershell ./ssh-copy-id.ps1 %1 %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
# Test code for the question: https://stackoverflow.com/q/65525116/8016720 | |
# Provides configuration details for the Azure Terraform provider | |
provider "azurerm" { | |
# !!! Must include features even if empty | |
features {} | |
} | |
variable "appName" { default = "testAppName" } | |
variable "subscriptionId" { default = "" } |
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
<?php | |
/***************************************************************************** | |
* Date Created: 2021-09-30 | |
* Last Update: 2021-09-30 | |
* 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, |
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", | |
} | |
} |
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
############################################################################## | |
# 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. |
NewerOlder