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
# 以下随時蓄積 | |
# リモートのorigin/developをlocalのdevelopブランチへチェックアウトする | |
git checkout -b develop origin/develop | |
# 特定のファイルの編集内容を取り消す。Commitされているファイルの状態に戻す。 | |
git checkout <filepath> | |
# commit一覧表示 | |
git log |
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
# rootユーザへ変更 | |
sudo su - | |
Password: (パスワード入力) | |
# munin, munin-node インストール | |
yum install --enablerepo=epel munin munin-node | |
# muninのhtpasswd設定 | |
htpasswd -c /etc/munin/munin-htpasswd (BASIC認証ID入力) | |
New password: (BASIC認証PW入力) |
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
# インターフェースチェック | |
networksetup -listnetworkserviceorder | |
# ipv6 OFF設定 | |
networksetup -setv6off "USB Ethernet" | |
networksetup -setv6off "Wi-Fi" |
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
cat /dev/urandom | LC_CTYPE=C tr -dc '[:alnum:]' | head -c 40 |
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
# パスワード付きzipファイル生成 | |
zip -e -r file.zip directory | |
Enter password: (Password) | |
Verify password: (Password) | |
adding: directory/ (stored 0%) | |
adding: directory/file (deflated 7%) | |
*** | |
# Option | |
# -e 暗号化して格納する。パスワードは対話的に2度入力する。 |
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
su - | |
Password: (rootのパスワード入力) | |
# memcached, memcached-develインストール | |
yum -y install memcached | |
yum -y install memcached-devel | |
# php-pecl-memacheインストール | |
yum -y install php-pecl-memcache |
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
# see "man logrotate" for details | |
# rotate log files weekly | |
weekly | |
# keep 4 weeks worth of backlogs | |
rotate 53 | |
# create new (empty) log files after rotating old ones | |
create |
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
# see "man logrotate" for details | |
# rotate log files weekly | |
weekly | |
# keep 4 weeks worth of backlogs | |
rotate 4 | |
# create new (empty) log files after rotating old ones | |
create |
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
/var/log/httpd/*log { | |
daily | |
missingok | |
notifempty | |
sharedscripts | |
postrotate | |
/sbin/service httpd reload > /dev/null 2>/dev/null || true | |
endscript | |
} |
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
# 対象ファイル : data/class/pages/admin/LC_Page_Admin_Index | |
# 以下箇所を修正 | |
function action() { | |
// パラメーター管理クラス | |
$objFormParam = new SC_FormParam_Ex(); | |
switch ($this->getMode()) { | |
case 'login': | |
//ログイン処理 |