Skip to content

Instantly share code, notes, and snippets.

View rav1e-install-error.log
Installing rav1e v0.3.4 (/Users/user/Downloads/rav1e-0.3.4)
Updating crates.io index
warning: package `arc-swap v0.4.7` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
Downloaded arrayvec v0.5.1
Downloaded time v0.1.44
Downloaded crossbeam-deque v0.7.3
Downloaded thiserror-impl v1.0.20
Downloaded semver v0.9.0
Downloaded paste-impl v0.1.18
Downloaded crossbeam-epoch v0.8.2
View brew-install-rust-head.log
$ brew install rust --HEAD -v
Warning: You are running macOS on a arm64 CPU architecture.
We do not provide support for this (yet).
Reinstall Homebrew under Rosetta 2 until we support it.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.
View ffmpeg-install-brew.log
% brew install ffmpeg
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
Warning: You are running macOS on a arm64 CPU architecture.
We do not provide support for this (yet).
Reinstall Homebrew under Rosetta 2 until we support it.
You will encounter build failures with some formulae.
View brew-install-ignore-go.log
$ ln -s ~/go-darwin-arm64-bootstrap/ /opt/homebrew/opt/go
$ brew install --ignore-dependencies direnv
Updating Homebrew...
Warning: --ignore-dependencies is an unsupported Homebrew developer flag!
Adjust your PATH to put any preferred versions of applications earlier in the
PATH rather than using this unsupported flag!
Warning: You are running macOS on a arm64 CPU architecture.
We do not provide support for this (yet).
Reinstall Homebrew under Rosetta 2 until we support it.
@ik11235
ik11235 / homebrew-bundle-install.log
Created Dec 9, 2020
M1-Mac-homebrewインストールlog
View homebrew-bundle-install.log
% brew bundle --global
Initialized empty Git repository in /opt/homebrew/.git/
remote: Enumerating objects: 163982, done.
Updating Homebrew... 0% (1/163982)
remote: Total 163982 (delta 0), reused 0 (delta 0), pack-reused 163982
Receiving objects: 100% (163982/163982), 42.04 MiB | 1.19 MiB/s, done.
Resolving deltas: 100% (121528/121528), done.
From https://github.com/Homebrew/brew
* [new branch] add-scheduled-triage -> origin/add-scheduled-triage
* [new branch] dependabot/bundler/Library/Homebrew/rubocop-1.5.1 -> origin/dependabot/bundler/Library/Homebrew/rubocop-1.5.1
@ik11235
ik11235 / wsl2-firewall-access-approval.ps1
Created Aug 15, 2020
wsl2→windowsホストマシンへのアクセスをすべて許可するやーつ
View wsl2-firewall-access-approval.ps1
# 過去に作成したルールを削除する
Remove-NetFirewallRule -DisplayName "WSL-access-approval"
# 現在のwslマシンのIPアドレスを取得、そのアドレスからのアクセスはすべて許可する
$wsl_ip_accress = wsl bash -c "ip addr show dev eth0 | grep -v inet6 |grep inet |cut -d / -f 1 | sed 's/^ *\| *$//' |cut -d ' ' -f 2"
New-NetFirewallRule -DisplayName "WSL-access-approval" -Direction Inbound -RemoteAddress ${wsl_ip_accress} -Action Allow
View jail.local
yuichi@ik-fib-com-wordpresspro-1-vm:~$ cat /etc/fail2ban/jail.local
[DEFAULT]
#■基本設定
backend = auto
ignoreip = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 ; 無視するIPアドレス(ホワイトリスト)
#■BAN設定
bantime = 360000 ; BANされたIPアドレスがアクセスを禁止される期間(秒)
findtime = 600 ; BANの判定時間(秒)
View main.cf.diff
- default_transport = error
- relay_transport = error
+ #default_transport = error
+ #relay_transport = error
===
+ relayhost = [smtp.sendgrid.net]:2525
+ smtp_tls_security_level = encrypt
+ smtp_sasl_auth_enable = yes
View nginx-app.conf
location ~* /wp-login\.php|/wp-admin/.*$ {
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;