Skip to content

Instantly share code, notes, and snippets.

Ben Gardner unshift

Block or report user

Report or block unshift

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#!/usr/bin/env bash
rpm --import
curl -o /etc/yum.repos.d/elasticsearch.repo
yum install elasticsearch
yum install kibana
chkconfig --add elasticsearch
chkconfig --add kibana
View elasticsearch.repo
name=Elasticsearch repository for 7.x packages
View kibana_api.js
const fetch = require('node-fetch')
const AUTH_TOKEN = ''
const HOST = ''
const KIBANA_ENDPOINT = '${HOST}/elasticsearch/_msearch?rest_total_hits_as_int=true&ignore_throttled=true'
const preamble = `{"index":"*","ignore_unavailable":true,"preference":1561797618673}`
const payload = {
View chrome-data-export.go
package main
import (
View dse.conf
# Template for a Spark Job Server configuration file
# When deployed these settings are loaded when job server starts
# Spark Cluster / Job Server configuration
spark {
# Spark Master will be automatically learned via the DSE
# spark.master will be passed to each job's JobContext
# master = "local[4]"
# master = "mesos://vm28-hulk-pub:5050"
# master = "yarn-client"
#!/usr/bin/env bash
sudo yum update -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
docker info
View example.js
const foo = {}
export default foo = 3
View wand.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

MIT License

Copyright (c) 2017-present Ben Gardner

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View launch.js
const chromeLauncher = require('chrome-launcher')
const DEFAULT_ARGS = [
You can’t perform that action at this time.