This file contains hidden or 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/bash | |
sed -i 's/^/#/g' /etc/sysconfig/i18n | |
echo 'LANG="ja_JP.utf8"' >> /etc/sysconfig/i18n | |
# install RPM forge | |
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm | |
# use 32bit? | |
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm | |
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt |
This file contains hidden or 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/bash | |
sudo aptitude install language-pack-ja | |
sudo dpkg-reconfigure locales | |
sudo aptitude update | |
sudo aptitude upgrade | |
# install many packages | |
sudo aptitude install build-essential git-core zlib1g-dev libreadline6-dev zsh openssl curl wget mysql-server libmysql-ruby libmysqlclient-dev nginx sysv-rc-conf vim tmux libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev nodejs-dev libcurl3 libcurl3-gnutls libcurl4-openssl-dev |
This file contains hidden or 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
<h1 class="loader"> | |
<span>L</span> | |
<span>O</span> | |
<span>A</span> | |
<span>D</span> | |
<span>I</span> | |
<span>N</span> | |
<span>G</span> | |
</h1> |
This file contains hidden or 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
// | |
// This code forked from here. | |
// http://angelolloqui.com/blog/20-iPhone5-image-loading | |
// https://gist.github.com/3799648 | |
// | |
// UIImage+H568.h | |
// | |
#import <UIKit/UIKit.h> |
This file contains hidden or 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
source 'http://rubygems.org' | |
gem 'sinatra' | |
gem 'haml' | |
gem 'therubyracer' | |
gem 'coffee-script' | |
gem 'sprockets', '>= 2.0' | |
gem 'thin' | |
gem 'ruby-filemagic' | |
gem 'unicorn' |
This file contains hidden or 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 | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# config: /etc/sysconfig/nginx |
This file contains hidden or 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/bash | |
sed -i 's/^/#/g' /etc/sysconfig/i18n | |
echo 'LANG="ja_JP.utf8"' >> /etc/sysconfig/i18n | |
# install RPM forge | |
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm | |
# use 32bit? | |
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm | |
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt |
This file contains hidden or 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
@interface ViewController : UIViewController { | |
UIWebView *mainWebView; | |
} | |
@property(nonatomic, retain) UIWebView *mainWebView; | |
@end |
This file contains hidden or 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
<?php | |
class Email { | |
/* | |
* This method send a mail for Japanese. | |
* (charaset of the email is 'ISO-2022-JP') | |
* | |
* Parameters | |
* to: sending email's TO | |
* cc: sending email's CC | |
* bcc: sending email's BCC |
This file contains hidden or 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 | |
sudo aptitude install build-essential zlib1g-dev libreadline6-dev libopenssl-ruby git curl wget | |
curl -L https://get.rvm.io | bash -s stable | |
echo 'source ~/.rvm/scripts/rvm' >> ~/.bashrc | |
export PATH=$PATH:$HOME/.rvm/bin | |
rvm pkg install openssl | |
rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr | |
rvm use 1.9.3 | |
echo 'Unless you could run rvm use command, you should run these commands by yourself' |