Skip to content

Instantly share code, notes, and snippets.

💭
Not Sure

Jonathan Gardner (MSFT) jgardner04

💭
Not Sure
Block or report user

Report or block jgardner04

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jgardner04
jgardner04 / .zshrc
Created Sep 17, 2019
WSL Zshrc file
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/jogardn/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@jgardner04
jgardner04 / main.tf
Last active Sep 1, 2019
Tiller Deployment
View main.tf
resource "kubernetes_namespace" "tiller" {
metadata {
name = "tiller"
}
}
resource "kubernetes_service_account" "tiller" {
metadata {
name = "tiller"
namespace = kubernetes_namespace.tiller.metadata.0.name
@jgardner04
jgardner04 / certificates.yaml
Created Dec 18, 2018
Azure DevOps Linux Build Agent Certificates
View certificates.yaml
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: tls-secret
spec:
secretName: tls-secret
dnsNames:
- <<your dns name>>
acme:
config:
@jgardner04
jgardner04 / cluster-issuer.yaml
Last active Dec 18, 2018
Azure DevOps Build Agent Cluster Issuer
View cluster-issuer.yaml
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: <<youremailhere@example.com>>
privateKeySecretRef:
name: letsencrypt-staging
@jgardner04
jgardner04 / vsts-linux-build-ingress.yaml
Last active Dec 18, 2018
Azure DevOps Build Agent Ingress
View vsts-linux-build-ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: vstslinuxbuild
annotations:
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
tls:
@jgardner04
jgardner04 / vsts-linux-build-service.yaml
Created Dec 18, 2018
Azure DevOps Linux Build Agent Kubernetes Service
View vsts-linux-build-service.yaml
apiVersion: v1
kind: Service
metadata:
name: vstslinuxbuild
spec:
ports:
- port: 80
name: web
protocol: TCP
targetPort: 80
@jgardner04
jgardner04 / vsts-linux-build-deployment.yaml
Created Dec 18, 2018
Azure DevOps Linux Build Agent Kubernetes Deployment
View vsts-linux-build-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: vstslinuxbuild
spec:
replicas: 3
selector:
matchLabels:
app: vstslinuxbuild
template:
@jgardner04
jgardner04 / Dockerfile
Created Dec 18, 2018
Azure DevOps Build Agent Dockerfile
View Dockerfile
# Base Image
FROM microsoft/vsts-agent
# Update packages and install new ones
RUN sudo apt-get update \
&& sudo apt-get upgrade -y \
&& sudo apt install apt-utils unzip -y
# Install Terraform
RUN curl -O https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip \
View .eslintrc.js
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"mongo": true,
"jquery": true
},
"extends": "eslint:recommended",
View FilterModule Docker
FROM microsoft/dotnet:2.0.0-runtime-stretch
ARG EXE_DIR=.
WORKDIR /app
COPY $EXE_DIR/ ./
CMD ["dotnet", "FilterModule.dll"]
You can’t perform that action at this time.