Skip to content

Instantly share code, notes, and snippets.

View co3k's full-sized avatar
🔞
"><s>'\

Kousuke Ebihara co3k

🔞
"><s>'\
View GitHub Profile
Index: app/controllers/members_controller.rb
===================================================================
--- app/controllers/members_controller.rb (revision 3363)
+++ app/controllers/members_controller.rb (working copy)
@@ -35,6 +35,7 @@
end
respond_to do |format|
format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'members', :id => @project }
+ format.xml { head :created }
format.js {
all:
install: false
opMessagePlugin:
install: true

Setup PHP for opPluginChannelServerPlugin on CentOS 5.4

Install packages

# yum install libxml2-devel curl-devel libjpeg-devel libpng-devel libmcrypt-devel
<?php
$uri = str_replace('Chiara_PEAR_Server_REST', 'pluginRest', $_SERVER['REQUEST_URI']);
if ('GET' === strtoupper($_SERVER['REQUEST_METHOD']))
{
$ch = curl_init('http://plugins.teriyaki.jp'.$uri);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

HipHop for PHP 導入手順

0. 前提

  • Debian testing (squeeze) の amb64 版 (i386 では成功しなかった)
  • 「ebizori64 サーバ構築手順」実施済み
#!/usr/bin/env sh
mkdir -p -m 0777 \
var/img_cache/jpg\
var/img_cache/png\
var/img_cache/gif\
\
var/img_cache/jpg/w120_h120\
var/img_cache/jpg/w180_h180\
var/img_cache/jpg/w76_h76\
<?php
set_include_path(get_include_path().PATH_SEPARATOR.'/home/co3k/develop/VersionControl_Git/');
require_once 'VersionControl/Git.php';
$svnToGit = array(
'ebihara <ebihara@8bbc783d-d51a-0410-adab-8fa69d43f207>' => 'Kousuke Ebihara <[email protected]>',
'nagasawa <nagasawa@8bbc783d-d51a-0410-adab-8fa69d43f207>' => 'Masato Nagasawa <[email protected]>',
'shingo <shingo@8bbc783d-d51a-0410-adab-8fa69d43f207>' => 'Shingo Yamada <[email protected]>',
<?php
require_once '/home/co3k/www/sf/op3-ebihara/config/ProjectConfiguration.class.php';
ProjectConfiguration::getApplicationConfiguration('pc_frontend', 'prod', false);
$list = '[
{
"old" : "sfOpenPNEView",
"new" : "opView"
},
<Files "do_ktai_normal.php">
Order Deny,Allow
Deny from All
# docomo
Allow from 210.153.84.0/24
Allow from 210.136.161.0/24
Allow from 210.153.86.0/24
Allow from 124.146.174.0/24
Allow from 124.146.175.0/24
# dependencies.yml
#
# Definition of the dependency on this plugin (プラグインの依存性を定義します)
#
# Note: Dependency with OpenPNE is supported from OpenPNE 3.5.0. Before 3.5.0, OpenPNE can't install a plugin that defines such a dependency.
# (注意: OpenPNE との依存性は 3.5.0 からサポートされました。 3.5.0 以前のバージョンでは、 OpenPNE はそのような依存性が定義されたプラグインをインストールできません)
#
# See: http://pear.php.net/manual/en/guide.developers.package2.dependencies.php
# PEAR installer dependency (PEAR インストーラの依存性)