Skip to content

Instantly share code, notes, and snippets.

@tony-kerz
tony-kerz / k8s-notes.md
Created September 10, 2018 12:52
k8s notes
  • decode k8s secret
kubectl get secret watchmen-jenkins -o jsonpath --template '{.data.jenkins-admin-password}' -n watchmen | base64 --decode
@tony-kerz
tony-kerz / mongo-update-result.md
Created March 12, 2017 20:02
mongo formatted update result
{
  result: { n: 1, nModified: 1, ok: 1 },
  connection: {
    domain: null,
    _events: { error: [Object], close: [Object], timeout: [Object], parseError: [Object] },
    _eventsCount: 4,
    _maxListeners: undefined,
    options: {
      host: 'localhost',
@tony-kerz
tony-kerz / gist:2371184
Created April 12, 2012 21:40
json serialization compatible with net.sf.json.JSONObject
package com.x.y.model;
import java.io.IOException;
import java.util.Date;
import junit.framework.Assert;
import net.sf.json.JSONObject;
import org.junit.Test;
import org.junit.runner.RunWith;