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 bash | |
export PATH="$HOME/.phpenv/bin:/opt/local/bin:$PATH" | |
eval "$(phpenv init -)" | |
args="" | |
while [ "$1" != "" ] ; do | |
arg=$1 | |
if [[ $arg =~ NetBeansSuite.php && -f $(pwd)/nbproject/NetBeansSuite.php ]] ; then | |
# Change custom NetBeansSuite path | |
arg=$(pwd)/nbproject/NetBeansSuite.php |
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
open /Applications/NetBeans/NetBeans\ 8.0.app && /Applications/NetBeans/NetBeans\ 8.0.app/Contents/MacOS/netbeans --open . |
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
---- | |
-- User configuration file for lsyncd. | |
-- | |
settings{ | |
logfile="/var/log/lsyncd/lsyncd.log", | |
statusFile="/var/log/lsyncd/lsyncd.status", | |
maxDelays=15 | |
} | |
--- |
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
# install require packages | |
sudo yum install -y perl-Switch perl-Sys-Syslog perl-LWP-Protocol-https | |
# download and extract | |
curl -LO http://ec2-downloads.s3.amazonaws.com/cloudwatch-samples/CloudWatchMonitoringScripts-v1.1.0.zip | |
mkdir ~/cloudwatch | |
test -f ~/cloudwatch/aws-scripts-mon/mon-put-instance-data.pl || unzip CloudWatchMonitoringScripts-v1.1.0.zip -d ~/cloudwatch/ | |
rm CloudWatchMonitoringScripts-v1.1.0.zip | |
# create credentials file |
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
for v in $(phpenv versions | cut -c 3-8); | |
do | |
phpenv local $v && php --ri timecop || (phpize && make clean && ./configure && make && make install) | |
if [ -f $(php-config --extension-dir)/timecop.so ] ; then | |
inifile=$(php --ini | grep "Scan for additional .ini files" | cut -d : -f 2)/timecop.ini | |
test -f $inifile || echo "extension=timecop.so" > $inifile | |
fi | |
done |
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 bash | |
## | |
# | |
# Custom PHPUnit script for CakePHP on NetBaeans 8.0 | |
# | |
# @author Takashi Nojima [http://php-tips.com] | |
# @copyright 2014 Takashi Nojima | |
## | |
PROJECT_ROOT=$(cd "$(dirname "$(dirname "$0")")" && pwd) |
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
diff --git a/app/Tygh/Bootstrap.php b/app/Tygh/Bootstrap.php | |
index d25b071..87f007a 100644 | |
--- a/app/Tygh/Bootstrap.php | |
+++ b/app/Tygh/Bootstrap.php | |
@@ -47,7 +47,7 @@ class Bootstrap | |
public static function setConfigOptions($dir_root) | |
{ | |
ini_set('magic_quotes_sybase', 0); | |
- ini_set('include_path', $dir_root . '/app/lib/pear/' . ini_get('include_path')); | |
+ ini_set('include_path', $dir_root . '/app/lib/pear/' . PATH_SEPARATOR . ini_get('include_path')); |
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 | |
// snip .. | |
// ログのパーミッションはデフォルトで0644なので、cli経由、web経由でファイル名変えとく。 | |
$logFile = PHP_SAPI . '.log'; | |
Log::useFiles(storage_path('logs/debug-' . $logFile)); // こっちは全部のログレベルを書き込むログ | |
Log::useFiles(storage_path('logs/error-' . $logFile), 'warning'); // こっちはwarning以上を書き込むログ |
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
diff --git a/app/code/core/Mage/GiftMessage/Block/Adminhtml/Sales/Order/Create/Items.php b/app/code/core/Mage/GiftMessage/Block/Adminhtml/Sales/Order/Create/Items.php | |
index 2f7bb8e..0909a7c 100644 | |
--- a/app/code/core/Mage/GiftMessage/Block/Adminhtml/Sales/Order/Create/Items.php | |
+++ b/app/code/core/Mage/GiftMessage/Block/Adminhtml/Sales/Order/Create/Items.php | |
@@ -66,7 +66,7 @@ class Mage_GiftMessage_Block_Adminhtml_Sales_Order_Create_Items extends Mage_Adm | |
*/ | |
public function getFormHtml() | |
{ | |
- return $this->getLayout()->createBlock('adminhtml/sales_order_create_giftmessage_form') | |
+ return $this->getLayout()->createBlock('giftmessage/adminhtml_sales_order_create_form') |
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 App\Service\Exception; | |
use Cake\Core\Exception\Exception; | |
class MissingServiceException extends Exception { | |
protected $_messageTemplate = 'Service class %s could not be found.'; |
OlderNewer