These blueberry friands are great, a bit like muffins but more solid and stocky.
Ingredients
| # Get all indices sorted by size | |
| GET /_cat/indices?v=true&s=dataset.size | |
| # Get all kibana indices sorted by size | |
| GET /_cat/indices/.kibana*?v=true&s=dataset.size | |
| # Get system table data for security solution | |
| GET .kibana_security_solution_9.2.0_001/_search | |
| # This one contains rules |
| version: "3" | |
| networks: | |
| loki: | |
| services: | |
| loki: | |
| image: grafana/loki:2.9.2 | |
| ports: | |
| - "3100:3100" |
| /* eslint-disable require-jsdoc */ | |
| // @see https://github.com/py-mine/mcstatus/blob/master/mcstatus/bedrock_status.py | |
| const udp = require('dgram'); | |
| const port = 48548; // 19000; | |
| const host = 'localhost'; | |
| const MAX_WAIT_MS = 2000; | |
| const OFFLINE_MESSAGE_DATA_ID = '00ffff00fefefefefdfdfdfd12345678'; | |
| const UNCONNECTED_PING = // see https://wiki.vg/Raknet_Protocol#Unconnected_Ping | |
| '01' + '0000000000000000' + OFFLINE_MESSAGE_DATA_ID + '0000000000000000'; // fmt: skip; |
| my.domain.com { | |
| reverse_proxy localhost:40001 | |
| header -Server | |
| header -X-Powered-By | |
| log { | |
| output file /var/log/caddy/my.domain.com-access.log | |
| } | |
| @ws { | |
| header Connection *Upgrade* | |
| header Upgrade websocket |
| version: '3.7' | |
| services: | |
| app: | |
| image: coturn/coturn | |
| #ports: | |
| # - 3478:3478/tcp | |
| # - 3478:3478/udp | |
| # - 5349:5349/tcp # TLS | |
| # - 5349:5349/udp # TLS |
| #! /bin/sh | |
| # 1. Install Docker CE | |
| curl -fsSL https://raw.githubusercontent.com/sdesalas/docker-install/master/install.sh -o ~/install-docker.sh | |
| chmod + x ~/install-docker.sh | |
| ./install-docker.sh | |
| # 2. Install Caddy | |
| apt install -y debian-keyring debian-archive-keyring apt-transport-https curl | |
| curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-testing-archive-keyring.gpg |
| const SECOND = 1000; | |
| const MINUTE = 60*SECOND; | |
| const HOUR = 60*MINUTE; | |
| const DAY = 24*HOUR; | |
| const WEEK = 7*DAY; | |
| const MONTH = 30*DAY; | |
| const YEAR = 52*WEEK; | |
| function timeAgo(date) { | |
| const diff = Date.now() - new Date(date).getTime(); |
| version: '3' | |
| services: | |
| influxdb: | |
| image: influxdb:latest | |
| ports: | |
| - '8086:8086' | |
| volumes: | |
| - ./data/influxdb:/var/lib/influxdb2 | |
| environment: |
| #! /bin/bash | |
| # | |
| # CurlBench. Dont want to install apache bench? | |
| # | |
| # Runs "curl" concurrently using arguments. | |
| # | |
| # Example: Make 100 requests to some domain (concurrency = 10) | |
| # $ curl.sh http://some.domain.com 100 10 | |
| # | |
| set -B |