Skip to content

Instantly share code, notes, and snippets.

View nikhita's full-sized avatar
E_TOO_MANY_THINGS

Nikhita Raghunath nikhita

E_TOO_MANY_THINGS
View GitHub Profile
diff --git a/artifacts/scripts/util.sh b/artifacts/scripts/util.sh
index e9e3d01..7875b46 100755
--- a/artifacts/scripts/util.sh
+++ b/artifacts/scripts/util.sh
@@ -380,7 +380,7 @@ sync_repo() {
squash ${squash_commits}
# if there is no pending merge commit, update Godeps.json because this could be a target of tag
- if [ -z "${k_pending_merge_commit}" ]; then
+ if ! pick-incorrect-godep-changes ${k_mainline_commit} && [ -z "${k_pending_merge_commit}" ]; then
@nikhita
nikhita / client-go-release-10-smoke-test.sh
Last active December 4, 2018 05:34
Script used to smoke test client-go v10.0.0 before releasing
#!/bin/bash -ex
cd $GOPATH/src/k8s.io
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 https://github.com/kubernetes/${repo}.git
@nikhita
nikhita / list-of-kubernetes-repos-over-time.py
Created December 4, 2018 05:11
List of Kubernetes GitHub repos over time in a Graph
import requests
repos = [
'kubernetes',
'kubernetes-client',
'kubernetes-csi',
'kubernetes-incubator',
'kubernetes-sigs',
]
@nikhita
nikhita / client-go-smoke-test-release-9.txt
Last active October 5, 2018 10:00
Glide test for client-go release v9.0.0
#!/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 https://github.com/kubernetes/${repo}.git
done
popd
@nikhita
nikhita / check-broken-k8s-links.md
Created September 21, 2018 14:01 — forked from jonasrosland/check-broken-k8s-links.md
Check broken links in Kubernetes Community repo
@nikhita
nikhita / fedora-firefox-gif-video.md
Created August 6, 2018 05:17
How to get Twitter gifs and short videos working on Firefox on Fedora

How to get Twitter gifs and short videos working on Firefox on Fedora

Note: This is for Fedora 28, however the process should be similar for other recent Fedora versions as well.

  1. Go to https://www.youtube.com/html5 and check if all boxes are checked. If gifs or short videos don't work for you, you mostly do not have H.264 and MSE & H.264.

  2. There are a bunch of repositories you need to setup.

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
[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"
#!/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
@nikhita
nikhita / all-not-sorted.txt
Last active June 7, 2018 21:43
Generating list of PRs for client-go release-7 notes.
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
@nikhita
nikhita / k8s-namespace-watcher.js
Created September 5, 2017 19:40 — forked from whitlockjc/k8s-namespace-watcher.js
Simple Node.js example of how to use a Kubernetes watcher
'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({