Skip to content

Instantly share code, notes, and snippets.

View nouphet's full-sized avatar
💭
Integrationing the system from on-premise to cloud

Toshihiro Takehara aka nouphet nouphet

💭
Integrationing the system from on-premise to cloud
View GitHub Profile
@nouphet
nouphet / file0.txt
Created August 2, 2014 11:49
Aipo(7.0.2)のインストール方法 ref: http://qiita.com/nouphet/items/f08afb9d197a2948aa09
yum install make gcc readline-devel zlib-devel nmap wget
@nouphet
nouphet / core.yml
Created July 19, 2013 02:20
ZOMEKI環境を構築した仮想マシンを移設する際に設定変更をする箇所 ref: http://qiita.com/nouphet/items/a1ffc517cde852ff44eb
# 12行目付近を移設先環境のIPまたはドメイン名に変更
1 ---
2 development:
3 title: ZOMEKI
4 uri: http://zomeki.example.com/
5 proxy:
6 test:
7 title: ZOMEKI
8 uri: http://zomeki.example.com/
@nouphet
nouphet / theme.html(抜粋)
Created December 14, 2012 04:24
ブロックのタイトルを非表示にする方法 ref: http://qiita.com/items/e6938588da30bfbe5b16
<div>
<{if ! $block.title|strstr:"none"}> // 条件式(開始)
<h3><{$block.title}></h3> // ブロックタイトル
<{/if}> // 条件式(終了)
<{$block.content}> // ブロックコンテンツ
</div>
@nouphet
nouphet / Post.php
Created December 10, 2012 13:37
Symfony2 でアプリを作る基礎 ref: http://qiita.com/items/f71e62aeed013a82e7d6
10 * @ORM\Table(name="post")
@nouphet
nouphet / style.css
Created December 6, 2012 15:29
テーマでアバターとログインIDを表示する ref: http://qiita.com/items/4a8280ebdc26b64ed6f6
.management_bar {
position: relative;
margin: 1px auto;
max-width: 1024px;
width: 100%;
background: #000;
padding: 1px 0 4px;
color: #ff0000;
text-align: right;
}
@nouphet
nouphet / file0.txt
Created September 5, 2012 16:32
XOOPS Cube 2.2へのアップグレード方法 ref: http://qiita.com/items/2a739d34b3bc7a1a3977
html
xoops_trust_path
@nouphet
nouphet / facebook-app-template.rb
Created August 21, 2012 17:18 — forked from chsh/facebook-app-template.rb
Rails3 template to generate facebook app.
# facebootstrap: Rails3 template
app_h_name = app_name.gsub(/_/, '-')
app_c_name = app_name.classify
ruby_version = '1.9.3-p194' # Specify your ruby version.
# Specify your git repo path
repository_path = "git@github.com:chsh/#{app_h_name}.git"
target_branch = 'master' # or develop or ...
deploy_server = 'Specify your deploy server FQDN.'
target_mode = 'staging' # or 'live' or ...
@nouphet
nouphet / building-rails-env.txt
Created August 15, 2012 11:26 — forked from chsh/building-rails-env.txt
Note for preparing Rails env on Mac OS X.
* Install Xcode
App Store -> Search Xcode -> Download -> Install
* Install Command line tools
Launch Xcode -> Preferences -> Downloads -> Install command line tools
* Install Homebrew
$ ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
* Install rbenv ruby-build
<?php
class ChangeThemeByModule extends XCube_ActionFilter
{
public function postFilter()
{
$dirname = null;
if ( isset($this->mRoot->mContext->mModule->mXoopsModule) and is_object($this->mRoot->mContext->mModule->mXoopsModule) ) {
$dirname = $this->mRoot->mContext->mModule->mXoopsModule->get('dirname');
}