Skip to content

Instantly share code, notes, and snippets.

View gregarndt's full-sized avatar

Greg Arndt gregarndt

  • Redox
  • Chicago, IL
View GitHub Profile
@clarkdave
clarkdave / nconf-yaml.js
Created August 20, 2014 11:19
Load YAML config files using nconf (nodejs)
var nconf = require('nconf');
var yaml = require('js-yaml');
var app_config = __dirname + '../config/application.yml';
// load cmd line args and environment vars
nconf.argv().env();
// load a yaml file using a custom formatter
nconf.file({
@djmitche
djmitche / 00_tldr.md
Last active July 25, 2016 01:57
(1118394) Notes on running Android builds in TaskCluster

Goal

"Drive Android builds out of taskcluster" .. meaning to run builds of Firefox for Android (we don't build Android) within taskcluster.

The idea is to get something non-b2g from releng running in taskcluster, both as a learning opportunity and as a proof of concept.

Task List

  • build a docker image for building Android using the tools in alder
  • build Android by hand / shell script in that docker image
  • do a basic Android build in a simple, docker-compatible way
  • handle tooltool cache
#! /bin/bash -ex
# This script copies the contents of the "scripts" folder into a docker
# container using tar/untar the container id must be passed.
DIRNAME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker exec $1 mkdir -p $2
cd $DIRNAME
tar -cv * | docker exec -i $1 tar -x -C $2
# pip install pypdf2
# Thanks to sphilp for updates
########
# USAGE:
########
# You will need to enter your email creds so you can receive the bonus statements
# which you can then review, edit, and forward (sending directly could be dangerous)
#
# This is pigging backing on gmail's API to send the email to yourself
@endeepak
endeepak / influxdb_measurement_series_count_per_measurement.sh
Created January 30, 2017 14:05
Influxdb : Print cardinality / series count per measurement
#!/usr/bin/env bash
if [ "$#" -ne 1 ]
then
echo "Usage: $0 <db_name>"
exit 1
fi
db_name=$1