Skip to content

Instantly share code, notes, and snippets.

View ronakbanka's full-sized avatar
🏠
Working from home

Ronak Banka ronakbanka

🏠
Working from home
View GitHub Profile
#!/bin/bash -e
# Usage ./k8s-service-account-kubeconfig.sh ( namespace ) ( service account name )
TEMPDIR=$( mktemp -d )
trap "{ rm -rf $TEMPDIR ; exit 255; }" EXIT
SA_SECRET=$( kubectl get sa -n $1 $2 -o jsonpath='{.secrets[0].name}' )

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

FROM golang:alpine3.7 AS builder
RUN apk add --no-cache curl jq bash
RUN mkdir -p /assets
WORKDIR /assets
RUN curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github-rel" | tar -xzf -
RUN url=$(curl -s "https://api.github.com/repos/contraband/autopilot/releases/latest" \
| jq -r '.assets[] | select(.name == "autopilot-linux") | .browser_download_url') &&\
curl -L "$url" -o /assets/autopilot
COPY . /go/src/github.com/concourse/cf-resource
openssl s_client -host Server-address -port server-port -prexit -showcerts
@ronakbanka
ronakbanka / notes.md
Created January 24, 2018 08:30 — forked from matiasinsaurralde/notes.md
Tyk + Cloud Foundry + CF Router

Initial setup

Note: Target the right organization.

cf create-space tyk-deployment
cf target -o 'matias-org' -s 'tyk-deployment'

Sample application

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ronakbanka
ronakbanka / .gitconfig
Last active August 29, 2015 14:22 — forked from robmiller/.gitconfig
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
Quick gist on getting vsphere and vcenter and fog/vsphere going
# Things to download
- Download free evaluation version of window 2008
- Download free evaluation of esxi v5
- Download free evaluation of esxi vsphere (control center) iso
# Install esxi in vmware fusion
1)Install esxi in vmware (select vmware/esx as host)
create a user root/pipopopo
<%
director_uuid = 'CHANGEME'
static_ip = 'CHANGEME'
root_domain = "#{static_ip}.xip.io"
deployment_name = 'cf'
cf_release = '170'
protocol = 'http'
common_password = 'c1oudc0wc1oudc0w'
%>
---