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
<?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
{ | |
"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
<?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
/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. |
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
This is a simple GitHub Gist. | |
This is line 2. |
NewerOlder