timmy / 📨 用 swaks 測試 Gmail SMTP 發信:簡單、安全、超方便
1 polubień
0 forków
1 plików
Ostatnio aktywne 8 months ago
用 swaks 快速發送測試信件,支援 TLS、SMTP 認證與 Gmail 應用程式密碼,除錯郵件問題不再靠猜!✅
| 1 | swaks --to 收件者@email.com \ |
| 2 | --from 寄件者@gmail.com \ |
| 3 | --server smtp.gmail.com:587 \ |
| 4 | --tls \ |
| 5 | --auth \ |
| 6 | --auth-user 寄件者@gmail.com \ |
| 7 | --auth-password 應用程式專用密碼 |
timmy / ☁️ GCP 指令大全:靜態 IP、VM 操作、SSH 一次搞懂
0 polubień
0 forków
3 plików
Ostatnio aktywne 8 months ago
從專案切換、建立靜態 IP,到 VM 外部 IP 更換與 SSH 連線,全套 gcloud CLI 操作全收錄,超實用筆記!🛠️
| 1 | # 設定當前使用的 GCP 專案 |
| 2 | gcloud config set project <YOUR_PROJECT_ID> |
| 3 | gcloud config set project my-gcp-project-123456 |
| 4 | |
| 5 | # 查詢目前帳戶下的所有 Compute Engine 虛擬機(VM) |
| 6 | gcloud compute instances list |
| 7 | |
| 8 | # 在 GCP 中建立一個靜態 IP |
| 9 | gcloud compute addresses create <STATIC_IP_NAME> --region <REGION> |
| 10 | gcloud compute addresses create my-static-ip --region us-central1 |
timmy / 💻 用 sqlcmd 操作 SQL Server:從 CLI 查詢資料庫
0 polubień
0 forków
2 plików
Ostatnio aktywne 8 months ago
用 Bash 設定 SQL 密碼、執行 SQL 指令檔,還能快速查出所有資料庫名稱!搭配 sqlcmd 效率滿分 ✅
| 1 | export SQLCMDPASSWORD="YourSecurePassword123!" |
| 2 | sqlcmd -S 127.0.0.1,1433 -U sa -i script.sql |
Nowsze
Starsze