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
228c228 | |
< if (!preg_match('/^(https?|file):\/\/+/i', $url)) { | |
--- | |
> if (!preg_match('/^https?:\/\/\w[\w\-\.]+/i', $url)) { | |
231d230 | |
< | |
233,434c232,239 | |
< if (preg_match('/^https?:\/\/\w[\w\-\.]+/i', $url)) { | |
< $cache_lifetime = (int) $cache_lifetime; | |
< $use_cache = !empty($this->cacheDir) and $cache_lifetime > 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
#!/bin/sh | |
# APCをインストール | |
pecl install apc | |
cat <<_EOT_ 1>/etc/php.d/apc.ini | |
extension=apc.so | |
_EOT_ | |
service httpd restart |
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 | |
CAKEPHP_PAH=/usr/local/app | |
if [ ! -d $CAKEPHP_PAH ] | |
then | |
mkdir $CAKEPHP_PAH | |
fi | |
# IPアドレスを取得 | |
IPADDR=`ip addr show | grep eth0 | grep 'inet *' | awk '{print $2;}' | cut -f1 -d '/'` |
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 | |
// メンバ変数を追加 | |
public $uses = array( | |
'NiftyCloudControllPanel.Instance', | |
'NiftyCloudControllPanel.KeyPair', | |
'NiftyCloudControllPanel.SecurityGroup', | |
); | |
/// アクションを追加 | |
public function run($id=null) |
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
cd /usr/local/app/cakephp/vendors/ | |
git clone git://github.com/kaz29/unofficial-niftycloud-sdk-for-php.git \ | |
NiftyCloud |
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 | |
# CakePHP2.0 setup script | |
# Only for CentOS 5.6 64bit Plain | |
/bin/cat <<EOF >> /etc/rc.d/rc.local | |
curl https://raw.github.com/gist/1284739/2fbed6559815413523cda708d99eb18f9926428a/cakephp2_on_nifyucloud_centos5_6.sh | sh | tee /root/_setup.log | |
/bin/sed -i.orig -e "s/curl/#curl/g" /etc/rc.d/rc.local | |
/bin/sed -i.orig -e "s/\/bin\/sed/#\/bin\/sed/g" /etc/rc.d/rc.local | |
EOF |
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 | |
// @ operator | |
// compare to circle | |
$conditions = array( | |
'loc @' => array('circle' => array('point'=> array(10.1,10.1), 100)), | |
); | |
// order by distance | |
$order = array( | |
'loc <-> point(10.1,10.1)' | |
); |
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 | |
export CAKEPHP_VERSION=2.0.5 | |
export CAKEPHP_PATH=/usr/local/app | |
if [ ! -d $CAKEPHP_PATH ] | |
then | |
mkdir $CAKEPHP_PATH | |
fi | |
# IPアドレスを取得 |
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 | |
export BASERCMS_PATH=/usr/local/app | |
if [ ! -d $BASERCMS_PATH ] | |
then | |
mkdir $BASERCMS_PATH | |
fi | |
# IPアドレスを取得 | |
export IPADDR=`ip addr show | grep eth0 | grep 'inet *' | awk '{print $2;}' | cut -f1 -d '/'` |
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 | |
# apache,fluent-plugin-s2が依存するパッケージをインストール | |
yum -y install httpd.x86_64 \ | |
libxml2-devel.x86_64 libxslt-devel.x86_64 | |
# td-agent 用のリポジトリを登録 | |
cat <<_EOT_ 1>/etc/yum.repos.d/td.repo | |
[treasuredata] | |
name=TreasureData |
OlderNewer