Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bksunday
bksunday / basic-firewall.md
Created December 2, 2019 02:05
Basic firewall - drop input except ssh
@bksunday
bksunday / test-run-failed
Last active December 14, 2017 10:01
When using phpunit and logging output using TAP (from command line but easier from phpunit xml configuration), this script will re-run phpunit with only Wailed tests from last test.
#!/bin/bash
# parses a tap log file from phpunit to find failed tests
#
# This assumes you setup a phpunit.xml (or .dist.xml) so simply add something like the following under <phpunit>
# <logging>
# <log type="tap" target="/tmp/.projectname-phpunit-test-log.tap" />
# </logging>
#
# tap is used instead of json and xml because these log files get big