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
@tadyjp
tadyjp / text.md
Last active January 28, 2019 03:55
たった2行のコーディングで、お問い合わせフォームを設置できるサービスを作った

はじめに

formrun (フォームラン)という「急なフォームの設置を依頼されたときに短時間で導入できるお問い合わせフォーム」を作ったので,具体的な利用例のコードを紹介したいと思います。

https://form.run/

対象の読者

  • フォーム設置にストレスを感じたことのあるエンジニア・デザイナー
@yutackall
yutackall / reserved.xml
Created February 6, 2015 05:23
Rails から twilio を使って電話発信してみた ( SMS は対象外ね ) ref: http://qiita.com/yutackall/items/8d3b3f5dd98cd136891f
<Response>
<Pause length="2"/>
<Say voice="woman" language="ja-jp">こちらは、ホゲホゲです。ユーザー様より予約がはいりました。管理画面から予約の確認をお願いします。</Say>
</Response>
@mrsarm
mrsarm / openerp-httpd.conf
Created February 28, 2014 18:32
OpenERP Reverse Proxy Configuration for Apache 2 Server
#
# /etc/apache2/sites-available/openerp
#
# OpenERP Reverse Proxy Configuration for Apache 2.
#
# Authors: 2014 Mariano Ruiz <mrsarm@gmail.com>
#
# After copy this file execute:
#
# sudo a2ensite openerp
@sawamur
sawamur / gist:8841642
Last active August 29, 2015 13:56
猫十則

猫十則

電通鬼十則をブラック要素を薄めるために猫っぽくしてみました。ゆとりな人でも納得できる行動指針になりました:paw_prints:

  1. 仕事は自ら創るべきで、与えられるものではないニャン
  2. 仕事とは、先手先手と働き掛けて行くことで、受け身でやるべきものではないニャン
  3. 大きな仕事と取り組め、小さな仕事はおのれを小さくするニャン
  4. 難しい仕事を狙え、そしてこれを成し遂げるところに進歩があるニャン
  5. 取り組んだら放すニャ、○されても放すニャ、目的完遂までは…。
  6. 周囲を引きずり回せ、引きずるのと引きずられるのとでは、永い間に天地のひらきができるニャン
@ysaotome
ysaotome / wordpress_setup_cheatsheet.sh
Last active December 19, 2015 17:39
2台構成(Web/APPサーバ1台、DBサーバ1台)のWordpressをセットアップする時のチートシート Japan TechFesta 2013 E30: 「ニフティクラウドを使ったインフラオートメーションハンズオン」http://www.techfesta.jp/p/program-2.html#E30の Chef vs 人力対決用
#Wordpress構築チートシート
#元ネタ:https://gist.github.com/ysaotome/2235302
#対決相手:http://tily.github.io/jtf2013/
###############################################
# 環境変数を定義 WEB/APPサーバおよびDBサーバの双方で実行
###############################################
## MySQL管理ユーザのパスワード
export MYSQL_ROOT_PASS='mysql##123'
## Wordpressデータベース名
@reoring
reoring / gist:5786876
Last active December 18, 2015 12:59
Chef, Vagrant勉強会
fields:
name:
type: string
label: "契約者名"
uname:
type: string
lablel: "ユーザ名"
email:
type: string
label: "メールアドレス"
@suin
suin / gist:3891076
Created October 15, 2012 06:31
XOOPS 構造変更案

1 オーソドックス

xoops_trust_path/modules/xcore
├── actions
├── admin
├── blocks
├── class <-- ここに現在の html/core を入れ込む
├── forms
├── images
@chsh
chsh / building-rails-env.txt
Created August 13, 2012 15:58
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');
}