I hereby claim:
- I am arafsheikh on github.
- I am arafsheikh (https://keybase.io/arafsheikh) on keybase.
- I have a public key whose fingerprint is 47EF B193 D13F EC83 342D FB22 D7BB 9D0B 711B 2A51
To claim this, I am signing this object:
@echo off | |
:: BatchGotAdmin | |
:------------------------------------- | |
REM --> Check for permissions | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
REM --> If error flag set, we do not have admin. | |
if '%errorlevel%' NEQ '0' ( | |
echo Requesting administrative privileges... |
from mechanize import Browser | |
import mechanize | |
from bs4 import BeautifulSoup | |
def getRoll(): | |
global base | |
base += 1 | |
return str(base) | |
import os | |
import queue | |
import signal | |
import threading | |
import urllib | |
from bs4 import BeautifulSoup | |
URL = "http://ideone.com/recent" | |
MAX_PROCESSED = 200 # Max number of IDs to store before cleanup() | |
DELAY = 20 # Sleep between fetching recent codes webpage to reduce load |
// ==UserScript== | |
// @name reddit styles | |
// @namespace http://nucular.github.io | |
// @version 0.6.1 | |
// @description reddit themes for the common folk | |
// @copyright 2015, nucular | |
// @license MIT License | |
// @include http://www.reddit.com/* | |
// @include https://www.reddit.com/* | |
// @run-at document-start |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
import sys | |
import time | |
def throbber(): | |
while True: | |
for cursor in '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏': | |
yield cursor | |
th = throbber() |
from mechanize import Browser | |
from bs4 import BeautifulSoup | |
URL = "" | |
br = Browser() | |
res = br.open(URL) | |
soup = BeautifulSoup(res.read()) |
import json | |
import pandas as pd | |
from requests import get | |
URL = "https://paytm.com/v1/api/wallet/txnhistory?page_size=199&page_number={}" | |
COOKIE = "connect.sid=s%3AofLVI3Sfk29a5WofL892sj6BX0c1ZMgV.tWVDqXZGV3rjZ7g3%2FG4g9FozYcnfblY9Trv8lsuQbKo;" # This is an example. Set this to a valid session cookie. | |
RAW_RESP = [] |
#!/bin/bash | |
# Usage: | |
# ./aws-msk-rolling-restart.sh <msk cluster arn> | |
# ./aws-msk-rolling-restart.sh <msk cluster arn> <region> | |
# ./aws-msk-rolling-restart.sh <msk cluster arn> <region> <profile name> | |
CLUSTER_ARN=$1 | |
REGION=$2 | |
PROFILE=$3 |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.TreeMap; | |
public class TreeMultiMap<K extends Comparable<K>, V> { | |
private final TreeMap<K, List<V>> treeMap; | |
int size; | |
public TreeMultiMap() { |