tail -f /dev/null

If you haven't had any obstacles lately, you're not challenging. be the worst.

Mac から console 接続を行い Cisco Router 892J の機器設定を行う

Cisco Router に接続し, 機器の設定を行う. Cisco router, switch は IOS が稼働しており, PC から console 接続を行い IOS を操作して設定を行う. Environment Router Cisco 892J Console (Rollover) cable Cisco 純正 RS-232C interface USB serial 変換 c…

IIS10 用語や設定メモ

memo. 用意するもの IIS10.0.1 HTTP protocol 10.0.1では HTTP/1.1, HTTP/2.0 をサポート。 クライアントサイドのprotocolによりよしなに切り替えてくれる。 Application pool IIS Web Application worker processの設定を行う。 Worker processはweb applic…

AWS RI購入時のキャパシティエラーについて

aws

Reserved Instance購入時にCapacity不足の場合がある。需要に応じて適宜キャパシティも供給されるが、供給数が元々少なかったり、連休直前で大量購入があった場合等はキャパシティが枯渇する場合がある。 Only show offerings that reserved capacity カート…

Fluentd: trouble shooting on Windows Server

Envrironment 確認環境下 OS: Windows Server 2016 td-agent: 3.1.1 確認したのは Windows Server 2016でのみだが、Linuxでも一部当てはまる。 buffer enqueue中にtd-agentのconfを書き換えてrestartしてしまった 何かしら例えばchunkがenqueue出来ずbuffer…

de:code2019

行ってきたので内容をメモった。Azureは未経験。 CD12 Kubernetes関連 Session: CD12 / マネージド Kubernetes ガチ本番運用 in ZOZOTOWN Date: 2019/05/29 Place: 港区芝公園ザ・プリンス パークタワー東京 Official URL Presentation Kubernetes運用の目的…

PowerShell で A -> B account へ STSRole

PowerShell で実施する手順をメモ. # Import AWS module. Set-ExecutionPolicy RemoteSigned Import-Module AWSPowerShell # Set AWS credentials. Set-AWSCredential -AccessKey xxx -SecretKey xxx -StoreAs A_default Set-AWSCredentials -ProfileName A_…

Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.

環境 Windows server 2016 Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe PSVersion: 5.1.14393.3471 PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.3471 BuildVersion: 10.0.14393.3471 CLRVersion: 4.0.…

AWS EBS volume size 拡張

Linux OS (Centos 7) Extend volume size # ex. modify root volume size 10GiB to 20GiB $ aws ec2 modify-volume --volume-id vol-xxx --size 20 --region ap-northeast-1 Check File system $ sudo file -s /dev/xvd* /dev/xvda: x86 boot sector; partit…

chefを利用するのにbundle installを辞めて、chefDKを採用

environment Chef Development Kit: 3.8.14 chef-client version: 14.10.9 berks version: 7.0.7 kitchen version: 1.24.0 inspec version: 3.6.6 background chefを利用するのに bundle install して利用していたが、依存関係で嵌ると沼から抜け出せない事…

machinekeyについて

machinekeyとは machineKey 要素 (ASP.NET 設定スキーマ) | Microsoft Docs 主にform認証data、view(html)に出力される管理情報(state data)の暗号化、復号化、検証を行う目的で使われるkey。 認証用cookieやviewにおいて、改ざん防止・暗号化が可能。 machi…

Docker: PostgreSQL9.6のcontainerを立てる

locale設定で僅かに躓きました。 Dockerfile FROM postgres:9.6 RUN localedef -i ja_JP -c -f UTF-8 -A /usr/share/locale/locale.alias ja_JP.UTF-8 ENV LANG ja_JP.UTF-8 ENV LANGUAGE ja_JP:ja ENV LC_ALL ja_JP.UTF-8 ENV POSTGRES_USER postgres ENV P…

AWS S3とCloudFrontで301 redirectさせる

aws

概要 今回 halu.dev のdomainを取得したので www.xxx.net (念為伏) から引っ越した。S3のstatic website hostingにおけるredirectは勿論 http -> https は可能だが、 https -> https は不可である。 例えば以下のようにredirectさせる。 www.xxx.net -> www.…

PipenvでPythonの仮想環境を作る

Environment pipenv --version pipenv, version 2018.11.26 Install option virtualenv, virtualenvwrapper が既に install されている場合は削除. brew uninstall pyenv-virtualenv pip uninstall package virtualenvwrapper pipenvのinstall。 pip install…

📝 Zabbix trigger の threshold

基本的な使い方は公式サイトに記載されているが、癖のある閾値の見方をするトリガー設定もあるのでしておく。 regexp(), iregexp() 最新値がregular expressionと一致するかどうかチェックする。 parameterはPOSIXのregular expression。 iregexp("WARNING",…

Grafanaのグラフ描画時に504 Gateway Timeoutが発生する場合がある

概要 zabbixサーバのwebサーバ用として利用しているNginxでGrafanaへreverse proxyしている。 client -> ALB -> Web server(zabbix用) -> (Nginxによるreverse proxy) -> grafana グラフ描画する際のクエリdurationが大きい場合、Nginx側で504 timeoutしてし…