Skip to content

Instantly share code, notes, and snippets.

View kgrvamsi's full-sized avatar
🎯
Focusing

Vamsi Kotipalli kgrvamsi

🎯
Focusing
  • Amazon (AWS)
  • Austin,TX
View GitHub Profile
@kgrvamsi
kgrvamsi / .eslintrc.js
Created February 15, 2019 18:37 — forked from adrianhall/.eslintrc.js
A sample .eslintrc file
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"es6": true
},
"ecmaFeatures": {
// env=es6 doesn't include modules, which we are using
"modules": true
@kgrvamsi
kgrvamsi / 01_extract_crt.rb
Created January 15, 2019 05:58 — forked from miry/01_extract_crt.rb
Extract certificate from the kubernetes config.
require 'optparse'
require 'yaml'
require 'base64'
options = {
config_path: File.join(ENV['HOME'], '.kube', 'config'),
write_dir: File.join(ENV['HOME'], '.kube')
}
OptionParser.new do |opts|
@kgrvamsi
kgrvamsi / README.md
Created January 15, 2019 05:08 — forked from mhausenblas/README.md
Doing Kubernetes The Hard Way, A Walkthrough
@kgrvamsi
kgrvamsi / README.md
Created December 18, 2018 22:35 — forked from hofmannsven/README.md
My simply Git Cheatsheet
1) Github cheatsheet : https://education.github.com/git-cheat-sheet-education.pdf
2) ML performance improvement cheatsheet : https://s3.amazonaws.com/MLMastery/ml_performance_improvement_cheatsheet.pdf?__s=hspfz83o8wr7xwqyyxpp
3) William Chen probability cheatsheet : http://www.wzchen.com/probability-cheatsheet/
4) MongoDb cheatsheet : https://blog.codecentric.de/files/2012/12/MongoDB-CheatSheet-v1_0.pdf
5) Machine Learning Algo's in python and R cheatsheet : https://www.analyticsvidhya.com/wp-content/uploads/2016/08/MLalgorithms-.pdf
6) Stastics cheatsheet: http://www.cheat-sheets.org/saved-copy/427513-Statistics-Reference-Cheatsheet.pdf
7) Machine learning another cheat sheet : http://devzum.com/2015/06/best-machine-learning-cheat-sheets/
8) R basic cheatsheet: https://www.rstudio.com/wp-content/uploads/2016/10/r-cheat-sheet-3.pdf
9) R advance cheatsheet: https://www.rstudio.com/wp-content/uploads/2016/02/advancedR.pdf
10) R regular exp cheatsheet: https://www.rstudio.com/wp-content/uploads/2016/09/RegExChe
@kgrvamsi
kgrvamsi / install-tensorflow.sh
Created August 27, 2018 04:13 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@kgrvamsi
kgrvamsi / README
Created August 16, 2018 03:55 — forked from kalxas/README
Customize ubuntu live image
# first, get the iso from http://releases.ubuntu.com/
# make working dir hierarchy in /tmp (you'll need enough ram for this)
sudo mkdir -p /tmp/custom/{_squash,_work,iso,newiso,newlive,project}
sudo mount -o loop ~/Downloads/ubuntu-15.10-desktop-amd64.iso /tmp/custom/iso
sudo mount -t squashfs /tmp/custom/iso/casper/filesystem.squashfs /tmp/custom/_squash
sudo mount -t overlay overlay -onoatime,lowerdir=/tmp/custom/_squash,upperdir=/tmp/custom/project,workdir=/tmp/custom/_work /tmp/custom/newlive
# customize the live fs with systemd-nspawn (a better chroot)
sudo systemd-nspawn --bind-ro=/etc/resolv.conf:/run/resolvconf/resolv.conf --setenv=RUNLEVEL=1 -D /tmp/custom/newlive
@kgrvamsi
kgrvamsi / ansible-summary.md
Created July 3, 2018 20:09 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@kgrvamsi
kgrvamsi / LoginController.js
Created June 27, 2018 01:42 — forked from psi-4ward/LoginController.js
Sails.JS JWT Auth
// controllers/LoginController.js
module.exports = {
index: function(req, res) {
var email = req.param('email');
var password = req.param('password');
// delay everthing to prevent bruteforce, dos and timing attacks
setTimeout(function() {
import requests
import sys
import time
from opentracing_instrumentation.request_context import get_current_span, span_in_context
from opentracing.ext import tags
from opentracing.propagation import Format
from opentracing_instrumentation.client_hooks import install_all_patches
from jaeger_client import Config