2018-11-01から1ヶ月間の記事一覧

sendmail ローカル配送

$ sendmail -bt > $=w > /quit$=w is a class that contains all the names sendmail considers local. These include those listed in /etc/mail/local-host-names and those in /etc/hosts that sendmail considers local after examining the machine's n…

ディレクトリ名

.d ディレクトリにまつわる etc. - 破棄されたブログ

ファイルサイズ(容量)の合計

ls -l /var/log/maillog* | awk '{ total += $5 }; END { print total/1024/1024 "M" }' http://blogcdn.rutake.com/techmemo/2017/04/19/linux-lsで特定ファイルサイズの合計値を出す/ find /usr/local/pgsql/archive/ -type f \ -newermt '2019/3/27 11:00…

aws cloudfront 証明書

It seems there's substantial delay, but it does eventually propagate. After almost 24h I'm now seeing the cert being served from both CDNs I was updating. It may be the case that doing invalidations on the / path helps as the other one tha…

Ansible Galaxy role 登録

role登録 (github.com) プロジェクト作成 https://github.com/kurita0/ansible-role-nagios_check_mficd ansible-role-nagios_check_mfiREADME.md meta/main.yml を追加git init git add . git commit -m "first commit" git remote add origin git@github.c…

ansible コーディング規約

ansibleのコーディング規約 https://gist.github.com/kkkw/ea55caf2fdaa38a965d7de6954f1fdda block ディレクティブ Ansible v2.0 からの "block" ディレクティブを使ってみる https://qiita.com/tksarah/items/5ec07acf9e7ee7814a04

WSL bash

echo "set bell-style none" >> ~/.inputrc echo "set visualbell t_vb=" >> ~/.vimrc Bash on Windowsでビープ音を消す方法 | Linux Fanhttps://github.com/mintty/wsltty/releasesWSLのコンソールを便利で高機能な「wsltty」に置き換える:Tech TIPS - @IT

AWS CLI

構成設定はどこに保存されていますか。 ... ~/.aws/credentials [default] aws_access_key_id=AKIAIOSFODNN7EXAMPLE aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY ~/.aws/config [default] region=us-west-2 output=json 設定ファイルと…

aws CloudFront S3 hosting

公式 静的ウェブサイトホスティング用に S3 バケットを設定する方法 - Amazon Simple Storage ServiceAWS S3で静的Webページをホスティングする - Qiita「アップロード」「アクセス許可を設定する」は 「このオブジェクトにパブリック読み取りアクセス権限を…

MegaCli Other Error Count

Other Error Count Regarding why it is happening, it appears that that version of the MegaCli software issues commands unsupported by SATA drives. ... Event Description: Unexpected sense: PD 07(e0x20/s7) Path 1221000007000000, CDB: 4d 00 4d…

megacli コマンド

Adapter parameter -aNThe parameter -aN (where N is a number starting with zero or the string ALL) specifies the PERC5/i adapter ID. If you have only one controller it is safe to use ALL instead of a specific ID, but you are encouraged to u…

Synology acl

https://www.reddit.com/r/synology/comments/8h6u9c/unix_permissions_synology_permissions/getfacl / setfacl のかわりに synoacltool を使う $ synoacltool -get /volume1/shared ACL version: 1 Archive: has_ACL,is_support_ACL Owner: [root(user)] -…

opcache

PHP: インストール手順 - Manual opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 opcacheは、opcache.revalidate_freqで…