Skip to content

Instantly share code, notes, and snippets.

View HighwayofLife's full-sized avatar
🥷
Jedi

David Lewis HighwayofLife

🥷
Jedi
View GitHub Profile
@HighwayofLife
HighwayofLife / storage_account.tf
Last active June 9, 2017 04:16
Azure Storage Account Unique Name
variable "storageAccountPrefix" {
default = "node"
}
variable "resourceGroupName" {
default = "MyResourceGroup"
}
variable "location" {
default = "West US"
}
variable "nodeCount" {
@HighwayofLife
HighwayofLife / debug.log
Created May 17, 2017 19:00
Terraform resource azurerm_network_interface won't import
2017/05/17 11:55:20 [INFO] Terraform version: 0.9.5
2017/05/17 11:55:20 [INFO] Go runtime version: go1.8.1
2017/05/17 11:55:20 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.5/bin/terraform", "import", "azurerm_network_interface.test", "/subscriptions/xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/microsoft.network/networkInterfaces/jenkinsmaster314"}
2017/05/17 11:55:20 [DEBUG] Detected home directory from env var: /Users/myself
2017/05/17 11:55:20 [DEBUG] Detected home directory from env var: /Users/myself
2017/05/17 11:55:20 [DEBUG] Attempting to open CLI config file: /Users/myself/.terraformrc
2017/05/17 11:55:20 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/05/17 11:55:20 [INFO] CLI command args: []string{"import", "azurerm_network_interface.test", "/subscriptions/xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/microsoft.network/networkInterfaces/jenkinsmaster314"}
2017/05/17 11:55:20 [DEBUG] Detected home di
@HighwayofLife
HighwayofLife / crash.log
Created April 15, 2017 00:30
Terraform Crash on Azurerm Template Deployment for Azure Service Fabric
This file has been truncated, but you can view the full file.
2017/04/14 19:41:37 [INFO] Terraform version: 0.9.2 6365269541c8e3150ebe638a5c555e1424071417+CHANGES
2017/04/14 19:41:37 [INFO] Go runtime version: go1.8
2017/04/14 19:41:37 [INFO] CLI args: []string{"/opt/terraform/terraform", "apply"}
2017/04/14 19:41:37 [DEBUG] Detected home directory from env var: /var/lib/jenkins
2017/04/14 19:41:37 [DEBUG] Detected home directory from env var: /var/lib/jenkins
2017/04/14 19:41:37 [DEBUG] Attempting to open CLI config file: /var/lib/jenkins/.terraformrc
2017/04/14 19:41:37 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/04/14 19:41:37 [INFO] CLI command args: []string{"apply"}
2017/04/14 19:41:37 [DEBUG] command: loading backend config file: /var/lib/jenkins/workspace/TerraformSFCluster/cicd-azure
2017/04/14 19:41:37 [DEBUG] command: no data state file found for backend config
#!/bin/sh
#
# Too many crusty old git branches? Run this to find likely candidates for deletion
# It lists all the remote branches and sorts them by age.
#
# Folks at pivotal shared this with me
#
#$ . show-remote-branch-info.sh
# 2012-05-04 09:42:29 -0700 4 minutes ago Ted & Bill \torigin/hey_Bill
@HighwayofLife
HighwayofLife / rename_module.sh
Created September 8, 2012 21:57
Rename/Duplicate PyroCMS Module Bash Script
#!/bin/bash
##
# Script created by David Lewis (highwayoflife@gmail.com) for PyroCMS
# This script will rename an existing (core) CMS module and duplicate it into the
# addons/shared_addons/modules directory, while renaming it and all file contents to
# match
#
# Usage: ./rename_module.sh "old_module" "new_module"
#