Skip to content

Instantly share code, notes, and snippets.

View jameyquinn's full-sized avatar

James E Quinn IV jameyquinn

View GitHub Profile
@jameyquinn
jameyquinn / running-locally.md
Created October 2, 2018 13:58
dazn/help-etl kibana

kibana

useful for checking query results

install kibana

curl -O https://artifacts.elastic.co/downloads/kibana/kibana-6.2.4-darwin-x86_64.tar.gz
shasum -a 512 kibana-6.2.4-darwin-x86_64.tar.gz 
tar -xzf kibana-6.2.4-darwin-x86_64.tar.gz
cd kibana-6.2.4-darwin-x86_64/
@jameyquinn
jameyquinn / gist:20eb39f4e3bf3b086536332b7a6a9386
Created October 2, 2018 14:09
dazn/help-etl local environment
// run-local copies envars and applies locally
./scripts/run-local
export ELASTICSEARCH_HOST=localhost:9200
export S3_BUCKET_NAME=test-bucket-help-api-suggest
export ENVIRONMENT=dev
export AWS_REGION=eu-central-1
// export AWS_PROFILE=dazndev
/**
* Fisher-Yates in-place sort
* @param {Array} primitive items.
*/
const shuffle = a => {
for (let i = a.length - 1; i > 0; i--) {
const j = Math.floor(
Math.random() * (i + 1)
);
[a[i], a[j]] = [a[j], a[i]];
@jameyquinn
jameyquinn / NTP redirects
Last active February 12, 2026 20:21
Redirect external NTP requests to Homelab
# NTP Server DNS Redirect List for AdGuard Home
#
# Purpose: Redirect all common NTP time server domains to your local NTP server
# Usage: Add as custom filter list in AdGuard Home (Filters → Custom filtering rules)
# Or host on GitHub Gist and add as URL-based filter
#
# Replace 10.0.10.1 with your local NTP server IP
#
# Last updated: 2025-02-12
#