Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Nikhita Raghunath nikhita

I may be slow to respond.
View GitHub Profile
nikhita /
Created Dec 2, 2015 — forked from nicknisi/
A collection of JavaScript projects with issues labeled beginner-friendly
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 ********/
nikhita /
Created Jun 19, 2017 — forked from robertpainsi/
How to reopen a pull-request after a force-push?

You need the rights to reopen pull requests on the repository.

  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin <GITHUB-HASH-FROM-STEP-2>:<PR-BRANCH>
  4. Reopen the PR.
  5. git push -f origin <HASH-FROM-STEP-1>:<PR-BRANCH>


You've a PR branch my-feature currently at 1234567. Looking at the the PRs page, we see that the PR was closed when my-feature pointed at 0abcdef.

nikhita / -
Created Jul 28, 2017 — forked from anonymous/-
View -
diff --git a/staging/src/ b/staging/src/
index b865f3f746..8d961ce477 100644
--- a/staging/src/
+++ b/staging/src/
@@ -23,17 +23,19 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
out := new(JSONSchemaProps)
- if out.Default != nil {
+ *out = *in
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'] || ''
const K8S_SECRET = process.env['K8S_SECRET'] ||
fs.readFileSync('/var/run/secrets/', 'utf-8')
var req = http.request({
#!/bin/bash -ex
rm -rf
if [ ! -d cache ]; then
for repo in $(ls -1 ../kubernetes/staging/src/; do
git clone${repo}.git
View .gitconfig
tool = mymeld
conflictstyle = diff3
[mergetool "mymeld"]
# Shows three-pane merge view with central output directly being the merged file to save
#cmd = meld "$LOCAL" "$BASE" "$REMOTE"
nikhita /
Created Sep 21, 2018 — forked from jonasrosland/
Check broken links in Kubernetes Community repo