Skip to content

Instantly share code, notes, and snippets.

View matthewfitz's full-sized avatar

Matt Fitzgerald matthewfitz

View GitHub Profile
@matthewfitz
matthewfitz / keycloak.sh
Last active November 13, 2017 17:58 — forked from paoloantinori/keycloak.sh
Keycloak Admin API Rest Example
brew install jq
<?php
require 'path-to-Stripe.php';
if ($_POST) {
Stripe::setApiKey("YOUR-API-KEY");
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken']))
throw new Exception("The Stripe Token was not generated correctly");
@matthewfitz
matthewfitz / csv_splitter.py
Created November 29, 2011 19:07 — forked from palewire/csv_splitter.py
A Python CSV splitter
import os
def split(filehandler, delimiter=',', row_limit=10000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
"""
Splits a CSV file into multiple pieces.
A quick bastardization of the Python CSV library.
Arguments:

Im forking this so its in my history

Some rules

Configs exist in three levels:

  1. local
  2. dev | stg | prod
  3. default (no environment)