Skip to content

Instantly share code, notes, and snippets.

Yuichi Saotome ysaotome

View GitHub Profile
@ysaotome
ysaotome / eccube3_db_install_with_centos71_for_niftycloud.sh
Created Jun 4, 2016
演習用:ニフティクラウド(NiftyCloud)向けEC-CUBE3セットアップスクリプト。http://[サーバIP]/ にEC-CUBE3がセットアップされる
View eccube3_db_install_with_centos71_for_niftycloud.sh
#!/bin/bash
# Description:EC-CUBE3 Setup with CentOS 7.1 64bit Plain for NiftyCloud (http://cloud.nifty.com/)
# DBサーバ用ファイル
# 2016/06/01 @ysaotome
(
#===============================================
# Settings
#===============================================
##追加する管理ユーザ名
@ysaotome
ysaotome / centos71_64bit_Plain_setup_script_for_niftycloud.sh
Last active Sep 30, 2016
CentOS 7.1 64bit Plain Cloud Init Script for NiftyCloud (http://cloud.nifty.com/)
View centos71_64bit_Plain_setup_script_for_niftycloud.sh
#!/bin/bash
# Description:CentOS 7.1 64bit Plain Cloud Init Script for NiftyCloud (http://cloud.nifty.com/)
# 2016/09/30 @ysaotome
(
#===============================================
# Settings
#===============================================
##rootのパスワード
ROOT_PASSWORD='hoge##123'
@ysaotome
ysaotome / gist:a2e18e98bf3c5cd60a73
Last active Aug 14, 2017
LXC環境セットアップ時のメモ
View gist:a2e18e98bf3c5cd60a73
LXC環境セットアップ時のメモ
Ubuntu 14.04ホストセットアップ
下記を設定
https://gist.github.com/ysaotome/cdc02c05425e01abc500
LXCセットアップ
http://www.server-world.info/query?os=Ubuntu_14.04&p=lxc&f=1
@ysaotome
ysaotome / niftycloud-api-tools-installer.sh
Last active Oct 23, 2018
ニフティクラウドのCLIツール( http://cloud.nifty.com/api/cli/ )を自動セットアップするスクリプトと使用例
View niftycloud-api-tools-installer.sh
#!/bin/bash
# setup NIFTY Cloud API Tools
(
USER=${USER}
HOME=${HOME}
ARC=$(/bin/uname -m)
## OpenJDKセットアップ
/usr/bin/yum -y install java-1.6.0-openjdk.${ARC}
@ysaotome
ysaotome / capture.sh
Last active Aug 14, 2017
バッチ処理でURL一覧ファイルから順次Chroniumでのレンダリング結果をキャプチャして保存していくスクリプト(サムネイル作成機能付き)
View capture.sh
#!/bin/bash
LOGS_DIR='/var/www/html/logs'
THUMBNAIL_BIG_DIR='/var/www/html/thumbnail_big'
THUMBNAIL_SMALL_DIR='/var/www/html/thumbnail_small'
SCREEN_NUM=${2}
for i in `awk '{print $1}' < $1`
do
@ysaotome
ysaotome / Ubuntu1404_64bit_Plain_setup_script_for_niftycloud.sh
Last active Aug 14, 2017
Ubuntu 14.04 64bit Plain setup script for NiftyCloud (http://cloud.nifty.com/)
View Ubuntu1404_64bit_Plain_setup_script_for_niftycloud.sh
#!/bin/bash
# Description:Ubuntu 14.04 64bit Plain setup script for NiftyCloud (http://cloud.nifty.com/)
# File:Ubuntu1404_64bit_Plain_setup_script_for_niftycloud.sh
# 2014/07/10 @ysaotome
(
#===============================================
# Settings
#===============================================
##rootのパスワード
@ysaotome
ysaotome / install_pyenv.sh
Last active Feb 18, 2019
pyenv install for CentOS 6.5 x86_64
View install_pyenv.sh
#!/bin/zsh
# pyenv install for CentOS 6.5 x86_64
yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel
git clone git://github.com/yyuu/pyenv.git ~/.pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
@ysaotome
ysaotome / installing_ricty_on_MacOSX.sh
Last active Dec 27, 2015
プログラミング用フォントRitcyをOS X Mavericks (10.9)でセットアップ。要 homebrew https://github.com/yascentur/Ricty
View installing_ricty_on_MacOSX.sh
#!/bin/bash
## install fontforge
brew install fontforge
##mkdir work
mkdir ~/.Trash/ricty
cd ~/.Trash/ricty
## get fontfiles
@ysaotome
ysaotome / L2TP_IPSec_vpn_setup_for_centos65.sh
Last active Dec 26, 2017
CentOS 6.5 x86_64 に対してL2TP/IPSecでVPNを構築するスクリプト。 参考ページ:https://gist.github.com/CLCL/5742738
View L2TP_IPSec_vpn_setup_for_centos65.sh
#!/bin/bash -x
# Description:L2TP/IPsec for CentOS 6.5 64bit
# 2014/01/06 @ysaotome
(
### setting
/bin/cat << _SECRETS_ > /tmp/SECRETS_TMP.txt
#==============================================
# username auth_server password auth_ipaddress
"hoge001" "xl2tpd" "hoge##123" *
@ysaotome
ysaotome / PPTP_vpn_setup_for_centos64.sh
Last active Dec 20, 2015
CentOS 6.4 x86_64 に対してPPTPでVPNを構築するスクリプト。※DoCoMo SPモードではPPTP使えないので注意。
View PPTP_vpn_setup_for_centos64.sh
#!/bin/bash -x
# Description:PPTP for CentOS 6.4 64bit
# 2013/07/28 @ysaotome
(
### setting
/bin/cat << _SECRETS_ > /tmp/SECRETS_TMP.txt
#==============================================\n
# username auth_server password auth_ipaddress\n
"hoge001" "pptpd" "hoge##123" *\n
You can’t perform that action at this time.