Skip to content

Instantly share code, notes, and snippets.

View MattKetmo's full-sized avatar

Matt Ketmo MattKetmo

View GitHub Profile
@MattKetmo
MattKetmo / fastcgi.conf
Created December 8, 2015 21:40
FastCGI nginx config
server {
listen 80;
server_name fastcgi.dev;
location / {
fastcgi_pass 127.0.0.1:6000;
include fastcgi_params;
fastcgi_param CONTENT_LENGTH $content_length;
@MattKetmo
MattKetmo / .openl10n.yml
Last active November 25, 2015 13:19
Openl10n push/pull options
files:
-
pattern: path/to/messages.<locale>.yml
options:
# Options when pushing (importing) translation files:
# - reviewed = Mark directly all translations as approved
# - erase = Replace existing translations by the ones in the files
# - clean = Delete translations which are not present in the files anymore
push: [reviewed, erase, clean]
@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": {
@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 / 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 / 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