Skip to content

Instantly share code, notes, and snippets.

View ycombinator's full-sized avatar

Shaunak Kashyap ycombinator

  • Elastic
  • San Jose, CA
View GitHub Profile
@ycombinator
ycombinator / convert.py
Created July 9, 2020 00:42
Field aliasing
import yaml
def print_yaml(yaml_list):
print(yaml.safe_dump_all(yaml_list))
def make_yaml_list(tree):
yaml_list = []
for key in tree:
item = {
"name": key
@ycombinator
ycombinator / package-dashboard-id-prefixes.sh
Last active October 26, 2020 02:39
Prefix Kibana asset IDs with package names
#!/bin/bash
# Find dashboards to fix
to_fix=""
for p in packages/*; do
pkg=$(echo $p | cut -d"/" -f 2)
echo "Checking package $pkg..."
dashboard_filenames=$(find $p/kibana/dashboard -type f 2>/dev/null | cut -d "/" -f 5)
echo "Dashboards: "
@ycombinator
ycombinator / keybase.md
Created June 11, 2021 19:35
keybase.md

Keybase proof

I hereby claim:

  • I am ycombinator on github.
  • I am ycombinator (https://keybase.io/ycombinator) on keybase.
  • I have a public key whose fingerprint is 88A0 9B75 97D9 3C72 4661 E601 2F4B ECBF E8DD 0F18

To claim this, I am signing this object: