Skip to content

Instantly share code, notes, and snippets.

View windkit's full-sized avatar

Windkit Li windkit

View GitHub Profile
@windkit
windkit / jammer.py
Last active May 8, 2019 06:51
KAFKA-8334 Kafka Occasional OffsetCommit Timeout
from kafka import KafkaConsumer
from kafka import TopicPartition
from kafka.structs import OffsetAndMetadata
import time
from threading import Thread
PROCESS_TIME=5
TEST_TOPIC="test"
@windkit
windkit / compaction_test
Created December 12, 2016 08:32
Compaction Test Plan
1. Normal Operation
1.1 Load Data (100 Know Files)
1.2 Compaction
1.3 Read Data
2. Random Bytes
2.1 Load Data (100 Know Files)
2.2 Random Bytes in AVS
2.3 Compaction
2.4 Read Data
"use strict";
var page = require('webpage').create(),
system = require('system'),
address, output, size, pageWidth, pageHeight;
if (system.args.length < 3 || system.args.length > 5) {
console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]');
console.log(' paper (pdf output) examples: "5in*7.5in", "10cm*20cm", "A4", "Letter"');
console.log(' image (png/jpg output) examples: "1920px" entire page, window width 1920px');
console.log(' "800px*600px" window, clipped to 800x600');
Tue Jun 14 08:11:02 UTC 2016
0