Skip to content

Instantly share code, notes, and snippets.

View sandeepkunkunuru's full-sized avatar

Sandeep Kunkunuru sandeepkunkunuru

View GitHub Profile
@sandeepkunkunuru
sandeepkunkunuru / match.py
Created January 9, 2022 05:51
Match words from one file to many files
import os
from nltk.corpus import stopwords
sw = set(stopwords.words('english'))
f1 = "<<>>"
directory = "<<>>"
with open(f1, 'r') as file1:
@sandeepkunkunuru
sandeepkunkunuru / 6WDD
Last active May 19, 2022 12:41
A development paradigm driven by 6 W's
A development paradigm driven by
- Why?
- What?
- How?
- When?
- Where?
- Who?
These questions can be applied at each phase; be it requirements gathering, design, development, testing. It compliments
@sandeepkunkunuru
sandeepkunkunuru / excel_to_json.py
Created November 17, 2020 05:28 — forked from paulmelnikow/excel_to_json.py
Convert Excel to JSON using pandas
#!/usr/bin/env python3
'''
MIT License
Copyright (c) 2018 Paul Melnikow
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@sandeepkunkunuru
sandeepkunkunuru / awless load balanced web app.md
Last active October 14, 2017 10:12
awless : Create a load balanced web app

awless template for a load balanced web app

@sandeepkunkunuru
sandeepkunkunuru / awless stop,start instances.md
Last active December 10, 2018 14:59
awless : stop, start instances

Awless template to start/stop a list of instances

@sandeepkunkunuru
sandeepkunkunuru / awless user(s) creation.md
Last active October 14, 2017 10:15
awless : User Creation

Awless template for user creation

@sandeepkunkunuru
sandeepkunkunuru / github.sh
Created February 21, 2016 17:47
Checkout all your github repos in one go
#!/bin/bash
#script to get all repositories under a user from github
#Usage: github.sh [username]
curl -u ${1} https://api.github.com/users/${1}/repos > repoinfo
for repo_name in $( grep -oE '\"name\": "[^"]*"' repoinfo | cut -f4 -d\")
do
if [[ -d "${repo_name}" ]]; then
pushd "${repo_name}"
git pull origin master
@sandeepkunkunuru
sandeepkunkunuru / bitbucket.sh
Created February 21, 2016 17:46
Checkout all your bitbucket repos in one go
#!/bin/bash
#script to get all repositories under a user from bitbucket
#Usage: bitbucket.sh [username]
curl -u ${1} https://api.bitbucket.org/1.0/users/${1} > repoinfo
for repo_name in $( grep -oE '\"slug\": "[^"]*"' repoinfo | cut -f4 -d\")
do
if [[ -d "${repo_name}" ]]; then
pushd "${repo_name}"
git pull origin master
@sandeepkunkunuru
sandeepkunkunuru / Setting up PCP + Vector on Ubuntu.md
Last active August 29, 2015 14:19
Steps to setup PCP + Vector from source on Ubuntu 14.10

Setting up PCP

  • git clone git://git.pcp.io/pcp
  • cd pcp/
  • sudo apt-get install bison
  • sudo apt-get install flex
  • sudo apt-get install libmicrohttpd10 libmicrohttpd-dev
  • ./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --with-rcdir=/etc/init.d --with-webapi
  • sudo apt-get install qt4-dev-tools
@sandeepkunkunuru
sandeepkunkunuru / RandomTextGenerator.java
Created September 3, 2014 23:29
RadomTextGeneration
import java.util.Random;
/**
* Created by sandeep on 7/16/14.
*/
public class RandomTextGenerator {
public static String generateText(int length, char[] permissibleCharacters) {
Random rand = new Random();