The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
version: '3' # Specify the Docker Compose version | |
services: | |
adguardhome: # Define the service named 'adguardhome' | |
image: adguard/adguardhome # Use the 'adguard/adguardhome' Docker image | |
container_name: adguardhome # Set the container name to 'adguardhome' | |
restart: unless-stopped # Restart the container automatically unless stopped manually | |
ports: # Map container ports to host ports | |
# Expose port 53 on TCP and UDP for DNS queries | |
- "53:53/tcp" |
#!/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...' |
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 |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
# | |
# 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. | |
# |