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
<?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');
}
@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
@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 ...