I hereby claim:
- I am nmilford on github.
- I am nathanmilford (https://keybase.io/nathanmilford) on keybase.
- I have a public key whose fingerprint is EF54 4B5B B9E2 F051 46E3 9433 8AE5 0ECA 22FA 3F98
To claim this, I am signing this object:
# This code demonstrates how to loop through an API using limit+offset. | |
# | |
# It will get all of the results as it pages through the data by limit and | |
# offset preventing the backend that serves it from getting overwhelemed. | |
# | |
# It will then put all of that collected data into a CSV for later processing. | |
# | |
# This code was thrown together as a demonstration, no warrenties are given or | |
# implied. | |
import requests |
# Create build root | |
mkdir -p /tmp/build/etc/redis/ | |
mkdir -p /tmp/build/opt/redis/data/ | |
mkdir -p /tmp/build/opt/redis/modules/ | |
mkdir -p /tmp/build/etc/systemd/system/ | |
# Get Redis | |
wget https://github.com/antirez/redis/archive/5.0-rc1.tar.gz | |
tar zxvf 5.0-rc1.tar.gz | |
cd redis-5.0-rc1/ |
#!/usr/bin/env python | |
import performline.embedded.stdlib.clients.rest.exceptions | |
from performline.client import Client | |
from glob import iglob | |
import argparse | |
import json | |
import sys | |
class PlineExportReport(object): | |
def __init__(self, token=None, path='.'): |
# Make sure to have fpm installed as well as dependancies described here: https://github.com/scrapinghub/splash/blob/master/dockerfiles/splash/provision.sh | |
# Environment Setup | |
sudo mkdir -p /tmp/{downloads,build,target} | |
sudo mkdir -p /tmp/{downloads,build,target} | |
# Build qt-5.9.1 deb | |
sudo curl -L -o /tmp/downloads/qt-installer-noninteractive.qs https://raw.githubusercontent.com/scrapinghub/splash/master/dockerfiles/splash/qt-installer-noninteractive.qs | |
sudo sed -i 's|/opt/qt59|/tmp/target/opt/qt59|g' /tmp/downloads/qt-installer-noninteractive.qs | |
sudo curl -L -o /tmp/downloads/qt-installer.run http://download.qt.io/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run |
#!/bin/bash | |
# | |
# Bash completion for Knife 0.10+ | |
# | |
if [ $(uname) = "Darwin" ]; then | |
SED="gsed" | |
else | |
SED="sed" | |
fi |
#!/usr/bin/env python | |
from statsd import StatsClient | |
import requests | |
import json | |
statsd = StatsClient() | |
url = 'http://127.0.0.1:8050/_debug' | |
resp = requests.get(url=url) | |
metrics = json.loads(resp.text) |
import pickle | |
from base64 import b64decode | |
from zlib import decompress | |
import xml.dom.minidom | |
def parse_pickled_transcript(value): | |
value = value.encode() | |
value = b64decode(value) | |
value = decompress(value) | |
result = pickle.loads(value) |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'fileutils' | |
require 'trollop' | |
require 'pstore' | |
require 'logger' | |
require 'dante' | |
require 'pony' | |
require 'erb' |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/gocql/gocql" | |
"log" | |
"net/http" | |
"strings" | |
"time" |