View modules.php
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) |
View ssh-copy-id.bat
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 |
View composer.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
{ | |
"require": { | |
"phpseclib/phpseclib": "^2.0", | |
} | |
} |
View print_jwks_public_keys.php
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, |
View .gitignore
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 |
View main.tf
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. |
View is_object_public.py
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() |
View simple_gist.txt
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. |
View recommender_example.py
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' |
View main.tf
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" | |
} |
NewerOlder