Skip to content

Instantly share code, notes, and snippets.

View mariuswilms's full-sized avatar

Marius Wilms mariuswilms

View GitHub Profile
@adrienbrault
adrienbrault / purge.sh
Created September 24, 2012 10:02
Script to reduce VM size before packaging for vagrant
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
@fitzagard
fitzagard / Model.php
Created October 20, 2013 17:05
Lithium MongoDB Session Extension
<?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2010, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace app\extensions\adapter\session;
@mariuswilms
mariuswilms / li3_filter_inject_data_into_elements.php
Created October 25, 2013 06:41
Lithium filter to inject data into elements.
<?php
use lithium\net\http\Media;
$injectDataIntoElements = function(array $elements = [], array $data = []) {
Media::applyFilter('view', function($self, $params, $chain) use ($elements, $data) {
$view = $chain->next($self, $params, $chain);
$view->applyFilter('_step', function($self, $params, $chain) use ($elements, $data) {
$whitelisted = in_array($params['params']['template'], $elements);
@Potherca
Potherca / when-to-automate-testing.md
Last active September 13, 2022 10:28
When to automate your testing (and when not to)

When to automate your testing (and when not to)

This page provides an overview of the key point of the presentation When to Automate Your Testing (and When Not To) by Joe Fernandes and Alex Di Fonzo

Three myths and realities of automated testing

Myth Reality
1. Automated testing always results in improved software quality Automated testing requires a higher initial investment but can yield a higher ROI
2. Every application development project or testing team can use automated testing tools Skills and training are required to be successful with any automated testing tool