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
@kangman
kangman / yourmechanic error
Created June 16, 2017 18:17
yourmechanic address form error
d2wy8f7a9ursnm.cloudfront.net/bugsnag-3.min.js:1 This IP, site or mobile application is not authorized to use this API key. Request received from IP address , with empty referer For more information on authentication and Google Maps Javascript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key
@kangman
kangman / -
Created March 25, 2017 19:20
test
kdfjlskjdfk
turn off ssd statistics on osx due to high read
`sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.applessdstatistics.plist`

Keybase proof

I hereby claim:

  • I am kangman on github.
  • I am kangman (https://keybase.io/kangman) on keybase.
  • I have a public key ASASAlcnheQ-74F85wN4OzXy3OhWzVWio88z_yKzrKLczgo

To claim this, I am signing this object:

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