Skip to content

Instantly share code, notes, and snippets.

@wa0x6e
wa0x6e / README.md
Last active March 27, 2017 12:36
Varnish cache hit ratio widget for Shopify's Dashing dashboard

Varnish Cache hit ratio widget for Dashing

Description

Varnish Dashing widget to display the ratio of cache hit/miss.

Dependencies

@wa0x6e
wa0x6e / README.md
Last active March 27, 2017 12:36
Memcached widget for Shopify's Dashing dashboard

Memcached widget for Dashing

Description

Memcached dashing widget to display the number of connected clients to one or more memcached servers, as well as the instance memory usage.

Dependencies

@wa0x6e
wa0x6e / README.md
Last active December 23, 2015 01:59
Redis widget for Dashing

Redis widget for Dashing

Description

Redis dashing widget to display the number of connected clients to a redis server, as well as the instance memory usage.

Dependencies

@wa0x6e
wa0x6e / custom_bootstrap.php
Created September 12, 2013 16:44
Custom bootstrap file example. You load that bootstrap file when loading the plugin into your Cake app (`Cake::load('CakeResque' => array('bootstrap') => 'custom_bootstrap.php')`), you require the default bootstrap to keep the default settings, then you redefine only your custom variables. You can also put that file in the git local ignore list,…
<?php
require_once __DIR__ . DS . 'bootstrap.php';
Configure::write('CakeResque.Worker.verbose', true);
Configure::write('CakeResque.Queues', array(
array(
'queue' => 'default', // Use default values from above for missing interval and count indexes
'workers' => 2
@wa0x6e
wa0x6e / build.xml
Last active April 23, 2018 20:03
Faster php lint target for jenkins php
<!--
More faster : lint only modified files
--------------------------------------
We create a new target to retrieve a list of modified files
If there is modified files, execute the lint target, else skip
with the `if="modifiedFiles"` option.
The list of modified files is stored in ${files.modified}, one file per line.