Skip to content

Instantly share code, notes, and snippets.

@udovidio
udovidio / docker-compose.yml
Created May 2, 2022 13:45 — forked from axw/docker-compose.yml
Docker Compose with Elastic Stack and APM Server 6.5.0
version: "2.1"
services:
apm-server:
image: docker.elastic.co/apm/apm-server:${STACK_VERSION:-6.5.0}
ports:
- "127.0.0.1:${APM_SERVER_PORT:-8200}:8200"
- "127.0.0.1:${APM_SERVER_MONITOR_PORT:-6060}:6060"
command: >
apm-server -e
-E apm-server.rum.enabled=true
@udovidio
udovidio / index.js
Created November 26, 2021 09:51
Download all schemas of schemastore.org
const url = 'https://www.schemastore.org/api/json/catalog.json';
const https = require('https');
fs = require('fs');
const directory = 'schemas';
const downloadFile = (url) => {
return new Promise((resolve, reject) => {
https.get(url, (resp) => {
let html = '';