Skip to content

Instantly share code, notes, and snippets.

@kynx
kynx / psalm-php8-migration.xml
Created September 16, 2022 10:51
Psalm config for detecting unsafe array access when migrating PHP7 - 8
<?xml version="1.0"?>
<psalm
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorLevel="1"
phpVersion="8.0"
ensureArrayStringOffsetsExist="true"
ensureArrayIntOffsetsExist="true"
@kynx
kynx / mt-proxy.lua
Last active August 29, 2015 14:20
MySQL Proxy script for simultaneously populating tenant and master data warehouse
--[[
MySQL Proxy script for ETL process in multi-tenant datawarehouse
@author Matt Kynaston <http://kynx.github.io>
@license MIT (http://opensource.org/licenses/MIT)
Requirement:
- One database per tenant
- Multi-tenant database containing all tenant data
- Surrogate keys are unique across all tenant databases
@kynx
kynx / cfpipe.php
Created July 7, 2012 23:58
Rackspace Cloud Files command line pipe program
#!/usr/bin/php
<?php
/**
* Tool for piping files to and from Rackspace Cloud Files
*
* This is useful for doing things like backup / restore mysql dumps
*
* INSTALLATION:
*
* Make sure that the Zend Framework 1.12+ library and Kynx library are in your
@kynx
kynx / cloudfuse.spec
Created June 20, 2012 17:10
cloudfuse centos spec file
Summary: A FUSE application which provides access to Rackspace's Cloud Files
Name: cloudfuse
Version: 20120604
Release: 1%{?dist}
License: BSD
Group: System Environment/Libraries
Source0: redbo-cloudfuse-2cd8214.tar.gz
URL: http://redbo.github.com/cloudfuse/