Skip to content

Instantly share code, notes, and snippets.

View cloudrkt's full-sized avatar

Rosco Nap cloudrkt

View GitHub Profile
@cloudrkt
cloudrkt / bash_profile
Last active August 22, 2019 20:38
Quick check and jump to project
# List of code projects
gpathsrc="$GOPATH/src"
repos=(add your project paths here seperated by space)
# np starts a new project in folder below and opends editor.
function np () {
REPO="SET YOUR DEFAULT PROJECT FOLDER HERE"
echo "Insert project description"
read reason
@cloudrkt
cloudrkt / debug_os_terraform.txt
Created March 14, 2017 11:16
terraform_soft_delete_openstack_instance
macpro:openstack cloudrkt$ terraform destroy
2017/03/14 12:08:40 [INFO] Terraform version: 0.8.8
2017/03/14 12:08:40 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.8.8/bin/terraform", "destroy"}
2017/03/14 12:08:40 [DEBUG] Detected home directory from env var: /Users/cloudrkt
2017/03/14 12:08:40 [DEBUG] Detected home directory from env var: /Users/cloudrkt
2017/03/14 12:08:40 [DEBUG] Attempting to open CLI config file: /Users/cloudrkt/.terraformrc
2017/03/14 12:08:40 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/03/14 12:08:40 [DEBUG] Detected home directory from env var: /Users/cloudrkt
Do you really want to destroy?
Terraform will delete all your managed infrastructure.
@cloudrkt
cloudrkt / pre-commit
Last active December 20, 2023 08:26
Spellcheck pre-commit hook
#!/usr/bin/env bash
# This script is used to check files with the .md extention (markdown) for spelling errors.
# It will run each .md file through aspell and returns an exit code other then 0 when it matches.
# Where are the markdown files located?
SEARCH_DIR="content"
# Set some fancy colors to indicate errors and wrongly spelled words.
RED='\033[0;31m'