xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/path/to/folder/for/cachegrind/files"
xdebug.profiler_output_name = "callgrind.out.%t.%p"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple, yet effective CSRF class for FuelPHP. | |
* | |
* @author Dan Horrigan | |
* @license MIT License | |
* @copyright 2011 Dan Horrigan | |
*/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Functions creating iterators for looping, based off the python itertools | |
* module. | |
* | |
* @author Dan Horrigan <dan@dhorrigan.com> | |
* @license MIT License | |
* @copyright 2013 Daniel Horrigan | |
*/ | |
namespace iter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
use Symfony\Component\Console\Application; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
require 'vendor/autoload.php'; | |
$app = new Application; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shlex | |
import subprocess | |
import sys | |
def run_cmd(cmd, callback=None, watch=False): | |
"""Runs the given command and gathers the output. | |
If a callback is provided, then the output is sent to it, otherwise it | |
is just returned. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install -y libssl1.0.0 openssl | |
# Confirm Build Date is at least Aril 7th 2014 | |
openssl version -a | |
# Restart all services listed by this command: | |
sudo lsof -n | grep ssl | grep DEL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
ansiconv | |
Converts ANSI coded text and converts it to either plain text | |
or to HTML. | |
:author Dan Horrigan <dan@dhorrigan.com> | |
:copyright 2013 Dan Horrigan | |
:license MIT | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use ArrayAccess; | |
use Countable; | |
use IteratorAggregate; | |
class DataContainer implements ArrayAccess, Countable, IteratorAggregate | |
{ | |
use DataContainerTrait; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name localhost; | |
location /status { | |
access_log off; | |
default_type text/plain; | |
return 200 "alive"; | |
} | |
} |