Skip to content

Instantly share code, notes, and snippets.

View kenzo0107's full-sized avatar
💭
I may be slow to respond.

Kenzo Tanaka kenzo0107

💭
I may be slow to respond.
View GitHub Profile
# 以下随時蓄積
# リモートのorigin/developをlocalのdevelopブランチへチェックアウトする
git checkout -b develop origin/develop
# 特定のファイルの編集内容を取り消す。Commitされているファイルの状態に戻す。
git checkout <filepath>
# commit一覧表示
git log
# 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入力)
# インターフェースチェック
networksetup -listnetworkserviceorder
# ipv6 OFF設定
networksetup -setv6off "USB Ethernet"
networksetup -setv6off "Wi-Fi"
cat /dev/urandom | LC_CTYPE=C tr -dc '[:alnum:]' | head -c 40
# パスワード付き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度入力する。
su -
Password: (rootのパスワード入力)
# memcached, memcached-develインストール
yum -y install memcached
yum -y install memcached-devel
# php-pecl-memacheインストール
yum -y install php-pecl-memcache
# 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
# 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
/var/log/httpd/*log {
daily
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
# 対象ファイル : data/class/pages/admin/LC_Page_Admin_Index
# 以下箇所を修正
function action() {
// パラメーター管理クラス
$objFormParam = new SC_FormParam_Ex();
switch ($this->getMode()) {
case 'login':
//ログイン処理