Skip to content

Instantly share code, notes, and snippets.

@sowawa
sowawa / README.md
Created March 19, 2012 07:06
Mysql initialize on rackhub

Initialize mysql.

@sowawa
sowawa / test.sh
Created March 20, 2012 04:13
Override .gitconfig variables
#!/bin/bash
export GIT_AUTHOR_EMAIL=hogehoge@example.com
export GIT_AUTHOR_NAME=sowasowa
cd /tmp
mkdir hoge
cd hoge
git init
touch README
git add .
git commit -m 'hogehoge'
@sowawa
sowawa / scala_init.sh
Created March 20, 2012 16:22
Prepare and invoke scala.
#!/bin/bash
cd
wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1-1.tgz
tar xzf scala-2.9.1-1.tgz
export SCALA_HOME=/home/rackhuber/scala-2.9.1-1
export PATH=$PATH:$SCALA_HOME/bin
# invoke
scala
@sowawa
sowawa / README.md
Created March 22, 2012 04:51
Hello from Scalatra

Hello from Scalatra

cd
wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1-1.tgz
tar xzf scala-2.9.1-1.tgz
export SCALA_HOME=/home/rackhuber/scala-2.9.1-1
export PATH=$PATH:$SCALA_HOME/bin
curl https://raw.github.com/n8han/conscript/master/setup.sh | sh
./bin/cs n8han/giter8
@sowawa
sowawa / README.md
Created March 22, 2012 08:43
building authorized_keys gem.

building authorized_keys gem.

git clone https://sowawa@github.com/sowawa/authorized_keys.git
cd authorized_keys
gem install bundler
bundle install
rspec spec
gem build authorized_keys.gemspec
gem install authorized_keys-1.1.1.gem
@sowawa
sowawa / README.md
Created March 23, 2012 11:24
use okura!

http://d.hatena.ne.jp/gnarl/20120319/1332153697

cd
git clone git://gist.github.com/2169750.git try_okura
cd try_okura
gem install okura
wget "http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fnaist-jdic%2F53500%2Fmecab-naist-jdic-0.6.3b-20111013.tar.gz" -O mecab-naist-jdic-0.6.3b-20111013.tar.gz
okura compile mecab-naist-jdic-0.6.3b-20111013/ okura-dic
ruby play_okura.rb
@sowawa
sowawa / README.md
Created March 23, 2012 13:34
bundle install
bundle install --without production staging
@sowawa
sowawa / README.md
Created March 25, 2012 11:21
Lokka install

Lokka installer.

bash -s stable < <(curl -s https://raw.github.com/gist/2193002/install.sh)
@sowawa
sowawa / default
Created March 31, 2012 12:33
rackhub nginx default config
erver {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
@sowawa
sowawa / my.cnf
Created April 1, 2012 11:48
mysql config for rackhub
# Example MySQL config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see: