2021-01-01から1年間の記事一覧

Chromedriverの自動アップデートスクリプト for Windows

Win

Chromeブラウザのバージョンアップは自動的に行われるので、それに追随してChromedriver.exeもアップデートするPowerShellスクリプト。 タスクスケジューラで毎日実行する。 $BIN="D:\usr\local\bin" $CHROME="C:\Program Files (x86)\Google\Chrome\Applica…

firewalldの設定

zoneはpublicを使う。 firewall-cmd --list-all firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --add-service=smtp --permanent firewall-cmd --add-port=9999/tcp --permanent #sshで使うポート…

Let's Encryptサーバー移行メモ

epelでcertbotをインストール 証明書失効 certbot revoke --cert-path=/etc/letsencrypt/archive/example.jp/cert1.pem 証明書申請 certbot certonly --manual \ --server https://acme-v02.api.letsencrypt.org/directory \ --preferred-challenges dns-01 …

CentOS8のPrivateTmp

httpdをsystemdで起動すると、デフォルトでは/tmpに書けず、毎回作られた一時ディレクトリーに書くようになっている。 /etc/systemd/system/multi-user.target.wants/httpd.serviceのPrivateTmp=trueをfalseにすれば/tmpに書くように戻る。

google-api-client gem is deprecated

gem updateするとこんなメッセージが。 The google-api-client gem is deprecated and will likely not be updated further. Instead, please install the gem corresponding to the specific service to use. For example, to use the Google Drive V3 clie…