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
--- /home/useer/code/php-file-iterator/File/Iterator.php 2010-07-30 14:05:33.000000000 +0200 | |
+++ ../File/Iterator.php 2010-07-30 14:45:08.000000000 +0200 | |
@@ -138,12 +138,14 @@ | |
*/ | |
protected function acceptPath($path) | |
{ | |
- if (is_dir($path)) { | |
+ if (is_dir(dirname($path))) { | |
foreach ($this->exclude as $exclude) { | |
if (strpos($path, $exclude) === 0) { |
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
$ find|sort | |
. | |
./soap_testidentifier.php | |
./x | |
./x/vendor | |
./x/vendor/soap_testidentifier.php | |
$ phpcpd --verbose --exclude x/vendor . | |
phpcpd 1.3.1 by Sebastian Bergmann. |
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
"nl" : { | |
today: 'Vandaag om %time', | |
tomorrow: 'Morgen om %time', | |
next: '%weekday om %time', | |
yesterday: 'Gisteren om %time', | |
last: 'Afgelopen %weekday om %time' | |
} |
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 | |
phpinfo(); |
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 | |
phpinfo(); |
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 ruby | |
# strawman - a simple puppet template checker. | |
# use like: | |
# echo 'fqdn => test.example.org\n$webserver = ["host1", "host2"]' | strawman template.erb | |
# where fqdn is in facter format: | |
# key => value | |
# and $webserver is a global ruby var, like in your manifests | |
# seperated by newlines, delivered on STDIN | |
require 'erb' |
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 \Can\Server; | |
use \Can\Server\Router; | |
use \Can\Server\Route; | |
use \Can\Server\Request; | |
$router = new Router( | |
array( | |
new Route( |
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 | |
# | |
# This is the shell script for building: | |
# 1. a TAR.GZ package; | |
# 2. a ZIP package | |
# of phpMyFAQ using what committed into Git. | |
# | |
# For creating a package simply run: | |
# | |
# ./git2package.sh |
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/bash | |
# git bisect job for jenkins, originally by @bashlog | |
GOOD_BUILD=$(curl 'http://jenkins.example.org:8080/job/BUILDNAME/lastStableBuild/api/json' | sed 's:[{},]:\n:g'|grep '"number":'|sed 's/.*://') | |
BAD_BUILD=$(($GOOD_BUILD + 1)) | |
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 2)) | |
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 3)) | |
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 4)) | |
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 5)) | |
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 6)) |
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 | |
if [[ "x${2}" = "x" ]]; then | |
echo "Usage: $0 /path/to/mri /path/to/topaz" | |
exit 1 | |
fi | |
mri_dir=`readlink -f $1` | |
topaz_dir=`readlink -f $2` | |
echo "Using MRI dir : $mri_dir" |
OlderNewer