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

aws 削除 terraform

terraform で定義したリソースを全て削除するterraform destroy 10分で理解するTerraform - Qiita ELB delete protectionRDS skip_final_snapshot実践Terraformを読んでハマったこと - Qiita【Terraform】 skip_final_snapshot を設定しないでRDSを作成した…

ESPRIMO FH90

https://azby.fmworld.net/app/customer/driversearch/pc/drvlistm?modelName=FMVF90E2B&os=&category=91&kanzen=1&mode=0&reload=1&supfrom=/app/customer/mypc/view/index.vhtml

zfs 再レイアウト

https://www.unixarena.com/2013/07/zfs-how-to-extend-zpool-and-re-layout.html/

APN aws パートナーネットワーク

iDATEN(韋駄天)| APNパートナー認定資格いいじゃん!AWS パートナートレーニングと認定 - Qiita 2021

ssh authorized_keys

ssh-dss AAAAB9Nza....省略 a.hoge.jpからのアクセスを許す場合、from="a.hoge.jp"を追加します。 from="a.hoge.jp" ssh-dss AAAAB9Nza....省略 sshのauthorized_keysで接続元を制限をする方法

find mv delete

find mv xargsコマンドの-Iオプションを使用する $ find . -name "*.log" | xargs -I% mv % logsfindコマンドで取得したファイルをmvコマンドに渡す方法 – 3テラバイト -t, --target-directory=DIRECTORY move all SOURCE arguments into DIRECTORY tオプシ…

terraform S3/CloudFront/Route53/ACM

https://tech.lucheholdings.com/entry/2018/09/25/220855 2018CloudFront + S3のWebサイトをTerraformで構築する | DevelopersIO 2021 参考 【AWS CloudFront + S3】「404 NotFound」を表示させる方法 - 株式会社クイックのWebサービス開発blog 2018AWSリソ…

crontab

https://blog.sanctum.geek.nz/cron-best-practices/ 複数のコマンドを実行、ログ出力 SHELLをbashにする。丸括弧で囲んでまとめて出力先を指定する。 SHELL=/usr/local/bin/bash 0 12 * * * * ( cd /var/scripts/my_command1 ; /var/scripts/my_command2 ) …

gvm 21.04

https://community.greenbone.net/t/gvm-21-04-stable-initial-release-2021-04-16/8942 upgrade https://community.greenbone.net/t/upgrade-20-08-to-21-04/8962 If your 20.08 modules are already configured and working fines; then upgrading to 21.0…

centos 7 yum security update

CentOS7 での yum –security update 事情 « LANCARD.LAB|ランカードコムのスタッフブログ

EC-CUBE バージョン確認

EC-CUBE3.0.x系 管理画面にログインし、設定 - システム情報設定 - システム情報 で確認できます。 ソースには src/Eccube/Common/Constant.php で定義されています。 /** * EC-CUBE VERSION. */ const VERSION = '3.0.15'; EC-CUBE バージョン確認方法 - Pu…

vuls cpe cpenames

VulsでCpeNamesを使う - Qiita 2017https://github.com/vulsio/go-cpe-dictionary How to search CPE name by application name $ sqlite3 ./cpe.sqlite3 'select cpe_uri from categorized_cpes' | peco https://github.com/vulsio/go-cpe-dictionary#how-t…

vuls wordpress

https://vuls.io/docs/ja/usage-scan-wordpress.html /bin/bash -c /usr/local/bin/wp cli *, /bin/bash -c /usr/local/bin/wp core *, /bin/bash -c /usr/local/bin/wp theme *, /bin/bash -c /usr/local/bin/wp plugin * FutureVuls Document sudo -u (osU…

git

