Skip to content

Instantly share code, notes, and snippets.

View shudipta's full-sized avatar

Shudipta Sharma shudipta

View GitHub Profile
@shudipta
shudipta / cp+.sh
Last active August 7, 2020 14:27
Build and run c++ source file, flags for c++11 and c++14 can be used, some simple checking for flags and arg, show help
#!/bin/bash
set -eou pipefail
export VERSION=14
export ARGS=0
export FILE=
show_help() {
echo "c++14 - builds and runs a c++ source file specified by the only argument"
echo " "
#!/bin/bash
export MINIKUBE_VER=v1.0.0
export KUBECTL_VER=`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`
show_help() {
echo "mk-kc.sh - update minikube and kubectl"
echo " "
echo "mk-kc.sh [options]"
echo " "
@tamalsaha
tamalsaha / instructions.md
Last active October 24, 2019 21:31
Linter fixes

Regular Code

utilruntime "k8s.io/apimachinery/pkg/util/runtime"

func Must(err error) {
	if err != nil {
		panic(err)
	}
}
@shudipta
shudipta / update-golang.md
Created January 9, 2020 09:15 — forked from nikhita/update-golang.md
How to update the Go version

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:

@shudipta
shudipta / colors.go
Last active July 28, 2020 00:35 — forked from ik5/colors.go
Simple golang expirement with ANSI colors
package main
// http://play.golang.org/p/jZ5pa944O1 <- will not display the colors
import "fmt"
const (
InfoColor = "\033[1;34m%s\033[0m"
NoticeColor = "\033[1;36m%s\033[0m"
WarningColor = "\033[1;33m%s\033[0m"
ErrorColor = "\033[1;31m%s\033[0m"
DebugColor = "\033[0;36m%s\033[0m"