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 | |
# File:change_root_password.sh | |
# 2013/07/18 @ysaotome | |
#=============================================== | |
#設定したいrootパスワード「hoge##123」の部分を改変 | |
#=============================================== | |
ROOT_PASSWORD='hoge##123' | |
#=============================================== | |
SALT=$(/usr/bin/uuidgen| /usr/bin/tr -d '-') |
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 | |
# Description:UpdateMotd by screenFetch | |
# References: http://goo.gl/xpWV7L | |
# 2015/07/08 @ysaotome | |
FILE_MOTD='/etc/motd' | |
BIN_DATE='/bin/date' | |
BIN_FIGLET='/usr/bin/figlet' | |
BIN_HOSTNAME='/bin/hostname' |
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
#Wordpress構築チートシート | |
#元ネタ:https://gist.github.com/ysaotome/2235302 | |
#対決相手:http://tily.github.io/jtf2013/ | |
############################################### | |
# 環境変数を定義 WEB/APPサーバおよびDBサーバの双方で実行 | |
############################################### | |
## MySQL管理ユーザのパスワード | |
export MYSQL_ROOT_PASS='mysql##123' | |
## Wordpressデータベース名 |
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 | |
# File:serverspec_install_with_centos64_x86_64.sh | |
# 2013/06/21 @ysaotome | |
## セットアップに必要なライブラリのインストール | |
/usr/bin/yum -y install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison | |
## rbenvセットアップ | |
/usr/bin/git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
/bin/mkdir /usr/local/rbenv/{shims,versions} |
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 | |
# File:chef-solo_automatic_install_with_centos63_64bit_Plain_for_niftycloud.sh | |
# 2013/06/16 @ysaotome | |
#=============================================== | |
# Settings | |
#=============================================== | |
##ニフティクラウドのAPIキーを埋め込むと便利 | |
NIFTY_CLOUD_ACCESS_KEY='Your NIFTY Cloud Access Key' | |
NIFTY_CLOUD_SECRET_KEY='Your NIFTY Cloud Secret Key' |
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 | |
# Description:CentOS 6.6 64bit Plain setup script for NiftyCloud (http://cloud.nifty.com/) | |
# File:centos66_64bit_Plain_setup_script_for_niftycloud.sh | |
# 2016/05/01 @ysaotome | |
( | |
#=============================================== | |
# Settings | |
#=============================================== | |
##rootのパスワード |
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 | |
# CentOS 6.3 64bit Plain setup script for NiftyCloud | |
# 2013/04/22 @ysaotome | |
#=============================================== | |
# Settings | |
#=============================================== | |
##rootのパスワード | |
ROOT_PASSWORD='hoge##123' | |
##追加する管理ユーザ名 |
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
yum --enablerepo=rpmforge,epel,remi -y install gcc make zlib zlib-devel openssl-devel zsh | |
cd /usr/local | |
git clone git://github.com/sstephenson/rbenv.git rbenv | |
mkdir rbenv/shims rbenv/versions | |
chgrp -R groupname rbenv | |
chmod -R g+rwxXs rbenv | |
git clone git://github.com/sstephenson/ruby-build.git ruby-build | |
cd ruby-build | |
./install.sh |
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 | |
//Facebook公式SDK(開発セット)を読み込む | |
require './facebook-php-sdk/src/facebook.php'; | |
//AppIDとAppSecretをFacebook Developer Centerにて取得して下さい。 | |
// https://developers.facebook.com/apps/ | |
//AppIDとAppSecretを設定してください。 | |
$facebook = new Facebook(array( | |
'appId' => 'APP ID', |
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
#!/usr/bin/awk -f | |
BEGIN { | |
FS="##"; | |
print "digraph G {"; | |
print "\t\"0.0.0.0/0\" [label = \"インターネット\"];"; | |
} | |
$7 ~ /CIDR|IP|GRPNAME/ { | |
src = $8; | |
} |