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
CREATE OR REPLACE FUNCTION gen_unique_short_id() returns text | |
language plpgsql | |
as $$ | |
DECLARE | |
id text; | |
BEGIN | |
id := encode(gen_random_bytes(6), 'base64'); | |
id := replace(id, '/', '_'); | |
id := replace(id, '+', '_'); | |
RETURN id; |
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
# Stopping a single container that is running. | |
docker stop 0bd1f4ccb52d | |
# Stopping two or more containers that are running. | |
docker stop 0bd1f4ccb52d 0bd1f4ccb52d | |
# Showing a list of all containers. | |
docker ps -a | |
# Showing a list of the container IDs that are actively running. |
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
#!/usr/bin/env bash | |
dotnet restore | |
dotnet build | |
function publish { | |
echo $1 | |
CASSIEPATH=$1 | |
RID=$1 | |
CASSIEPATH=release/v0/$CASSIEPATH |
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
version: '3.6' | |
services: | |
postgres: | |
image: postgres:12 | |
restart: always | |
volumes: | |
- db_data:/Users/adron/Codez/databases | |
environment: | |
POSTGRES_PASSWORD: ${PPASSWORD} | |
ports: |
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
provider "azurerm" { | |
version = "=2.20.0" | |
features {} | |
} | |
resource "azurerm_resource_group" "adronsrg" { | |
name = "adrons-rg" | |
location = "westus2" | |
} |
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
GROUPNAME="adrons-images" | |
LOCATION="westus2" | |
STORAGENAME="adronsimagestorage" | |
IMAGECASSANDRA="basecassandra" | |
echo 'Deleting existing image.' | |
az image delete -g $GROUPNAME -n $IMAGECASSANDRA | |
echo 'Creating the managed resource group for images.' |
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": { | |
"client_id": "{{env `TF_VAR_clientid`}}", | |
"client_secret": "{{env `TF_VAR_clientsecret`}}", | |
"tenant_id": "{{env `TF_VAR_tenant_id`}}", | |
"subscription_id": "{{env `TF_VAR_subscription_id`}}", | |
"imagename": "", | |
"storage_account": "adronsimagestorage", | |
"resource_group_name": "adrons-images" | |
}, |
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": { | |
"tenant_id": "{{env `TF_VAR_tenant_id`}}", | |
"subscription_id": "{{env `TF_VAR_subscription_id`}}", | |
"storage_account": "adronsimagestorage", | |
"resource_group_name": "adrons-images" | |
}, | |
"builders": [{ | |
"type": "azure-arm", |
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": { | |
"client_id": "{{env `TF_VAR_clientid`}}", | |
"client_secret": "{{env `TF_VAR_clientsecret`}}", | |
"tenant_id": "{{env `TF_VAR_tenant_id`}}", | |
"subscription_id": "{{env `TF_VAR_subscription_id`}}", | |
"storage_account": "adronsimagestorage", | |
"resource_group_name": "adrons-images" | |
}, |
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
2019/08/08 16:07:29 [INFO] Packer version: 1.4.2 | |
2019/08/08 16:07:29 Packer Target OS/Arch: linux amd64 | |
2019/08/08 16:07:29 Built with Go Version: go1.12.6 | |
2019/08/08 16:07:29 Detected home directory from env var: /home/adron | |
2019/08/08 16:07:29 Using internal plugin for proxmox | |
2019/08/08 16:07:29 Using internal plugin for amazon-ebs | |
2019/08/08 16:07:29 Using internal plugin for amazon-ebsvolume | |
2019/08/08 16:07:29 Using internal plugin for hyperv-iso | |
2019/08/08 16:07:29 Using internal plugin for linode | |
2019/08/08 16:07:29 Using internal plugin for ncloud |
NewerOlder