Skip to content

Instantly share code, notes, and snippets.

@trippingtarballs
trippingtarballs / gist:69ab0ae861ecf8c50d60
Last active October 2, 2015 15:47
set datetime to string, add an hour, and drop tz
'use strict';
var mongodb = require('mongodb');
var Q = require('q');
var databaseName = 'iwazatProduction';
var eventSlug = 'concordiaretreat2015';
var config = {
EVENT_SLUG: eventSlug,
@trippingtarballs
trippingtarballs / docker-entrypoint.sh
Created July 16, 2015 11:27
For `rbose85/rethinkdb-gke`, to manage proxy and node containers.
#!/bin/bash
# set -eo pipefail
export NODE_IP_ADDRESSES
get-node-ips () {
if [[ -n "${KUBERNETES_SERVICE_HOST}" ]]; then
echo "Checking running db-nodes ..."
SERVICE_IP=${KUBERNETES_SERVICE_HOST}
SERVICE_PORT=${KUBERNETES_SERVICE_PORT}
@trippingtarballs
trippingtarballs / egApp from blank
Created May 29, 2015 10:42
Do both ionic-cli and cordova-cli parse "config.xml" the same?
$ ionic start --appname egApp --id com.examples.egApp --sass egApp blank
$ cd egApp
$ git init
$ git add .
$ git commit -m "initial commit"
$ cordova plugin add cordova-plugin-device --save
$ git status