コミットメールアドレスを非公開にする TL;DR GitHub の Settings - Emails にある Keep my email addresses private を有効化 GitHub の Settings - Emails にある Block command line pushes that expose my email を有効化 Git の設定の user.email を [I…

.bc.googleusercontent.com

結局の所.bc.googleusercontent.comから来るアクセスはGoogleのリソースを使っている、ただの個人ユーザーでありGoogleとは全く関係ないアクセスでした。 .bc.googleusercontent.comはスパム?アクセス禁止方法を解説 | PHPラボ

vuls FreeBSD

pkgのバージョンは古いのでソースコンパイル 2021/11 go-cve-dictionary VulsをFreeBSD Jailに仕込んでみる - Qiita 2017go-cve-dictionary-0.5.5 $ go-cve-dictionary fetchjvn -years 2021 EROR[11-12|13:44:21] Failed to fetch JVN: [Failed to validate…

go 言語 golang

変数 Go言語の変数定義 - Qiita a := "hoge" "変数aを定義して、そこに値を代入してあげる" 【Go】コロンイコール(:=)って何? 2020 テスト Go の Test に対する考え方 - Qiita 2013 実行 go test go test -run でテストが行えます。 go test packagePath # c…

ssh controlmaster connections

Memo/Linux/ssh - DEX Lab This works for me using just the socket file for the control master: $ ssh -o ControlPath=~/.ssh/ -O check Example Here's an example where I've already established a connection to a remote server: $ ssh -o ControlP…

nginx アクセスログ ホスト名

"$request" を "$request_method $scheme://$host$request_uri $server_protocol" にする If you want to log the full requested url, then my method is log_format main '$http_x_forwarded_for - $remote_user [$time_local] ' '"$request_method $schem…

vuls

https://vuls.io/https://github.com/future-architect/vulsVuls〜OSSの脆弱性検知ツール〜 | OSSのデージーネット巷でナウな脆弱性スキャンツールVulsを試してみた!|【技業LOG】技術者が紹介するNTTPCのテクノロジー|【公式】NTTPC 2018CentOS7 Vulsのイ…

nginx 特定IPを拒否

リバースプロキシ越しのnginxで国外IPアドレスからのアクセス拒否 - Qiita 2017 チュートリアル Nginx - IP アドレス一覧をブロックする [ ステップ バイ ステップ ] conf.d/denyip.conf deny 192.168.1.0/24; deny 192.168.2.102; allow all;

mysql スロークエリ

スロークエリの確認方法:MySQL編 - pTune.jp 2020

php 匿名関数

https://www.php.net/manual/ja/function.create-function.phpPHPで無名関数っぽく・・・orz(create_functionを楽にしたいだけなのに) | 株式会社オルタ

Let's Encryptルート証明書 期限切れ

openssl 1.0.2 FreeBSD letsencrypt 9月末でLet's Encryptルート証明書が期限切れ、古い製品は要注意 | TECH+ 2021-09 対策 2. クライアント側で DST Root CA X3 を信頼済みCA一覧から削除する Let's EncryptのルートCA期限切れで OpenSSL 1.0.2が思わぬ事故…

Ansible

Ansible blockblock - タスクをまとめる-φ(.. ) のメモAnsible unarchive - name: Unarchive a file that needs to be downloaded (added in 2.0) ansible.builtin.unarchive: src: https://example.com/example.zip dest: /usr/local/bin remote_src: yesan…

pkgインストールしたapache24をportsの最新バージョンにする FreeBSD

Apache HTTP Server の脆弱性対策について(CVE-2021-41773):IPA 独立行政法人 情報処理推進機構https://www.freshports.org/www/apache24/Availability Apache 2.4.50 as package | The FreeBSD Forums ビルドオプション(portsのmake config)確認 pkg info …

Azure Static Web Apps

静的サイトジェネレーターと相性のよいホスティングサービス一覧( 2021 年時点) | gotohayato.com 2021

aws cli autoscaling private ip

AutoScalingで起動したインスタンスの情報をssh bannerで表示させた話 - Qiitaaws cli のquery書くのがだるいのでシェルに書いたらssh接続するのすげー楽になった – Romantique 76AWS CLIを使ってEC2インスタンスの情報を取得する - QiitaAWS CLIを使ってTag…

xdebug osx qcachegrind

qcachegrindhttps://stackoverflow.com/questions/4473185/need-kcachegrind-like-profiling-tools-for-mac

MySQL クエリーキャッシュ

MySQL クエリキャッシュ値設定と確認方法 - QiitaMySQL クエリーキャッシュ 【チューニング方法とかも】 - Qiita SHOW VARIABLES LIKE '%query_cache_%'; +------------------------------+------------+ | Variable_name | Value | +----------------------…