Skip to content

Instantly share code, notes, and snippets.

Vardhan vrdhn

Block or report user

Report or block vrdhn

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
vrdhn / docker -- Dockerfile
Created Jul 31, 2019
zetasql docker compilation
View docker -- Dockerfile
FROM ubuntu:latest
FROM ubuntu:latest
RUN apt-get -y update
RUN apt-get -y install wget pkg-config zip g++ zlib1g-dev unzip python3 git make bash-completion python apt-utils
RUN wget
RUN dpkg -i bazel_0.26.1-linux-x86_64.deb
RUN apt-get -y install openjdk-8-jdk-headless
View gist:7f0829868346fd82cf16734897c92f5f
View .bashrc
## Minimalism.
export PATH=/usr/bin
## I am in India So...
export TZ=Asia/Kolkata
export LANG=en_IN.UTF-8
alias v='vim ~/ ; . ~/'
vrdhn / launcher
Created Dec 18, 2014
a dmenu+xdotool launcher which can paste to terminal and show often used commands at top
View launcher
# launcher (C)
# A dmenu & xdotool based launcher
# Features
# * Select from previously entered commands, or enter new one
# * Listing sorted by usage frequency
# * pasted to application using xdotool
# * terminate by '&' to launch as X application
# * manipulate ~/.config/launcher.db to add/remove/bump usage count
View linux_clocks.c
** Print time taken by various clocks
--- resolutions ---
CLOCK_BOOTTIME : 0.000000001
CLOCK_MONOTONIC : 0.000000001
View update to a version of gradle
## Simple bash function to upgrade to a version to gradle
echo Gradle Version $ver / $dver
View gist:aae4cc8a6efa8817ade8bac2f8dd3fb0
(add-to-list 'package-archives
'("melpa" . "") t)
(add-to-list 'package-archives
'("marmalade" . ""))
(defun fix ()
vrdhn /
Created Feb 26, 2017
elm package install, by cloning specific branch from a shared locally cloned git repo
## elm-get owner/repo ver
## Login into the docker with proper ID/GID
## just pass -e ID="$(id)" .. and script takes care of rest
## Useful with mounting local filesystem
if [ "x$ID" = "x" ] ; then
echo "ID not passed, you get root shell"
exit 0
View gist:c256bb736b777d235d37
files,err := filepath.Glob( woextn + "/*.lbk")
if err != nil {
for e := range files {
//// cannot use e (type int) as type string in argument to makeNode
got := makeNode(&n,e)
You can’t perform that action at this time.