Skip to content

Instantly share code, notes, and snippets.

View jonsoini's full-sized avatar
💭
Wrangling bits

Jon Soini jonsoini

💭
Wrangling bits
View GitHub Profile
@jonsoini
jonsoini / $Superset on Mac M-series.md
Last active February 6, 2024 20:07
Getting SuperSet running on Mac ARM with Docker Compose

Getting SuperSet running...

This is how I got SuperSet running on a Mac M1 machine after numerous errors from the install documentation. There are a few open issues related to running 'docker compose up' on a mac.

Currently images are for AMD64 and emulated... this should be updated in the future.

Open issues that I experienced in some form or another, in getting Superset running:

@jonsoini
jonsoini / signal-data-parser.py
Last active July 13, 2023 00:41
Run some basic analytics on your signal desktop data.
# This takes the default text output from SigTop and parses it
# https://github.com/tbvdm/sigtop
# This uses the default text format.
# It probably would have been better to start with the sigtop json or sqlite export, ah well, this was a fun experiment.
# example CLI command:
# python3 signal-data-parser.py my-sigtop-file.txt --json my-output.json
import argparse
@jonsoini
jonsoini / elastic-pi.md
Last active October 23, 2019 15:41 — forked from andig/elastic-pi.md

Installing elastic beats on Raspberry Pi

At time of writing elastic.co does not provide ARM builds for raspberry. This tutorial describes how to compile e.g. filebeat and run in on Raspberry Pi3.

Prerequisites

You'll need Git, Go (>1.8) and Python with virtualenv.

Go 1.8+ (currently 1.11)

@jonsoini
jonsoini / dummy_data.py
Last active March 19, 2019 16:29
Dummy data script for elastic (or whatever)
# Script to fake data into Elastic (or anything really)
# Uses Faker for lat/long bounding and other niceties so 'pip install faker' first
# To run it a bunch use something like 'watch -n 1 python dummy_data.py' (every 1s)
import json, requests, datetime, random
from faker import Faker
fake = Faker()
# Host for ES
host = "http://localhost:9200"