Skip to content

Instantly share code, notes, and snippets.

View troyharvey's full-sized avatar
:octocat:

Troy Harvey troyharvey

:octocat:
View GitHub Profile
@troyharvey
troyharvey / deployment.yml
Last active February 27, 2024 04:47
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1

Keybase proof

I hereby claim:

  • I am troyharvey on github.
  • I am troyharvey (https://keybase.io/troyharvey) on keybase.
  • I have a public key ASCz9PmMG0ER6PZQM3ew7Fxb78b7UPnZEAMjYgXod4BJKgo

To claim this, I am signing this object:

@troyharvey
troyharvey / gist:4f4e6fa41635e350c9fe
Created July 10, 2013 19:20
AngularJS Speaker Notes

Overview

  • Troy Harvey, IT Consultant at ZyQuest

  • Woodport Doors project

  • Demonstrate door.bifold ng-model binding.

    scope = angular.element($0).scope()
    scope.DoorService.door.bifold = false
    
@troyharvey
troyharvey / gist:2956277
Created June 19, 2012 20:15
Links for CIS 150 guest lecture
@troyharvey
troyharvey / DateAdapter.java
Created August 30, 2011 16:25
Marshalling ISO 8601 dates with a custom JAXB DateAdapter
package com.acme.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.logging.Logger;
import javax.xml.bind.annotation.adapters.XmlAdapter;