Skip to content

Instantly share code, notes, and snippets.

@the100rabh
the100rabh / downtime_recorder.py
Last active February 18, 2018 16:56
It makes a CSV record of the connection status for tracking downtimes by ISP
import os
import datetime
def update_needed(status):
check_for = "UP"
if status == False:
check_for = "DOWN"
f = open("data.csv", "r")
lastLine = ""
currentLine = f.readline()
@the100rabh
the100rabh / Storm-UI-REST-API.md
Created February 16, 2016 06:36 — forked from MBtech/Storm-UI-REST-API.md
Storm UI Rest API Doc

Storm UI REST API

The Storm UI daemon provides a REST API that allows you to interact with a Storm cluster, which includes retrieving metrics data and configuration information as well as management operations such as starting or stopping topologies.

Data format

The REST API returns JSON responses and supports JSONP. Clients can pass a callback query parameter to wrap JSON in the callback function.

@the100rabh
the100rabh / sl2-setup.md
Created November 18, 2012 09:37 — forked from lprsd/sl2-setup.md
My Sublime Text 2 setup
@the100rabh
the100rabh / Git-Cheatsheet.md
Last active August 29, 2015 14:28 — forked from gregschoen/Git-Cheatsheet.md
Cheatsheets

Git Reference

Configure Local Branch to have Proper User Credentials

git config user.name "Your Name Here"
git config user.email your@email.com

Branch feature1 set up to track remote branch refs/remotes/origin/master.

@the100rabh
the100rabh / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@the100rabh
the100rabh / List of Kyoto Tycoon Clients.txt
Last active August 29, 2015 14:18
List of Kyoto Tycoon Clients
Java - https://github.com/kumai/kt4j
Python - http://github.com/studio-ousia/python-kyototycoon-binary
Python - https://github.com/tmaesaka/python-kyototycoon
PHP - https://github.com/t-cyrill/php-net-rpckyototycoon
PHP - https://github.com/moechofe/KyotoTycoon-client-protocol
PHP - https://github.com/heavenshell/php-net-kyototycoon/
Node.js - https://github.com/wezm/kyoto-client
Node.js - https://github.com/swdyh/node-kyoto-tycoon