Skip to content

Instantly share code, notes, and snippets.

Matt Black mafrosis

  • Melbourne, Australia
Block or report user

Report or block mafrosis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ssh_config
IdentitiesOnly yes
Host *
Compression yes
#CompressionLevel 7
Cipher blowfish-cbc
ServerAliveInterval 600
ControlMaster auto
ControlPath /tmp/ssh-%r@%h:%p
View gist:72fbe6bf93dba9fefd342011e85ec215
java.lang.Exception: Cloud or AMI instance cap would be exceeded for: Linux Slave
at org.kohsuke.stapler.HttpResponses.error(
at hudson.plugins.ec2.EC2Cloud.doProvision(
at java.lang.invoke.MethodHandle.invokeWithArguments(
at org.kohsuke.stapler.Function$MethodFunction.invoke(
at org.kohsuke.stapler.Function.bindAndInvoke(
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(
at org.kohsuke.stapler.MetaClass$1.doDispatch(
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(
at org.kohsuke.stapler.Stapler.tryInvoke(
#! /usr/bin/env python
from __future__ import print_function
import datetime
import uuid
import random
from faker import Faker

Keybase proof

I hereby claim:

  • I am mafrosis on github.
  • I am mafrosis ( on keybase.
  • I have a public key whose fingerprint is 929A 9F6E 5CA0 E607 EF88 841E 5387 4DF8 BEF7 F397

To claim this, I am signing this object:

"""[4] Migrate complex_uuid data to user table
Revision ID: dc33b414403d
Revises: 336cf482107d
Create Date: 2017-06-21 15:24:46.691582
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
mafrosis / log
Created Jun 14, 2017
docker-machine create portal
View log
mafro@takeshi:~ > docker-machine --debug create portal
Docker Machine Version: 0.12.0-rc2, build 64fa459
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver vmwarefusion
Plugin server listening at address
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
View gist:dca17dded8cb6ec86c719a3c9f407b83
2017/03/30 11:15:35 [INFO] Packer version: 1.1.0-rc2 (7866d7df149f8ce5accb9e250c0576866d1b7333+CHANGES)
2017/03/30 11:15:35 Packer Target OS/Arch: darwin amd64
2017/03/30 11:15:35 Built with Go Version: go1.8
2017/03/30 11:15:35 Detected home directory from env var: /Users/mafro
2017/03/30 11:15:35 Using internal plugin for oneandone
2017/03/30 11:15:35 Using internal plugin for vmware-vmx
2017/03/30 11:15:35 Using internal plugin for amazon-ebssurrogate
2017/03/30 11:15:35 Using internal plugin for azure-arm
2017/03/30 11:15:35 Using internal plugin for googlecompute
2017/03/30 11:15:35 Using internal plugin for hyperv-iso
mafrosis /
Last active Aug 11, 2016
Flask-Alembic sans Flask-SqlAlchemy
from flask import g
from flask import current_app as app
from flask_alembic import Alembic
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
View approve_schema.json
"$schema": "",
"id": "",
"title": "portal_approve",
"description": "A description",
"type": "object",
"properties": {
"name": {
"description": "The contact's full name",
"type": "string"
mafrosis /
Last active Aug 29, 2015
RethinkDB with Boomerang Data

RethinkDB with Boomerang Data

This guide will get you up and running with a Boomerang dataset, and subsequently run through a couple of small queries using RethinkDB.

Get A Dataset

Create a working directory:

You can’t perform that action at this time.