Skip to content

Instantly share code, notes, and snippets.

@pkafel
pkafel / kafka-command.md
Last active March 3, 2024 13:49
Kafka command-line tools (examples in OSX)

Kafka command line tools

List (not complete)

  • zookeeper-server-start.sh - starting Zookeeper
  • kafka-server-start.sh - start Kafka
  • kafka-topics.sh - manage topics in Kafka
  • kafka-console-producer.sh - script for sending messages to Kafka topic
  • kafka-console-consumer.sh - script for consuming messages from Kafka topic
  • kafka-run-class.sh - script for running different tools (list of tools can be found here)
@BretFisher
BretFisher / docker-for-mac.md
Last active May 6, 2024 07:28
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@arjunattam
arjunattam / main.m
Last active May 12, 2018 18:32
decode time aware polyline in objective-c
// main.m
#import <Foundation/Foundation.h>
// Main methods declaration
NSArray *getDecodedPolyline(NSString *);
NSArray *getLocationsTillTime(NSArray *, NSDate *);
// Helper methods declaration
NSArray *getDecodedDimensionFromPolyline(NSString *, int);
NSArray *getFormattedDimensions(NSNumber *, NSNumber *, NSNumber *);
@kevin-smets
kevin-smets / 1_kubernetes_on_macOS.md
Last active May 5, 2024 10:12
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites