Skip to content

Instantly share code, notes, and snippets.

Working remotely

Indradhanush Gupta indradhanush

Working remotely
Block or report user

Report or block indradhanush

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
indradhanush /
Created Apr 1, 2019 — forked from sdstrowes/
Reverse Engineering the Protocol, Gökberk Yaltıraklı

Source: Author: Gökberk Yaltıraklı

Reverse Engineering the Protocol

After finishing my command line speed tester written in Rust, I didn't have a proper blog to document this process. A few days ago I wrapped up a simple blogging script in Python so hopefully it works good enough to explain how everything works.

By now I have already figured out the whole protocol for performing a speed test but I will write all the steps that I took so you can learn how to reverse engineer a simple protocol.

The code that I wrote can be found at

indradhanush /
Created Mar 26, 2019
Error using counsel-rg


Error in post-command-hook (ivy--queue-exhibit): (wrong-type-argument number-or-marker-p nil)

Debugger output

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
indradhanush / minikube.txt
Last active Jan 10, 2019 — forked from F21/gist:08bfc2e3592bed1e931ec40b8d2ab6f5
Minikube RBAC Quick Start
View minikube.txt
minikube start --kubernetes-version=v1.11.0 --extra-config=apiserver.authorization-mode=RBAC -v 10
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
minikube dashboard
indradhanush /
Created Aug 31, 2018 — forked from a7madgamal/
Dark mode for Slack on MacOS
  1. Close slack
  2. Open this file /Applications/
  3. Append this to it
document.addEventListener('DOMContentLoaded', function() {
   url: '',
   success: function(css) {
indradhanush / iptables_color.txt
Created Aug 8, 2018 — forked from nega0/iptables_color.txt
colorize your `iptables` output
View iptables_color.txt
## based on the blogpost here:
iptables --line-numbers -vnL |\
sed -E 's/^Chain.*$/\x1b[4m&\x1b[0m/' |\
sed -E 's/^num.*/\x1b[33m&\x1b[0m/' |\
sed -E '/([^y] )((REJECT|DROP))/s//\1\x1b[31m\3\x1b[0m/' |\
sed -E '/([^y] )(ACCEPT)/s//\1\x1b[32m\2\x1b[0m/' |\
sed -E '/([ds]pt[s]?:)([[:digit:]]+(:[[:digit:]]+)?)/s//\1\x1b[33;1m\2\x1b[0m/' |\
sed -E '/([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}(\/([[:digit:]]){1,3}){0,1}/s//\x1b[36;1m&\x1b[0m/g' |\
sed -E '/([^n] )(LOGDROP)/s//\1\x1b[33;1m\2\x1b[0m/'|\
indradhanush /
Created Jul 30, 2018 — forked from acolyer/
Containers, operating systems and other fun things from The Morning Paper
indradhanush /
Created Apr 20, 2018 — forked from wellsie/
Install kubectl (amd64)
#!/bin/bash -eux
curl -Lo /usr/local/bin/kubectl ${K8S_URL}/${K8S_VER}/bin/$ARCH/amd64/kubectl
chmod +x /usr/local/bin/kubectl
indradhanush / errors.txt
Created Apr 18, 2018
dep ensure errors
View errors.txt
$ dep ensure
Solving failure: No versions of met constraints:
v0.5.1: Could not introduce, as it has a dependency on with constraint kubernetes-1.9.0, which has no overlap with existing constraint kubernetes-1.9.1 from
v0.5.0: Could not introduce, as it has a dependency on with constraint kubernetes-1.9.0, which has no overlap with existing constraint kubernetes-1.9.1 from
v0.4.0: Could not introduce, as its subpackage is missing. (Package is required by (root).)
v0.3.0: Could not introduce due to multiple problematic subpackages:
indradhanush /
Last active Apr 16, 2018
Test instructions for reproducing RBAC error


Error: release habitat-service-broker failed: "habitat-service-broker-habitat-service-broker" already exists
make: *** [Makefile:35: deploy-helm] Error 1

Steps to reproduce

Minkube version: 0.25.0

View fail.go
// -*- mode:go;mode:go-playground -*-
// snippet of code @ 2018-04-06 15:35:29
// === Go Playground ===
// Execute the snippet with Ctl-Return
// Remove the snippet completely with its dir and all files M-x `go-playground-rm`
package main
import (
You can’t perform that action at this time.