Skip to content

Instantly share code, notes, and snippets.

@zanhsieh
zanhsieh / kubectl.md
Created April 30, 2018 13:41 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no

Keybase proof

I hereby claim:

  • I am zanhsieh on github.
  • I am zanhsieh (https://keybase.io/zanhsieh) on keybase.
  • I have a public key ASBa-qg-ySBfvPTlJSDnGymaD1f2b2Yb-6SR9xzGIUV_TAo

To claim this, I am signing this object:

@zanhsieh
zanhsieh / 1_Dockerised_JMeter.md
Created January 31, 2017 02:38 — forked from hhcordero/1_Dockerised_JMeter.md
Dockerized JMeter - A Distributed Load Testing Workflow
@zanhsieh
zanhsieh / ImageMagick 6.9.7-3 Homebrew Formula.md
Last active January 29, 2018 20:45 — forked from afaur/ImageMagick 6.9.7-3 Homebrew Formula.md
Homebrew Formula for ImageMagick 6.9.7-3

Homebrew Formula patching old ImageMagick release 6.9.7-4

Install

$ brew install https://gist.githubusercontent.com/zanhsieh/cb3083cb5ff63c89e8f6712dab108d67/raw/4348012e992aaf05b426752834f6df51c30347c5/imagemagick.rb

Tested

@zanhsieh
zanhsieh / vimdiff.md
Created October 9, 2015 08:07 — forked from mattratleph/vimdiff.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@zanhsieh
zanhsieh / byte-sizetuts.md
Created October 6, 2015 21:09 — forked from honkskillet/byte-sizetuts.md
A series of golang tutorials with youtube videos.
@zanhsieh
zanhsieh / wget-jdk-oracle-install-example.txt
Last active August 29, 2015 14:23 — forked from sr75/wget-jdk-oracle-install-example.txt
wget-jdk-oracle-install-example.txt
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm"
# ubuntu
wget --no-cookies \
@zanhsieh
zanhsieh / gist:85ebfd1db15225602a6f
Last active August 29, 2015 14:16
common-vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$IPs = {
"vm1" => "10.0.119.11",
"vm2" => "10.0.119.12",
"vm3" => "10.0.119.13",
"vm4" => "10.0.119.14",
"vm5" => "10.0.119.15"
}