Skip to content

Instantly share code, notes, and snippets.

View varrunr's full-sized avatar
💭
Hacking

Varrun Ramani varrunr

💭
Hacking
  • San Francisco, CA
View GitHub Profile
### Keybase proof
I hereby claim:
* I am varrunr on github.
* I am varrunr (https://keybase.io/varrunr) on keybase.
* I have a public key ASDT3Wsct_btXknukpPhzZZ9cXnP2g5o1SFE1fHGbbcfLwo
To claim this, I am signing this object:
# Start the server in DEV mode
vault server -dev
# Write key value pair
vault write secret/<name of secret> <data kv pairs>
# Read secret
vault read secret/<name of secret>
# Read secret as JSON
@varrunr
varrunr / vimrc
Last active June 18, 2021 20:46
.vimrc
filetype indent on
set hlsearch
set expandtab
set shiftwidth=4
set tabstop=4
set backspace=eol,start,indent
set number
set smarttab
set term=builtin_xterm
syntax on
@varrunr
varrunr / genome-plot.py
Created May 14, 2012 09:47
Sample-matplotlib-plt
import matplotlib.pyplot as plt
import sys
def populate(filename,num):
x = []
y = []
f = open(filename,"r")
contents = f.read()
lines = contents.split('\n')
lines = lines[0:num]
@varrunr
varrunr / puni2uni.html
Created May 4, 2012 04:50
punicode to unicode
<html>
<head>
<script type="text/javascript" src="punycode.js"> </script>
</head>
<body>
<script type="text/javascript">
var url = 'http://xn--oogle-qmc.com';
result = url.replace(/.*?:\/\//g, "");
alert(punycode.toUnicode(result));