Skip to content

Instantly share code, notes, and snippets.

@MattKetmo
MattKetmo / keybase.md
Last active October 6, 2017 08:28
keybase

Keybase proof

I hereby claim:

  • I am mattketmo on github.
  • I am mattketmo (https://keybase.io/mattketmo) on keybase.
  • I have a public key ASB-Y5EMoGxphAxm_9aRoVP4sLqkG_HSujckSoLmuvs2gAo

To claim this, I am signing this object:

@MattKetmo
MattKetmo / uuid-string.php
Last active August 29, 2015 14:13
Uuid representation
<?php
require __DIR__.'/vendor/autoload.php';
use Rhumsaa\Uuid\Uuid;
function printId(Uuid $uuid) {
$asString = $uuid->toString();
$base64 = preg_replace('/==$/', '', base64_encode($uuid->getBytes()));
@MattKetmo
MattKetmo / bamboo_create_branch.sh
Created January 13, 2015 14:38
Simple script to create branch on Bamboo
#!/bin/bash
set -e
if [ $# -lt 2 ]; then
echo "Usage: $0 <plan> <branch>"
exit 1
fi
PLAN=$1
@MattKetmo
MattKetmo / tools.md
Created July 4, 2015 15:47
Tools Infra (API, Container, etc.)

API

  • Kong — Secure, Manage & Extend your APIs and Microservices

Database

@MattKetmo
MattKetmo / openl10n-debug.php
Created July 15, 2015 21:22
Debug XLIFF file loading
<?php
<<<CONFIG
packages:
- "symfony/translation: v2.6.4"
- "symfony/config: v2.6.4"
CONFIG;
if (!isset($argv[1])) {
die('Usage: melody openl10n-debug.php <filename>.xlf');
}
@MattKetmo
MattKetmo / projects.json
Last active October 16, 2015 18:04
Openl10n API
{
"id": "110e8400-e29b-11d4-a716-446655440000",
"slug": "foobar",
"name": "Foobar",
"description": "Some foobar project description",
"source": {
"locale": "en",
"name": "English"
},
"createdBy": {