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 | |
/** | |
* @category Namespace | |
* @package Namespace_Module | |
* @author Anna Völkl | |
* @author Christoph Aßmann | |
* @author Fabian Schmengler | |
*/ | |
/** @var Mage_Core_Model_Resource_Setup $installer */ |
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 | |
require_once 'abstract.php'; | |
// | |
// | |
// PLEASE SET EDIT packages.xml and update md5 hashes! | |
class Mage_Shell_Archive extends Mage_Shell_Abstract | |
{ |
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/php | |
<?php | |
$input = file_get_contents('php://stdin'); | |
preg_match('|^To: (.*)|', $input, $matches); | |
$filename = tempnam('/var/log/mail', date('ymd-his-') . $matches[1] . '.'); | |
file_put_contents($filename, $input); |
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
# amazon.rb - amazon affiliate links for jekyll | |
# assumes that you have a configuration variable called 'amazon_associate_id' with your associate id | |
# usage: {{ asin | amazon_product_href }} | |
# returns url of a product | |
# usage: {{ asin | amazon_image_href: 'M' }} | |
# returns image of the product, size argument can be S, M, or L, default M | |
# usage: {{ asin | amazon_product: 'A Product' }} |
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 | |
/* | |
* A demonstration of first-class functions in PHP. | |
* Blog post: http://www.sbisbee.com/blog.php?id=2352301864 | |
* | |
* By Sam Bisbee <www.sbisbee.com> on 2010-12-17 | |
*/ | |
function makeLouder($fn) | |
{ |
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 | |
namespace BlackRook\TaskBundle\Twig\Extension; | |
use DateTime, | |
Twig_Extension, | |
Twig_Environment, | |
Twig_TemplateInterface, | |
Twig_Error_Runtime, | |
Twig_Filter_Method; |
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/perl -w | |
use strict; | |
use CGI; | |
use CGI::Carp qw(fatalsToBrowser); | |
use JSON; | |
my $json = JSON->new->pretty->allow_nonref; | |
my $q = CGI->new; |
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 | |
/** | |
* SupportDesk_FixAcl.php v1.1 | |
* SupportDesk (www.supportdesk.nu) | |
* 10/7/2015 | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* It is available through the world-wide-web at this URL: |
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
language: php | |
php: | |
- 5.3 | |
- 5.4 | |
before_script: | |
- sudo apt-get install apache2 | |
- sudo a2enmod actions | |
- sudo a2enmod rewrite |
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
#!/bin/sh | |
# exit on any errors: | |
set -e | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 @pantheon-alias" | |
exit 1 | |
fi |
OlderNewer