Skip to content

Instantly share code, notes, and snippets.

View mrafayaleem's full-sized avatar

Rafay Aleem mrafayaleem

View GitHub Profile
@mrafayaleem
mrafayaleem / docker-wwi.sh
Created April 21, 2020 01:35 — forked from alextercete/docker-wwi.sh
Create a docker container for the WideWorldImporters database
#!/bin/bash
# See: https://docs.microsoft.com/en-us/sql/linux/tutorial-restore-backup-in-sql-server-container
SA_PASSWORD=<YourStrong!Passw0rd>
function show_info {
tput setaf 6; echo $1; tput sgr 0
}
show_info 'Pulling the container image...'
@mrafayaleem
mrafayaleem / benchmark-commands.txt
Created March 26, 2016 03:47 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
@mrafayaleem
mrafayaleem / gh-pages-tips.md
Created January 20, 2016 18:24 — forked from jedschneider/gh-pages-tips.md
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials

#
# This Python script makes a summary of a football game by cutting
# the video around the 10 % loudest moments, which generally
# include the goals and other important events.
# For more details, see this blog post:
# http://zulko.github.io/blog/2014/07/04/automatic-soccer-highlights-compilations-with-python/
#
# LICENCE: Creative Commons 0 - Public Domain
# I, the author of this script, wave any rights and place this work in the public domain.
#