Skip to content

Instantly share code, notes, and snippets.

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
/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':
//ログイン処理
# sshd_config記述にミスがないかチェック
/usr/sbin/sshd -t
Sitemap: http://hogehoge.com/sitemap.xml
# Dockerインストール
sudo yum install -y docker
# Docker デーモン起動
sudo service docker start
# Dockerバージョン確認
docker --version
Docker version 1.5.0, build a8a31ef/1.5.0
# Docker公式サイトのチュートリアルで使用するイメージ取得
sudo docker pull learn/tutorial
# Dockerイメージ一覧表示
sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
learn/tutorial latest 8dbd9e392a96 24 months ago 128 MB
# Dockerでコマンド実行