Skip to content

Instantly share code, notes, and snippets.

View till's full-sized avatar
💀
writing yaml

Till! till

💀
writing yaml
View GitHub Profile
#!/usr/bin/env python
import sys
import os
import boto
import pprint
del_flag = ''
if len(sys.argv) > 1:
del_flag = sys.argv[1]
#!/usr/bin/env python
import sys
import boto
import pprint
del_flag = ''
if len(sys.argv) > 1:
del_flag = sys.argv[1]
{
"repositories": [
{
"type": "package",
"package": {
"name": "pear/xml_parser",
"version": "1.2.6",
"source": {
"reference": "b4b5cff557ffc2a3591fd0bb62ca28c0aa2edbb8",
"type": "vcs",
diff --git a/docs/backend_interface.md b/docs/backend_interface.md
index 7191f28..bbfc6f0 100644
--- a/docs/backend_interface.md
+++ b/docs/backend_interface.md
@@ -5,11 +5,12 @@ Backend modules are Node.js [modules][nodemods] that listen for a
number of events emitted from StatsD. Each backend module should
export the following initialization function:
-* `init(startup_time, config, events)`: This method is invoked from StatsD to
- initialize the backend module. It accepts three parameters:
[UnexpectedValueException]
The checksum verification of the file failed (downloaded from https://packages.zendframework.com/composer/zendframework-zend-stdlib-955622d5b20e45c4cd2520f54cbca3b19cfec8c0-zip-1cb098.zip)
[Composer\Downloader\TransportException]
The "http://packages.zendframework.com/composer/Zend_Stdlib-2.0.2.zip" file could not be downloaded (HTTP/1.1 404 Not Found)
@till
till / .travis.yml
Last active November 8, 2016 14:52
Since we're upgrading from PHP 5.3 to PHP 5.5 soon, here's an example how to run two builds against PHP 5.3 and PHP 5.5 (with ext/apcu) on Travis-CI! This has been tested on Travis-CI Pro — but should work on Org as well.
language: php
php:
- 5.3
- 5.5
before_script:
- ./bin/install-apcu.sh
- phpenv config-add tests/$TRAVIS_PHP_VERSION.ini
- phpenv config-add tests/apc.ini
<?php
require 'vendor/autoload.php';
class BrokenDataProviderTestCase extends \PHPUnit_Framework_TestCase
{
public function brokenDataProvider()
{
return array(
array(array('foo' => 'bar'), 'bar'),
);
@till
till / Vagrantfile
Created October 22, 2013 16:14
Here's how to speed up Vagrant provision runs! By courtesy of @fh. ;-)
# put this into ~/.vagrant.d/Vagrantfile
Vagrant.configure("2") do |config|
config.cache.auto_detect = true
end
{
"_id": "_design/foo",
"views": {
"get_latest": {
"map": "function(doc) { emit([doc.name, doc.date], 1); }",
"reduce": "_sum"
}
}
}
{
"gocourse": {
"env": {
"database": {
},
"aws": {
},
"etc": {