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 / update-golang.md
Last active Sep 24, 2022
How to update the Go version
View update-golang.md

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@nikhita
nikhita / minikube-upgrade.md
Created Feb 12, 2020
How to upgrade minikube to the latest version in Linux.
View minikube-upgrade.md

Find the current version

$ minikube version
minikube version: v1.7.1

Check if there are newer versions available

@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 / 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
View 01-k8s-api-internals-codebase-walkthrough.md

Kubernetes API Internals Codebase Walkthrough

The JSON file included in this gist gives a codebase walkthrough of the resource handling in the k8s apiserver.

The codebase walkthrough is created using CodeTour VS Code extension. To display the walkthrough in VS Code, use the JSON file using the Opening Tours functionality.

You might need to first open the workspace at the apiserver directory.

@nikhita
nikhita / fedora-firefox-gif-video.md
Created Aug 6, 2018
How to get Twitter gifs and short videos working on Firefox on Fedora
View fedora-firefox-gif-video.md

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
@nikhita
nikhita / install-firacode.sh
Created Apr 24, 2017
How to install FiraCode font on Linux
View install-firacode.sh
mkdir -p ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done
fc-cache -f
@nikhita
nikhita / list-all-repos.sh
Created Feb 10, 2021
Generate a list of all repos in a GitHub to paste into Excel
View list-all-repos.sh
#!/usr/bin/env bash
# This script generates a list of repos in a GitHub org.
# The list can be pasted directly to a Microsoft Excel sheet.
# You will need to use your GitHub username in the username field.
# Update the page=N number to get the complete list of repos.
curl --silent --user "username" "https://api.github.com/orgs/vmware/repos?page=1&per_page=100" | npx jq '.[].html_url' | while read repo
do
echo "=Hyperlink("$repo","$repo")"
done
View controller-manager-publishing-bot.yaml
recursive-delete-patterns:
- BUILD
- "*/BUILD"
- BUILD.bazel
- "*/BUILD.bazel"
- Gopkg.toml
rules:
- destination: apimachinery
library: true
View with-defaultgoversion.yaml
recursive-delete-patterns:
- BUILD
- "*/BUILD"
- BUILD.bazel
- "*/BUILD.bazel"
- Gopkg.toml
default-go-version: 1.14.5
rules:
- destination: code-generator
branches: