Skip to content

Instantly share code, notes, and snippets.

View kevinkirkup's full-sized avatar

Kevin S Kirkup kevinkirkup

  • Digital Realty Trust
  • Raleigh, NC
View GitHub Profile
@kevinkirkup
kevinkirkup / ip-up.ppp
Last active February 5, 2021 20:57
Forward traffic for a specific IP over a VPN Tunnel on Mac
#!/bin/sh
##################################################
# This gets run every time the VPN is connected
# Save this as /private/etc/ppp/ip-up
##################################################
# ——————————————————————
# Some Host
# ——————————————————————
@kevinkirkup
kevinkirkup / crash.log
Created December 4, 2020 18:19
Terraform Helm Crash
2020/12/04 13:16:50 [INFO] Terraform version: 0.14.0
2020/12/04 13:16:50 [INFO] Go runtime version: go1.15.5
2020/12/04 13:16:50 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "--var-file=overrides/example.tfvars"}
2020/12/04 13:16:50 [DEBUG] Attempting to open CLI config file: /Users/kevinkirkup/.terraformrc
2020/12/04 13:16:50 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/12/04 13:16:50 [DEBUG] checking for credentials in "/Users/kevinkirkup/.terraform.d/plugins"
2020/12/04 13:16:50 [DEBUG] checking for credentials in "/Users/kevinkirkup/.terraform.d/plugins/darwin_amd64"
2020/12/04 13:16:50 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/12/04 13:16:50 [DEBUG] will search for provider plugins in /Users/kevinkirkup/.terraform.d/plugins
2020/12/04 13:16:50 [TRACE] getproviders.SearchLocalDirectory: /Users/kevinkirkup/.terraform.d/plugins is a symlink to /Users/kevinkirkup/.terraform.d/plugins
@kevinkirkup
kevinkirkup / resources.md
Last active August 10, 2020 13:21 — forked from kevsmith/resources.md
Elixir & Erlang Resources
@kevinkirkup
kevinkirkup / Jenkins.groovy
Created July 8, 2020 15:39
Examples for getting information for Jenkins pipelines
def jenkins = Jenkins.getInstance()
def jobName = "kato"
def job = jenkins.getItem(jobName)
def build = job.getItems()[0].getBuildByNumber(861)
def scmAction = build?.actions.find { action -> action instanceof jenkins.scm.api.SCMRevisionAction }
println "Hash: ${scmAction?.revision?.hash}"
@kevinkirkup
kevinkirkup / .lldbinit
Created November 30, 2018 15:20
Local LLDB configuration for a CPP project
#--------------------------------------------------
# Custom scripts
#--------------------------------------------------
# Import script
command script import ".lldb/po.py"
command script import ".lldb/ls.py"
#break command add -F trace.breakpoint_trace 1
#break command add -F trace.breakpoint_trace 2
@kevinkirkup
kevinkirkup / mount.nfs2ramfs
Last active October 24, 2017 16:37 — forked from jiminald/mount.nfs2ramfs
Mount NFS to RAMFS for sharing multiple locations on one SAMBA Share
#!/bin/bash
SERVER=$1
NFS_SHARE=$2
LOCAL_SHARE=$3
RAMFS_SHARE=$4
echo "Setting up RamFS"
mkdir /tmp/ramfs
mkdir /tmp/ramfs/$RAMFS_SHARE
@kevinkirkup
kevinkirkup / remove_newlines_in_quotes.sh
Created September 7, 2017 01:12
Remove new lines in quoted strings
# OSX
find . -iname "*.txt" -exec gawk -i inplace '!/"$/{sub(/$/,"\\n");printf "%s",$0;next}1' {} +
@kevinkirkup
kevinkirkup / kubernetes_on_macOS.md
Created May 22, 2017 18:45 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@kevinkirkup
kevinkirkup / reduce-size.dockerimage
Created April 24, 2017 20:29 — forked from NikoWoot/reduce-size.dockerimage
Reduce size of Docker image
=================================================
After software installation
=================================================
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
=================================================
Docker on build process, include all files on directory build (include .git with old build)
Solution for reduce size of docker image (but for reuse is not good solution)
=================================================
@kevinkirkup
kevinkirkup / Remove files or directory from history.md
Last active November 4, 2016 01:04 — forked from lausdahl/git-extract-subdir.md
How to Extract a Subdirectory as a New git Repository
$ git filter-branch --tree-filter 'rm -rf <some-dir>' --prune-empty HEAD
$ git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d