Skip to content

Instantly share code, notes, and snippets.

View marczhermo's full-sized avatar

Marco Hermo marczhermo

  • New Zealand
View GitHub Profile
@marczhermo
marczhermo / Mailer.php
Created June 12, 2014 01:36
Silverstripe : Mailer.php
line: 228
// Try it without the -f option if it fails
if(!($result = @mail($to, $subject, $fullBody, $headers, escapeshellarg("-f$bounceAddress")))) {
$result = mail($to, $subject, $fullBody, $headers);
}
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
* Updated for Laravel 4.2.1 (2014-06-01)
*
* @author Barry vd. Heuvel <[email protected]>
*/
namespace {
@marczhermo
marczhermo / php.ini
Created June 11, 2014 06:00
PHP: XDebug
[xdebug]
zend_extension = C:\lab1521\Ampps\php\ext\php_xdebug-2.2.5-5.5-vc11.dll
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:/lab1521/Ampps/tmp"
xdebug.idekey=PHPSTORM
@marczhermo
marczhermo / phpinfo.php
Created May 3, 2014 11:17
echo and tee command
echo "<?php phpinfo(); ?>" | sudo tee /var/www/test.php > /dev/null && sudo chgrp www-data /var/www/test.php
@marczhermo
marczhermo / cmd.bash
Created April 20, 2014 05:36
ISPConfig 3.0.5.4 RC2
cd /tmp
rm -rf /tmp/ispconfig3_install
wget http://www.ispconfig.org/downloads/ISPConfig-3.0.5.4rc2.tar.gz
tar xvfz ISPConfig-3.0.5.4rc2.tar.gz
cd ispconfig3_install/install
php -q update.php
@marczhermo
marczhermo / link.url
Created March 17, 2014 22:52
URL : Tiny Sort DOM Elements
@marczhermo
marczhermo / link.url
Created March 17, 2014 03:15
URL : CSS Dropdown with jQuery
(function($) {
$(function() {
$(".print").live('click', function(e) {
e.preventDefault();
// remove old printframe
$("#printframe").remove();
// create new printframe
@marczhermo
marczhermo / link.url
Created March 7, 2014 01:59
URL : Jquery Columnizer
@marczhermo
marczhermo / link.url
Last active August 29, 2015 13:57
URL : Iframe and print