Skip to content

Instantly share code, notes, and snippets.

Data Platform API
---
- Project
- Metadata
- Environments
- Source Code
- Infrastructure
- Storage
- Staging Area
from mimesis.schema import Field, Schema
import json
def generate(schema_definition, iterations=1, seed=None, language='en'):
"""
>>> user = { 'id': 'uuid','name': 'person.full_name' }
# Should return a single user account record as a list
>>> user_data = generate(user, seed='TEST_DATA')

Keybase proof

I hereby claim:

  • I am patrickyoung on github.
  • I am patrickyoung (https://keybase.io/patrickyoung) on keybase.
  • I have a public key ASBaqctVA-1XWRb2eF3M7cTPkV1S-y5LziFeAlrPmEZlLAo

To claim this, I am signing this object:

@patrickyoung
patrickyoung / vpn.sh
Last active July 23, 2017 20:48
This script provides a simple API to control VPN connections in macOS.
#!/bin/sh
# This script provides a simple API to control VPN connections in macOS.
DEFAULT_VPN="$(scutil --nc list | awk '/IPSec/ {print $5}' | sed 's/\"//g')"
COMMAND=$1
VPN_NAME=${2:-${DEFAULT_VPN}}
function turn_on_vpn() {
echo $(scutil --nc start ${VPN_NAME})
from functools import wraps
import logging
user_id = "user"
people_db = [
{'id': '001', 'name': 'Andrew M. Tatum'},
{'id': '002', 'name': 'Frances G. Marzano'},
{'id': '003', 'name': 'Tammy R. Green'},]
@patrickyoung
patrickyoung / gist:8053c1224ee0633a1657
Created June 19, 2015 02:27
simple_redaction_example
Patrick Smith
100 Maple View Ct.
Roswell, GA 30069
email patrick.smith@email.com
phone 414-555-1212