Skip to content

Instantly share code, notes, and snippets.

View fabdrol's full-sized avatar

Fabian Tollenaar fabdrol

View GitHub Profile
@fabdrol
fabdrol / initial-setup.sh
Last active March 24, 2025 12:24
SYT Initial Setup Script
#!/bin/bash
xcode-select --install
softwareupdate --install-rosetta --agree-to-license
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
@egaumer
egaumer / DSL Examples
Last active June 26, 2019 20:21
Some example queries using elastic.js
# simple match all query with term facet
ejs.Request()
.indices("myindex")
.types("mytype")
.query(ejs.MatchAllQuery())
.facet(
ejs.TermsFacet('url')
.field('url')
.size(20))