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/bash | |
# https://rvm.io/rvm/install | |
curl -L https://get.rvm.io | bash -s stable | |
# rvmコマンドを使用可能に | |
source ~/.bash_profile | |
# ruby 1.9.3 のコンパイルに必要 | |
yum install --enablerepo=epel libyaml-devel -y |
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 | |
/bin/sed -i 's/ONBOOT="no"/ONBOOT="yes"/g' /etc/sysconfig/network-scripts/ifcfg-eth0 | |
service networking restart | |
/bin/sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication no/g' /etc/ssh/sshd_config | |
service sshd reload | |
yum -y install sudo | |
yum -y groupinstall "Development Tools" |
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 | |
sudo yum install -y ruby ruby-devel ruby-irb ruby-libs ruby-rdoc ruby-ri | |
cd /usr/local/src | |
sudo wget http://rubyforge.org/frs/download.php/74445/rubygems-1.6.2.tgz | |
sudo tar xvzf rubygems-1.6.2.tgz | |
cd rubygems-1.6.2 | |
sudo ruby setup.rb | |
sudo gem install rake |
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/bash | |
LANG=C | |
cd /tmp/ | |
### {{{ 使い方 ### | |
# *概要 | |
# rpm を利用したレポジトリの自動追加スクリプトです。 | |
# OS のバージョンを自動的に判別し、 | |
# 最新の rpm にてインストールを行い、 | |
# デフォルトで有効になっているものを無効化(enabled=0)します |
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
<?php | |
/** | |
* Emulates the email sending process for testing purposes | |
* | |
* PHP 5 | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
* | |
* Licensed under The MIT License |
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
01.Thunderbird Install | |
http://mozilla.jp/thunderbird/ | |
02.add addon | |
Minimize On Start and Close | |
https://addons.mozilla.org/en-us/thunderbird/addon/minimize-on-start-and-close/ | |
A remake of the MinimizeToTray-extension made to fit the Windows 7 taskbar. | |
CompactHeader |
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 | |
iptables -F | |
iptables -X | |
iptables -P INPUT DROP | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD DROP | |
iptables -A INPUT -i lo -j ACCEPT |
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
*開発環境の構築 | |
Visual C++ 2010 Express | |
http://www.microsoft.com/japan/msdn/vstudio/express/ | |
「Visual C++ 2010 Express 」の「Web インストール (ダウンロード)」をダウンロード。 | |
ダウンロードした「vc_web.exe」を実行。インストーラーに従ってインストールを進める。 | |
Microsoft Silverlight と Microsoft SQL server は不要。 | |
インストール後、 |
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/csh | |
#create git install directory($HOME/usr/local) | |
cd ~ | |
mkdir $HOME/usr | |
mkdir $HOME/usr/local | |
#create git source directory | |
cd ~ | |
mkdir $HOME/local |
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
// css 2.1 color | |
$regex = '(?:(?:#[0-9a-fA-F]{3})|(?:#[0-9a-zA-Z]{6})|(?:rgb\((?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*(?:[0-2][0-5]{2}|[0-1][0-9]{0,2})(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*,(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*(?:[0-2][0-5]{2}|[0-1][0-9]{0,2})(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*,(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*(?:[0-2][0-5]{2}|[0-1][0-9]{0,2})(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*\))|(?:rgb\((?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*(?:[0-9]{1,3}|0)%(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*,(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*(?:[0-9]{1,3}|0)%(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*,(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*(?:[0-9]{1,3}|0)%(?:\s*(?:\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/)*\s*)*\))|(?:Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua)|(?:Orange)|(?:aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blu |
NewerOlder