Skip to content

Instantly share code, notes, and snippets.

View kavyasukumar's full-sized avatar
🤔

Kavya Sukumar kavyasukumar

🤔
View GitHub Profile
@kavyasukumar
kavyasukumar / Convert-ExcelToCsv.ps1
Created November 6, 2014 18:29
Powershell Excel-to-csv
param(
$inputPath,
$outputPath
)
$xlCSV=6
$inputPath = (Resolve-path $inputPath).Path
$outputpath = (Resolve-path $outputpath).Path
get-childitem $inputPath -File | foreach {
write-host "processing $_ "
@kavyasukumar
kavyasukumar / load_ssh
Created June 22, 2015 18:44
Load ssh key
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
@kavyasukumar
kavyasukumar / README.md
Last active May 28, 2020 03:23 — forked from ryanmark/README.md
Import issues from markdown formatted text into github issues

Generate Github Issues

This script will read a markdown-formatted text file and generate milestones and issues in a Github project.

The script will go line by line, looking for lines that start with #, - or *. Lines that start with # will create a new milestone. All bulleted items after a header will be created as issues and assigned to the last milestone.

Milestones will be automatically assigned due-dates. Starting with the closest Friday at 1:30pm

#!/bin/bash
# Track Twitter handles' stats every 30 seconds and dump into CSV
# Prereq: Install and set up t. Instruction at http://sferik.github.io/t/
COUNTER=0
# Backup current file
cp track.csv backup-`date +"%m-%d-%y"`.csv
# Write header to new file
t users --csv -l @realdonaldtrump @hillaryclinton | head -n1 > track.csv
while [ true ]; do
@kavyasukumar
kavyasukumar / setup-vox-middleman.sh
Last active July 21, 2016 17:24 — forked from ryanmark/setup-vox-middleman.sh
Setup or update the voxmedia middleman rig
#!/bin/bash
#
# To run this script, enter this into your terminal:
# bash -c "$(curl -fsSL https://gist.github.com/ryanmark/9ec33d5d4ee572f7853e/raw/setup-vox-middleman.sh)"
FAVORITE_RUBY=2.2.2
echo Setting up Vox Media Middleman rig.
echo
trap "exit 1" SIGINT;
@kavyasukumar
kavyasukumar / tool_walkthrough.sh
Last active July 21, 2016 18:07
Data tool walkthrough
# SETUP
bash -c "$(curl -fsSL https://gist.githubusercontent.com/kavyasukumar/6542db36f4e8c792204ad9a0a47254a9/raw/7147d4d42140363ffc2ff2dcd7ddfb7a18e77807/setup-vox-middleman.sh)"
# CLEANUP
cd ~/.middleman/voxmedia
git checkout master
git branch -D kinto
gem uninstall kinto_box
# MANUAL
require 'kinto_box'
require 'json'
require 'nokogiri'
require 'httparty'
# Load kinto connection information from datastore-config.json
config = JSON.parse(File.read('datastore-config.json'))
# Create a new Kinto connection
kinto = KintoBox.new(config['kinto_server'])
#!/bin/bash
# USAGE: bash -c "$(curl -fsSL https://gist.github.com/kavyasukumar/2e8fbdcaf12375cd60c395d0a82f99a8/raw/update-blueprints-shared.sh)" {NAME OF THE SHARED BRANCH} {COMMIT MESSAGE STRING}
shared_branch=$1
commit_msg=$2
repos=(
"autotune-quiz"
"autotune-personality-quiz"
// Encoded Query string parameter
var qsp = "cnJyZGRkZGRkcmRyZHJkcnJyZGRkZGRkcnJycnJyZGRkZGRycmRyZGRkcnJycnJkZGRyZHJ8MTQ3OTQyMjY4OQ==";
// Decoding
var decodedData = atob(qsp);
// decodedData is "rrrddddddrdrdrdrrrddddddrrrrrrdddddrrdrdddrrrrrdddrdr|1479422689"
r => AK
r => AL
r => AR
r => AZ
d => CA