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
# Generated by iptables-save v1.3.5 on Wed Apr 20 22:21:15 2011 | |
*filter | |
:INPUT DROP [0:0] | |
:FORWARD DROP [0:0] | |
:OUTPUT ACCEPT [82:10073] | |
:RH-Firewall-1-INPUT - [0:0] | |
-A INPUT -j RH-Firewall-1-INPUT | |
-A FORWARD -j DROP | |
-A RH-Firewall-1-INPUT -i lo -j ACCEPT | |
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT |
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
function send() { | |
var EMAIL_SENT = "EMAIL_SENT"; | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('setting'); | |
var guests = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('list').getDataRange().getValues(); | |
var title = sheet.getRange('B2').getValue(); | |
var emailTemplate = sheet.getRange('B4').getValue(); |
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
# -*- encoding: UTF-8 -*- | |
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'omniauth' | |
set :haml, {:format => :html5} | |
enable :sessions, :logging | |
use OmniAuth::Builder do |
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
Deploy | |
------------------------------ | |
server1 | |
app / controller / crosstest_controller.rb | |
app / view / crosstest / index.html.erb | |
app / view / crosstest / test.json.erb | |
server2 | |
app / controller / application_controller.rb | |
app / controller / sample_controller.rb |
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
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm | |
yum install -y yum-utils pcre-devel libxslt-devel GeoIP-devel gd-devel rpm-build | |
yumdownloader --source nginx | |
rpm -ivh nginx-0.8.54-1.el5.src.rpm | |
sed -i 's/--with-file-aio/ /' /usr/src/redhat/SPECS/nginx.spec | |
rpmbuild -ba /usr/src/redhat/SPECS/nginx.spec | |
rpm -ivh /usr/src/redhat/RPMS/x86_64/nginx-0.8.54-1.x86_64.rpm | |
chkconfig nginx on |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'nifty' | |
require 'dozens' | |
require 'net/ssh' | |
NIFTY_ACCESS_KEY = "-----" | |
NIFTY_SECRET_KEY = "-----" | |
DOZENS_API_KEY = "-----" |
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
yum -y install apr apr-util yum-utils | |
mkdir ~/httpd | |
cd ~/httpd | |
yumdownloader httpd | |
rpm2cpio httpd-2.2.3-53.el5.centos.1.x86_64.rpm | cpio -idmv | |
mv usr/bin/ab /usr/bin/ab | |
cd ~ | |
rm -rf ~/httpd | |
ab http://google.ru/ |
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 | |
################## | |
# disable apache # | |
################## | |
service httpd stop | |
chkconfig httpd off | |
service xinetd stop | |
chkconfig xinetd off | |
service saslauthd stop |
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
wget http://ja.wordpress.org/wordpress-3.2.1-ja.tar.gz | |
tar zxvf wordpress-3.2.1-ja.tar.gz | |
mv wordpress /var/www/html | |
cd /var/www/html/wordpress | |
mv wp-config-sample.php wp-config.php | |
echo "fix wp-config.php" | |
echo "mysql" | |
echo 'create database wordpress;' |
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
#! /usr/bin/env ruby | |
# NIFTY Cloud API - DescribeInstances | |
# Author:: Kei HAMANAKA <kei.hamanaka (at) gmail.com> | |
# License:: Distributes under the same terms as Ruby | |
require 'uri' | |
require 'time' | |
require 'net/https' | |
require 'cgi' | |
require 'openssl' |
OlderNewer