Skip to content

Instantly share code, notes, and snippets.

View purukaushik's full-sized avatar

Purush Swaminathan purukaushik

  • Austin, TX
View GitHub Profile
@purukaushik
purukaushik / init.el
Last active June 25, 2016 18:23
My ~/.emacs.d/init.el
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(setq package-list '(autopair el-get form-feed gist gh logito pcache git f dash s dash s git-gutter+ dash git-commit with-editor dash async dash idle-highlight-mode jedi auto-complete popup jedi-core python-environment deferred epc ctable concurrent deferred jedi-core python-environment deferred epc ctable concurrent deferred js2-mode json-mode json-snatcher json-reformat json-reformat json-snatcher logito lua-mode markdown-mode pcache popup python-environment deferred s sublime-themes web-mode with-editor dash async yasnippet))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(dolist (package package-list)
@purukaushik
purukaushik / packages.el
Created June 25, 2016 17:37
My installed emacs packages
(autopair el-get form-feed gist gh logito pcache git f dash s dash s git-gutter+ dash git-commit with-editor dash async dash idle-highlight-mode jedi auto-complete popup jedi-core python-environment deferred epc ctable concurrent deferred jedi-core python-environment deferred epc ctable concurrent deferred js2-mode json-mode json-snatcher json-reformat json-reformat json-snatcher logito lua-mode markdown-mode pcache popup python-environment deferred s sublime-themes web-mode with-editor dash async yasnippet)
@purukaushik
purukaushik / TSS-Test-Cases
Last active August 10, 2016 17:29
Test cases for telemetry-schema-services web service
Endpoints to test:
1. http://schemas.dev.mozaws.net/schema/telemetry - Shows docTypes under telemetry
2. http://schemas.dev.mozaws.net/schema/telemetry/<docType> for each docType from 2 - go to version page (6).
3. http://schemas.dev.mozaws.net/validate/telemetry - redirect to 1
4. http://schemas.dev.mozaws.net/validate/telemetry/<docType> - redirect to 2
@purukaushik
purukaushik / ulb811.md
Last active August 18, 2016 16:30
UltraLightbeam notes

UltraLightBeam next steps###

  1. Watching HN, blog post comments and github issues after Asa's post goes public
  2. Leaving out dashboard works till v2 release
  3. Reverse the sorting to show best networks instead of the worst
  4. Better measurements than dashboards for now.
  5. Scalability issues

Network page

  1. Click on ad network -> dashboard with two histograms - filesize, load time
@purukaushik
purukaushik / Schemas.md
Last active August 12, 2016 14:42
Firefox telemetry schema service status 8/12

What to document

telemetry-schema-service

v1.0

  1. release notes

  2. API.md

@purukaushik
purukaushik / update_git_repos.sh
Created August 15, 2016 17:05 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@purukaushik
purukaushik / mongo_ec2_setup.md
Last active August 27, 2016 16:27
AMI EC2 MongoDB installation and setup

Setting up EC2 AMI for MongoDB

  1. Launch an Amazon Linux Instance on ec2 - choose 30 GB of EBS storage- free-tier eligible
  2. ssh into the AMI box
  3. Use this to install mongodb - https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/
  4. Use this to create admin user - https://docs.mongodb.com/manual/tutorial/enable-authentication/
  5. Setup a read only user for running fetch queries
  6. https://docs.mongodb.com/manual/reference/configuration-options/#security.authorization for restarting mongod service with auth
@purukaushik
purukaushik / ipyth_spark.md
Last active September 1, 2016 08:14
iPython pyspark notebook settings

install findspark ( pip install -e . after cloning https://github.com/minrk/findspark, and cd findspark)

fire a notebook (jupyter notebook)

enter the following:

import findspark
import os
findspark.init()
@purukaushik
purukaushik / docker_swarm.md
Last active September 20, 2016 00:05
Docker Swarm

Steps to setup a local docker swarm cluster with Docker Machine, swarm.

1. docker-machine create -d virtualbox local
2. eval "$(docker-machine env local)"
3. docker run swarm create
@purukaushik
purukaushik / spark-hadoop-setup.md
Last active September 22, 2016 02:00
Hadoop-Spark setup on standalone ubuntu
  1. Download Hadoop and install.

  2. Setup $HADOOP_HOME

  3. Install openssh-server and run

    sudo /etc/init.d/ssh restart
    

    Check if ssh is running on port 22 by:

netstat -tupln | grep 22