This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
centos6にredmineを入れるときにつまずくところ | |
インストール手順は以下を参照 | |
http://blog.redmine.jp/articles/redmine-2_1-installation_centos/ | |
bundle installするとrmagickがないって怒られる。 | |
なので以下を参考にImageMagickをインストールしてからもう一度bundle installする | |
http://www.trident-onlinegame.com/wordpress/?p=327 | |
最後にRailsのプロジェクト内で下記を実行しないと、エラーはかれる。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LSCOLORS=gxfxcxdxbxegedabagacad | |
alias ls='ls -G' | |
export PS1="[\h \w]\\$" | |
export PATH=/Applications/scala-2.10.2/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set autoindent | |
set cindent | |
set tabstop=2 | |
set background=dark | |
set smartindent | |
set shiftwidth=2 | |
set number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1/11勉強会 事前準備資料 | |
Vagrantのセットアップ | |
1.virtual boxのインストール | |
最新版4.3ですが、4.3だとvagrantが対応していないので、4.2を使いましょう。 | |
自分の環境にあったもをインストールしてください。 | |
https://www.virtualbox.org/wiki/Download_Old_Builds_4_2 | |
2.vagrant のインストール |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################# | |
# Provision Scripts | |
############################# | |
$app_update = <<SCRIPT | |
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
SCRIPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DBNAME='<db_name>' | |
DBUSER='<db_user>' | |
DBPASSWORD='<db_password>' | |
get_not_exists_comment_of_table() { | |
echo "SELECT TABLE_SCHEMA, TABLE_NAME FROM information_schema.tables WHERE table_schema = '$DBNAME' AND table_comment = ''; " | mysql -u$DBUSER -p$DBPASSWORD | |
} | |
get_not_exists_comment_of_column() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## WEB+DB PRESS Vol82. p116の写経です | |
## typoあると思います。(動くか確認してません) | |
GitHubApi = require 'github' | |
async = require 'async' | |
_ = require 'underscore' | |
module.exports = (robot) -> | |
config = | |
user: 'naoya' # 対象ユーザーは本スクリプトでは固定 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWS.config({ | |
:access_key_id => '<アクセスキー>', | |
:secret_access_key => '<シークレットキー>', | |
:ec2_endpoint => 'ec2.ap-northeast-1.amazonaws.com', | |
:elb_endpoint =>'elasticloadbalancing.ap-northeast-1.amazonaws.com' | |
}) | |
elb = AWS::ELB.new.load_balancers['<ELB名>'] | |
instances = elb.instances.select {|i| i.exists? && i.status == :running}.map(&:private_ip_address) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\D{%Y/%m/%d %H:%M:%S} $PS1" | |
export HISTTIMEFORMAT='%Y-%m-%d %T ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Base = React.createClass({ | |
getInitialState() { | |
return {count: 0}; | |
}, | |
onClick() { | |
this.setState({count: this.state.count + 1}); | |
}, |
OlderNewer