Skip to content

Instantly share code, notes, and snippets.

View clintcolding's full-sized avatar

Clint Colding clintcolding

View GitHub Profile
@clintcolding
clintcolding / whoami-compose.yml
Created November 6, 2019 19:36
Traefik example
version: '3'
services:
whoami:
image: stefanscherer/whoami
labels:
# Create a router called whoami listening on the websecure entrypoint
- "traefik.http.routers.whoami.entrypoints=websecure"
# Force TLS
- "traefik.http.routers.whoami.tls=true"
@clintcolding
clintcolding / GCPCredentials.md
Created December 6, 2022 14:47
Creating GOOGLE_CREDENTIAL for Terraform Cloud

Create GOOGLE_CREDENTIALS

  1. Create a service account within the GCP project (terraform-svc).
  2. Create a new JSON key for the service account and save the file.
  3. Run the following command on the JSON file to format it correctly for TFC. cat key.json | tr -s '\n' ' '
  4. Copy the output of step 3 into the GOOGLE_CREDENTIALS variable in the TFC workspace.
  5. Make sure to mark the variable as sensitive!
@clintcolding
clintcolding / bluecatscripts.ps1
Created July 24, 2018 15:42
Bluecat/Proteus API PowerShell Scripts
# API Documentation can be at http://timlossev.com/attachments/Proteus_API_Guide_3.7.1.pdf
# Connecting the the API
$credential = Get-Credential
$uri = "http://bluecatserver/Services/API?wsdl"
$bc = New-WebServiceProxy -Uri $uri
$bc.CookieContainer = New-Object System.Net.CookieContainer
$bc.login($Credential.UserName, ($Credential.GetNetworkCredential()).Password)
# Find IP based on assigned name in Bluecat
@clintcolding
clintcolding / rpisshkeys
Created July 9, 2019 17:25
Configure Raspberry Pi SSH Keys
#---- Create key on client ----#
ssh-keygen -b 2048 -t rsa
#---- Validate creation ----#
ls ~/.ssh
#---- SSH to Pi and create the SSH directory and file ----#
mkdir .ssh
cd .ssh
touch authorized_keys