Skip to content

Instantly share code, notes, and snippets.

Matt Black mafrosis

  • MACHIN SHIN
  • 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(HttpResponses.java:83)
at hudson.plugins.ec2.EC2Cloud.doProvision(EC2Cloud.java:342)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
View pg_fake.py
#! /usr/bin/env python
from __future__ import print_function
import datetime
import uuid
import random
from faker import Faker
View keybase.md

Keybase proof

I hereby claim:

  • I am mafrosis on github.
  • I am mafrosis (https://keybase.io/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:

View migrate_complex_uuid_data_to_user_table.py
"""[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
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 127.0.0.1:50004
() 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
mafrosis / db.py
Last active Aug 11, 2016
Flask-Alembic sans Flask-SqlAlchemy
View db.py
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": "http://json-schema.org/schema#",
"id": "http://example.com/schemas/approve_schema.json",
"title": "portal_approve",
"description": "A description",
"type": "object",
"properties": {
"name": {
"description": "The contact's full name",
"type": "string"
@mafrosis
mafrosis / rethinkdb_boomerang.md
Last active Aug 29, 2015
RethinkDB with Boomerang Data
View rethinkdb_boomerang.md

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.