Skip to content

Instantly share code, notes, and snippets.

View jasoet's full-sized avatar

Deny Prasetyo jasoet

View GitHub Profile
package status
import (
v1 ""
metaV1 ""
package main
import (
jasoet /
Created July 8, 2019 06:48 — forked from evertrol/
Makefile cheat sheet

Makefile cheat sheet

Mostly geared towards GNU make

I've used ->| to indicate a tab character, as it's clearer to read than

  • Set a target, its dependencies and the commands to execute in order
target: [dependencies]
jasoet /
Created November 10, 2018 11:04 — forked from bradrydzewski/
Generate trusted CA certificates for running Docker with HTTPS
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
# See
# To start the Docker Daemon:
# sudo docker -d \
jasoet / ktorreq.kt
Last active October 13, 2018 15:18
Ktor Request
fun buildRequest(
userId: String,
pemReader: Reader
): HttpRequestBuilder.() -> Unit {
val chefServerHost = "https://chef-server.vpc"
val organizationPath = "/organizations/someorg"
return {
val httpMethod = method
val path = "$organizationPath/${url.encodedPath}"
jasoet /
Created March 9, 2018 06:49
Json Path usage
JSONPath Support

JSONPath template is composed of JSONPath expressions enclosed by {}. And we add three functions in addition to the original JSONPath syntax:

  1. The $ operator is optional since the expression always starts from the root object by default.
  2. We can use "" to quote text inside JSONPath expressions.
  3. We can use range operator to iterate lists.
jasoet /
Created March 9, 2018 03:04
Kubernetes Overview
approvers title
Overview of kubectl

kubectl is a command line interface for running commands against Kubernetes clusters. This overview covers kubectl syntax, describes the command operations, and provides common examples. For details about each command, including all the supported flags and subcommands, see the kubectl reference documentation. For installation instructions see installing kubectl.


jasoet /
Created March 9, 2018 03:02
Kubernetes Cheat Sheet
jasoet /
Created February 20, 2018 03:28 — forked from madebyais/
Service documentation


[build_status_badge_if_any] [code_coverage_badge_if_any]

Replace this text with service detail description.

  • What is the purpose of this service ?
  • Background why this service is needed


jasoet / gist:052bef9dabc1f37fc553d67d714f9906
Created November 3, 2016 07:44 — forked from mplatvoet/gist:bd029656bd17412f02cd
CompletableFuture with Kovenant Promises example
import nl.komponents.kovenant.*
import nl.komponents.kovenant.jvm.asDispatcher
import java.util.concurrent.CompletableFuture
import java.util.concurrent.ForkJoinPool
fun main(args: Array<String>) {
Kovenant.context {
// configure Kovenant with the same pool
// CompletableFutures use. By default it's
// the common pool.