Skip to content

Instantly share code, notes, and snippets.

View iToto's full-sized avatar
:octocat:
Helping to improve IAM @ GitHub

Salvatore D'Agostino iToto

:octocat:
Helping to improve IAM @ GitHub
View GitHub Profile
@ngpestelos
ngpestelos / remove-docker-containers.md
Last active May 31, 2024 15:10
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@afontaine
afontaine / git-ignore
Last active December 19, 2015 10:09
Custom git script to create/append .gitignore file with provided arguments from gitignore.io's REST api. Move to anywhere in your PATH. Generate/Append the repo's .gitignore file using the gitignore.io api git-ignore [-l] <types> ... -l If no other option is present, list available templates. If options do exist, output is redirected to stdout. …
#!/bin/sh
USAGE="[-l] <types> ..."
LONG_USAGE="Generate/Append the repo's .gitignore file using the gitignore.io api
-l
If no other option is present, list available templates.
If options do exist, output is redirected to stdout.
`curl -s http://gitignore.io/api/`"
@ashrithr
ashrithr / kafka.md
Last active March 14, 2024 21:16
kafka introduction

Introduction to Kafka

Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.

Terminology:

  • Producers send messages to brokers
  • Consumers read messages from brokers
  • Messages are sent to a topic