This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| v4は地球。 | |
| 昔は地球(インターネット)を使う人が少なかったので、 | |
| 一人ひとりが贅沢に自分専用の住所を持てていた。 | |
| しかし人が増え、住所が足りなくなったため、 | |
| 1つの住所を複数人で共有するようになった。 | |
| そのため、住所は配布先に申請しないともらえない。 | |
| 一方v6はマイクラ。 | |
| 地球での反省を活かし、最初からほぼ無限の住所を使える設計になっている。 | |
| 場所がほぼ無限なので、基本的に1人が1つの住所を使う。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "[*] Detecting interface (IPv4 default)..." | |
| IFACE=$(ip -4 route show default | awk '{print $5}' | head -n1) | |
| echo "[*] Detecting current IPv4 (non-secondary)..." | |
| ADDR=$(ip -4 addr show "$IFACE" \ | |
| | awk '/inet / && $0 !~ /secondary/ {print $2}' \ | |
| | head -n1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # WordPress日本語版 + Nginx + MySQL/MariaDBをUbuntu Serverにプロダクションレディでセットアップするスクリプト | |
| set -e | |
| apt update && apt install curl | |
| # --- 設定値(必要に応じて編集) --- | |
| DB_NAME="wordpress" | |
| DB_USER="wpuser" |