Skip to content

Instantly share code, notes, and snippets.

image.json

{
  "builders": [
    {
      "type": "docker",
      "image": "ubuntu",
      "commit": true
    }
 ],
@petrkohut
petrkohut / kibana-queries.md
Last active July 24, 2017 12:32
Lucine queries

Lucine queries for search in Kibana

AND

field1: "something" AND field2: "something else"

OR

field1: "something" AND (field2: "something else" OR field2: "nothing")

NOT

Filter out all messages where field1 contains string "Petr"

@petrkohut
petrkohut / check.sh
Created August 18, 2017 14:46
Check if last commit contains changes in package.json
git log -n 1 --pretty=format:%H -- package.json
@petrkohut
petrkohut / curl-with-times.sh
Created December 4, 2017 16:31
Curl with transfer time on output
curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" https://www.seznam.cz/media/img/logo_v2.png
@petrkohut
petrkohut / check-ssl.sh
Created February 20, 2018 09:20
Check remote SSL cert based on domain name
curl --insecure -v https://google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
@petrkohut
petrkohut / start-zookeeper-docker.md
Last active July 16, 2021 14:23
Zookeeper + Node.js client examples

Zookeeper in Node.js

Install and run Zookeeper server

Download image

docker pull jplock/zookeeper

Run zookeeper container

@petrkohut
petrkohut / rabbitmq_with_nodejs.md
Last active August 4, 2021 17:38
Example of reading from RabbitMQ in Node.js

RabbitMQ with Node.js

Install and run RabbitMQ server

Download image

docker pull rabbitmq:management

Run server with web management

@petrkohut
petrkohut / get_into_stopped_container.md
Created August 28, 2017 12:25
How to get into stopped container if we are not able to make it run again
@petrkohut
petrkohut / howto.md
Last active October 20, 2021 08:57
How to have redis-cli and psql installed on machine using Docker

How to install redis-cli and psql client on your machine with Docker

Preparing docker images

We will use minimalistic Linux distribution called Alpine (5MB)

Dockerfile of redis-cli

FROM alpine:latest
RUN apk --update add redis