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
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install golang | |
# Usually this is good to install golang, but alas the apt-get repo is usually out of sync with the latest. |
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
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install build-essential checkinstall libffi-dev python-dev | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev | |
// https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py | |
// https://pip.pypa.io/en/stable/installing/#using-linux-package-managers |
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
package main | |
import ( | |
"fmt" | |
"github.com/satori/go.uuid" | |
) | |
func main() { | |
// Creating UUID Version 1 | |
uuid1 := uuid.NewV1() |
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
# Remember, all of these commands need executed via Powershell that is started/opened with "Run As Administrator". | |
# Disabling Hyper-V | |
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor | |
# Enabling Hyper-V | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All |
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 | |
# Script prerequisite > install jq > https://stedolan.github.io | |
# ******************************************************************************************** | |
# UPDATE: Check out Robert's repo here https://github.com/robertpeteuil/terraform-installer | |
# Robert's repo is more built out and has more options around the installation process. | |
# Cheers! -Adron | |
# ******************************************************************************************** | |
cd ~ |
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" | |
} |
NewerOlder