Skip to content

Instantly share code, notes, and snippets.

Shankar Vasudevan vshank77

Block or report user

Report or block vshank77

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
@vshank77
vshank77 / pyinstall.sh
Created Sep 22, 2019
Parallel Python Install
View pyinstall.sh
#/bin/bash
brew unlink python
brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
brew switch python 3.6.5_1
brew switch python 3.7.4
View settings.xml
<?xml version="1.0" encoding="UTF-8" ?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>jfrog-repository</id>
<username>sanjeet</username>
<password>${your-pwd}</password>
</server>
</servers>
@vshank77
vshank77 / .zshrc
Last active May 20, 2019
ZSH Settings
View .zshrc
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="shanks"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd/mm/yyyy"
plugins=(git osx z)
# User configuration
#export MANPATH="/usr/local/man:$MANPATH"
export PATH="$HOME/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/MacGPG2/bin:/opt/local/bin"
@vshank77
vshank77 / ant.xml
Last active Feb 9, 2018
es-integration-ant
View ant.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="integration-tests" xmlns:if="ant:if" xmlns:unless="ant:unless">
<!-- our pid file for easy cleanup -->
<property name="integ.pidfile" location="${project.build.directory}/integration-tests/run/es.pid"/>
<!-- if this exists, ES is running (maybe) -->
<available property="integ.pidfile.exists" file="${integ.pidfile}"/>
<!-- name of our cluster, maybe needs changing -->
<property name="integ.http.port" value="9200"/>
@vshank77
vshank77 / cficlassification.json
Last active Nov 20, 2017
CFI Classifications
View cficlassification.json
{
"ES": {
"cat": "Equity",
"group": "Common / Ordinary shares",
"attr1": {
"V": "Voting",
"N": "Non-Voting",
"R": "Restricted",
"E": "Enhanced voting"
},
View Keybase.md

Keybase proof

I hereby claim:

  • I am vshank77 on github.
  • I am vshank77 (https://keybase.io/vshank77) on keybase.
  • I have a public key ASBPICXY-ZTbBLtgzBvSDUYhVstisYSzJfSaKdAbb6J1Xwo

To claim this, I am signing this object:

@vshank77
vshank77 / CfiCodeGen.java
Created May 2, 2017
Generating CFI Codes
View CfiCodeGen.java
package io.abaci.dataserver.handlers.object;
import com.google.common.collect.ImmutableMap;
import lombok.RequiredArgsConstructor;
import org.testng.annotations.Test;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
@vshank77
vshank77 / Cors-on-nginx.sh
Created Jan 5, 2017
Enable CORS on Nginx
View Cors-on-nginx.sh
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
add_header 'Access-Control-Allow-Origin' '*';
@vshank77
vshank77 / docker_aliases.sh
Last active Apr 29, 2019
Docker clean up commands
View docker_aliases.sh
alias dockstart='docker-machine start default'
alias dockrestart='docker-machine restart default'
alias dockstop='docker-machine stop default'
alias dock='eval "$(docker-machine env default)"'
alias dockswm='eval "$(docker-machine env -swarm swarm-master)"'
alias dps='docker ps -a'
alias dqf='docker images -qf "dangling=true"'
alias ddqf='docker rmi -f $(docker images -qf "dangling=true")'
alias ddrmi='docker rmi -f $(docker images | grep -e "latest" -e "SNAPSHOT" | awk '"'"'{print $3}'"'"')'
alias dimg='docker images'
@vshank77
vshank77 / LicenseReader.java
Created Oct 26, 2015
Importing Maven License into Excel
View LicenseReader.java
import com.google.common.collect.ComparisonChain;
import com.google.common.collect.Sets;
import com.google.common.io.Resources;
import org.testng.annotations.Test;
import java.util.List;
import java.util.Objects;
import java.util.TreeSet;
import static com.google.common.base.Charsets.UTF_8;
You can’t perform that action at this time.