Skip to content

Instantly share code, notes, and snippets.

View mithuns's full-sized avatar
😲
Wondering

Mithun Singh mithuns

😲
Wondering
View GitHub Profile
{"name":"John", "age":30, "car":"chrysler 300"}

Keybase proof

I hereby claim:

  • I am mithuns on github.
  • I am cheetos619 (https://keybase.io/cheetos619) on keybase.
  • I have a public key ASDQXkV8hmSuySxk3OItA9jtaNfDa4MwrdbarcERnA7-HAo

To claim this, I am signing this object:

@mithuns
mithuns / kubectl.md
Created January 20, 2020 21:17 — 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
payload: {
"ref": "refs/heads/master",
"before": "f7699102db54de41e206a26072ff72ef1767ac61",
"after": "1b5a08995ab74b75fe74ba0744b267479e06f2ef",
"created": false,
"deleted": false,
"forced": false,
"base_ref": null,
"compare": "https://github.com/mithuns/mithuns.github.io/compare/f7699102db54...1b5a08995ab7",
"commits": [
class Button extends React.Component{
handleClick = () =>{
this.props.onClickFunction(this.props.incrementValue)
};
render(){
return (
<button onClick = {this.handleClick}>
+{this.props.incrementValue}
</button>
);

here the image should be left aligned.

This should be in center

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ejs=f()}})(function(){var define,module,exports;return function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e}()({1:[function(require,module,exports){"use strict";var fs=require("fs");var path=require("path");var utils=require("./utils");var scopeOptionWarned=false;var _VERSION_STRING=require("../package.json").
package ms;
public class MoneyToWords {
public static final String[] units = { "", "One", "Two", "Three", "Four",
"Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve",
"Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen",
"Eighteen", "Nineteen" };
public static final String[] tens = {
@mithuns
mithuns / MovieRestTest.java
Last active June 19, 2018 00:22
Gson parsing sample code
package ms;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Type;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T02:58:13-05:00)
Maven home: /users/mithuns/apache-maven-3.5.2
Java version: 10.0.1, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.5", arch: "x86_64", family: "mac"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.annotation.* < plexus.core
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core