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 ********/
@nikhita
nikhita / README.md
Created Jun 19, 2017 — forked from robertpainsi/README.md
How to reopen a pull-request after a force-push?
View README.md

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>

Example

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
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({
View test-staging.sh
#!/bin/bash -ex
rm -rf cache.new
if [ ! -d cache ]; then
mkdir cache.new
pushd cache.new
for repo in $(ls -1 ../kubernetes/staging/src/k8s.io); do
git clone git@github.com:kubernetes/${repo}.git
done
popd
View .gitconfig
[merge]
tool = mymeld
conflictstyle = diff3
[mergetool "mymeld"]
# Shows three-pane merge view with central output directly being the merged file to save
cmd = $MANISHMELD $LOCAL $BASE $REMOTE --output=$MERGED
#cmd = meld "$LOCAL" "$BASE" "$REMOTE"
@nikhita
nikhita / check-broken-k8s-links.md
Created Sep 21, 2018 — forked from jonasrosland/check-broken-k8s-links.md
Check broken links in Kubernetes Community repo
View check-broken-k8s-links.md