Skip to content

Instantly share code, notes, and snippets.

View whoisandy's full-sized avatar

Anand Annavajhala whoisandy

View GitHub Profile
@whoisandy
whoisandy / README.md
Created June 21, 2021 20:40
Kafka on Docker

Instructions

  • docker-compose up -d to setup the project
  • Run docker-compose exec kafka bash in three different terminals to check producer and consumer connectivity over docker
  • Create a topic using /bin/kafka-topics --create --topic topic-name --bootstrap-server localhost:9092
  • Start the consumer using /bin/kafka-console-consumer --topic topic-name --from-beginning --bootstrap-server localhost:9092
  • Start the producer using /bin/kafka-console-producer --topic topic-name --bootstrap-server localhost:9092
" Modeline and Notes {
" vim: set sw=4 ts=4 sts=4 et tw=78 foldmarker={,} foldlevel=0 foldmethod=marker spell:
"
" __ _ _____ _
" ___ _ __ / _/ |___ / __ __(_)_ __ ___
" / __| '_ \| |_| | |_ \ _____\ \ / /| | '_ ` _ \
" \__ \ |_) | _| |___) |_____|\ V / | | | | | | |
" |___/ .__/|_| |_|____/ \_/ |_|_| |_| |_|
" |_|
"
function l
ls -la
end
function lsd -d 'List only directories (in the current dir)'
command ls -d */ | sed -Ee 's,/+$,,'
end
function digga
dig +nocmd $argv[1] any +multiline +noall +answer;
alias e "exit"
alias c "clear"
alias b "cd -"
alias d "cd ~/Desktop"
alias w "cd ~/Work"
alias g "cd ~/Work/github"
alias cat "bat --theme=OneHalfDark $argv"
alias gop "cd ~/Golang/src/github.com/whoisandie"
alias reload "exec fish"
alias unset 'set --erase'
function l
ls -la
end
function lsd -d 'List only directories (in the current dir)'
command ls -d */ | sed -Ee 's,/+$,,'
end
function digga
dig +nocmd $argv[1] any +multiline +noall +answer;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://unpkg.com/axios@0.16.1/dist/axios.min.js"></script>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://unpkg.com/spectre.css@0.2.7/dist/spectre.min.css">
<style id="jsbin-css">
.container-fixed {
max-width: 800px;
{
"data": [
["1267056000000","28.86"],
["1267142400000","29.23"],
["1267401600000","29.86"],
["1267488000000","29.84"],
["1267574400000","29.90"],
["1267660800000","30.10"],
["1267747200000","31.28"],
["1268006400000","31.30"],
cmake_minimum_required(VERSION 3.6)
project(observing_linux_behaviour)
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES main.cpp)
add_executable(project-one ${SOURCE_FILES})
(function(name, context, definition) {
context[name] = definition();
})('foo', window, function() {
var classOnly = /^\.([\w\-]+)$/
var doc = document
var win = window
// Check if an element is an ancestor