Skip to content

Instantly share code, notes, and snippets.

@dataday
dataday / generate_email_fields.py
Created July 9, 2017 14:50
Generates a list of email fields from a list of names.
import re
from collections import Counter
# PEP 8 formatted code
class GenerateEmailFields:
version = '1.0.0'
description = 'Generates a list of email fields from a list of names.'
names_list = []
@dataday
dataday / auth-actions.js
Created May 4, 2017 13:10
Firebase PaaS - Auth Actions (storage and authentication)
/**
* # auth-actions.js
*
* Auth Actions
*
* https://firebase.google.com/docs/auth/web/password-auth
*
* @flow
*/
'use strict'
@dataday
dataday / docker-machine
Created May 4, 2017 13:03
Creates a docker machine with associated private registry credentials
#!/usr/bin/env bash
#
# author: dataday
# created: 23/02/2016
#
# Description:
# Creates docker machine with associated registry credentials
# For input variables see $SCRIPT_ROOT/environment
#
# fail on error (turned off to remain running)
@dataday
dataday / .bash_network
Created May 4, 2017 12:59
Creates a bridge between the system network and the local shell session on MAC OS
#!/usr/bin/env bash
#
# Date: 04 2015
# Author: dataday
#
# Support:
# Mac OS 10.6+, or anything with Mac's 'networksetup' tools installed.
# Bash 3.2.48(1)-release
#
# Links: