Skip to content

Instantly share code, notes, and snippets.

Avatar
🚫
I may be slow to respond.

Nikhita Raghunath nikhita

🚫
I may be slow to respond.
View GitHub Profile
@nikhita
nikhita / open-source-beginner.md
Created Dec 2, 2015 — forked from nicknisi/open-source-beginner.md
A collection of JavaScript projects with issues labeled beginner-friendly
View open-source-beginner.md
@nikhita
nikhita / c++Template-Codejam.cpp
Created Mar 11, 2016 — forked from kodekracker/c++Template-Codejam.cpp
Basic C++ Template for Google Code Jam or File I/O Competitive Programming
View c++Template-Codejam.cpp
/*
* Note: This template uses some c++11 functions , so you have to compile it with c++11 flag.
* Example:- $ g++ -std=c++11 c++Template-Codejam.cpp
*
* Author : Akshay Pratap Singh
* Handle: code_crack_01
*
*/
/******** All Required Header Files ********/
View keybase.md

Keybase proof

I hereby claim:

  • I am nikhita on github.
  • I am nikhita (https://keybase.io/nikhita) on keybase.
  • I have a public key ASBiFn0btDxvOOjNeEr2R3c_TL5hRFmzYgz-JQJ3gccd9go

To claim this, I am signing this object:

@nikhita
nikhita / command-time.sh
Created Apr 24, 2017
A script to show how long a command took to run. Outputs the time on the right.
View command-time.sh
function preexec() {
timer=${timer:-$SECONDS}
}
function precmd() {
if [ $timer ]; then
timer_show=$(($SECONDS - $timer))
export RPROMPT="%F{cyan}${timer_show}s %{$reset_color%}"
unset timer
fi
View panic.log
E0525 14:11:00.846457 8170 runtime.go:66] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/home/nikhita/gocode/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
/home/nikhita/gocode/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/home/nikhita/gocode/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/usr/local/go/src/runtime/asm_amd64.s:514
/usr/local/go/src/runtime/panic.go:489
/usr/local/go/src/runtime/panic.go:63
/usr/local/go/src/runtime/signal_unix.go:290
/home/nikhita/gocode/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/kube-apiextensions-server/pkg/controller/finalizer/crd_finalizer.go:134
/home/nikhita/gocode/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k
@nikhita
nikhita / benchmarks.md
Last active May 26, 2017
Benchmarks for go json schema libraries (validation). Using the standard json schema libraries.
View benchmarks.md

Benchmarks

BenchmarkOpenAPI-4        	    5000	    240116 ns/op	   71790 B/op	     649 allocs/op
BenchmarkGoJSONSchema-4   	    5000	    314191 ns/op	   66629 B/op	     965 allocs/op
@nikhita
nikhita / tpr-watch-example.md
Last active May 26, 2017
Kubernetes TPR watch example
@nikhita
nikhita / -
Created Jul 28, 2017 — forked from anonymous/-
View -
diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go
index b865f3f746..8d961ce477 100644
--- a/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go
+++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go
@@ -23,17 +23,19 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
}
out := new(JSONSchemaProps)
- if out.Default != nil {
+ *out = *in
@nikhita
nikhita / k8s-namespace-watcher.js
Created Sep 5, 2017 — forked from whitlockjc/k8s-namespace-watcher.js
Simple Node.js example of how to use a Kubernetes watcher
View k8s-namespace-watcher.js
'use strict';
const fs = require('fs')
const http = require('http')
const K8S_HOST = process.env['K8S_HOST'] || '10.100.0.1'
const K8S_SECRET = process.env['K8S_SECRET'] ||
fs.readFileSync('/var/run/secrets/kubernetes.io/serviceaccount/token', 'utf-8')
var req = http.request({
@nikhita
nikhita / all-not-sorted.txt
Last active Jun 7, 2018
Generating list of PRs for client-go release-7 notes.
View all-not-sorted.txt
https://github.com/kubernetes/kubernetes/pull/59159
https://github.com/kubernetes/kubernetes/pull/59966
https://github.com/kubernetes/kubernetes/pull/55168
https://github.com/kubernetes/kubernetes/pull/60055
https://github.com/kubernetes/kubernetes/pull/58111
https://github.com/kubernetes/kubernetes/pull/59316
https://github.com/kubernetes/kubernetes/pull/58544
https://github.com/kubernetes/kubernetes/pull/54933
https://github.com/kubernetes/kubernetes/pull/59821
https://github.com/kubernetes/kubernetes/pull/59587