Skip to content

Instantly share code, notes, and snippets.

View kangman's full-sized avatar

Daniel Kang kangman

View GitHub Profile
@kangman
kangman / Jenkinsfile
Created October 28, 2020 01:48 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@kangman
kangman / gist:66233591b3dbd8a672ec9a03a1dd0be9
Last active October 28, 2020 01:48 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
We couldn’t find that file to show.
@kangman
kangman / kubectl.md
Created October 16, 2020 02:30 — 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

Developer Cheat Sheets

This are my cheat sheets that I have compiled over the years. Tired of searching Google for the same things, I started adding the information here. As time went on, this list has grown. I use this almost everyday and this Gist is the first bookmark on my list for quick and easy access.

I recommend that you compile your own list of cheat sheets as typing out the commands has been super helpful in allowing me to retain the information longer.

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2

Results