Skip to content

Instantly share code, notes, and snippets.

@hidenorigoto
hidenorigoto / some.php
Created October 12, 2011 01:30
Initialize Phake for enabling "verify"
<?php
require_once 'Phake.php';
\Phake::setClient(\Phake::CLIENT_PHPUNIT);
@hidenorigoto
hidenorigoto / TargetTest.php
Created October 15, 2011 17:30
StageHand_TestRunner
<?php
require_once __DIR__ . '/TestCaseBase.php';
class TargetTest extends TestCaseBase
{
public function testAlwaysTrue()
{
$this->assertTrue(true);
}
}
@hidenorigoto
hidenorigoto / ContainerExtension.php
Created October 24, 2011 15:42
Symfony\Bundle\TwigBundle\Extension\ContainerExtension example
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@hidenorigoto
hidenorigoto / deps.example
Created December 31, 2011 03:12
Symfony2 deps additional
; sf2 standard deps here
; ;
;
; utilities for my web development
;
; some utilities
[XnniUtilBundle]
git=git://github.com/hidenorigoto/XnniUtilBundle.git
@hidenorigoto
hidenorigoto / nginx.conf.example
Created December 25, 2011 15:25
nginx Symfony2 example (subdirectory) WIP
server {
listen 80;
root /var/www/sitename;
server_name sitename;
index index.html index.php app.php;
if ($uri ~ \.(css|png|js|gif|jpg)$) {
break;
}
@hidenorigoto
hidenorigoto / php52
Last active October 1, 2015 09:58 — forked from tanakahisateru/gist:1344162
PHP5.5 PHP5.4 configure for my MacBook Air (MySQL with homebrew / other with macports)
./configure \
--prefix=/opt/local/php/5.4 \
--bindir=/opt/local/bin/php54 \
--with-config-file-path=/opt/local/php/5.4/etc \
--with-config-file-scan-dir=/opt/local/php/5.4/var/db \
--mandir=/opt/local/php/5.4/share/man \
--infodir=/opt/local/php/5.4/share/info \
--program-suffix=-5.4 \
--with-apxs2=/opt/local/apache2/bin/apxs \
--enable-pdo \
@hidenorigoto
hidenorigoto / pr-template.md
Created October 20, 2015 04:35
PR Template

関連issue

説明

画面

BC Breaks

  • インターフェイスの変更
@hidenorigoto
hidenorigoto / .gitignore
Last active October 23, 2015 07:05
Haydnで結果に含めるかどうかを行ごとにオンデマンドで判定する
vendor/
composer.lock
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
sudo easy_install sphinx
sudo easy_install -U sphinxcontrib-phpdomain
@hidenorigoto
hidenorigoto / memo.md
Last active January 2, 2016 02:39
BEAR.Skeletonでインストーラーが正常終了しない問題メモ

2014/01/03時点で、BEAR.Skeletonのインストーラーが正常終了しない。いくつかの問題が複合的に存在するようなのでメモ。

  • issue #14 error "post-autoload-dump" で修正/再配置されたinstaller.phpファイルが、次のコミットでファイル削除されている
  • 新しいディレクトリ構造を考慮すると、installer.phpbinディレクトリにあるべきか?
  • installer.phpでは、var/tmpディレクトリがあることを前提としている(新しいディレクトリ構造でも規定されている)。が、BEAR.Skeletonの初期状態としてvar/tmpディレクトリは含まれていない。
  • installer.phpでは、スケルトンファイルにベンダーディレクトリが適用されていない。 ベンダー名をどのように取得するか?