Advanced Search
Search Results
366 total results found
Words
Fundamentals; Basics (基礎; 基本) incindent; event (事件) Regulations; Compliance; Regulatory Compliance (法規; 合規; 法遵) Fraud ; Fraudsters (詐騙;詐騙犯) Prerequisites (必備條件) Bottleneck (瓶頸) Achieve (達到;實現) Bare Metal (實體機;裸機) Overhead (執行成本, 負擔成...
Phrases
I'd like to take a personal day off next week; 請假一天 May I have three days off next week; 請三天假 He is on leave; 他在休假 perform the following checks to determine whether a device may have been compromised 執行下方的檢查來確認是否 head over to ; 前往 As such 如此; 因此 Here y...
BookStack Installation
With Docker Tutorial: linuxserver/bookstack LSIO BookStack & Swag Setup docker-compose.yml: version: "2"services: bookstack: image: linuxserver/bookstack container_name: bookstack environment: - PUID=1000 - PGID=1000 -...
建立新的自我簽署的憑證檔
產生新的憑證檔 new-cert.key new-cert.crt cd /dir/to/your/cert openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout new-cert.key \ -out new-cert.crt chown 1000.1000 new-cert.* 修改 Nginx 設定 cd /path/to/nginx vi site-confs/default ssl_certificat...
網站存取的Port
使用 Cloudflare CDN 服務架設網站除了常用的 80, 443 以外,如果要用其他特殊 Port,請參考下列有支援的清單: HTTP ports: 80 8080 8880 2052 2082 2086 2095 HTTPS ports: 443 2053 2083 2087 2096 8443 注意: 不在支援清單內的 Port 是無法透過 Cloudflare 存取網站的。
Secure Docker Network
With SWAG SWAG - Secure Web Application Gateway With iptables 對於 Container 不同啟動方式,在 iptables 的腳本設計會有些不同。 docker-compose: 透過橋接的網路介面(br-*) 與 DOCKER-USER 作限制。 docker: 透過 PRE_DOCKER 作限制。 for docker-compose) #!/usr/bin/env bash # Purpose: Restrict the...
有用的連結
VPN - WireGuard https://www.wireguard.com/ How to generate WireGuard QR code on Linux for mobile Free VPN Service VPN Gate P2P VPN Cjdns https://github.com/cjdelisle/cjdns Windows Batch Script https://www.tutorialspoint.com/batch_scrip...
Learning
Tutorials FreeBSD 6.0架設管理與應用 The FreeBSD Project BSD vs Linux
Postfix: Tips
postfix 服務啟動/停止/重新載入 postfix check postfix start postfix stop postfix reload postfix flush postconf - 不用編輯 main.cf 的設定方法 列出設定參數 postconf -n 修改參數*不需要重啟服務* postconf -e "relayhost = [192.168.10.10]:587" \ "smtp_sasl_auth_enable = yes" \ "smtp_sasl_se...
Tips
Cheat Sheet Options in the integration with Shell CURL_CMD="curl" CURL_OPT="-qSfs -m 60" CURL_OPT_POST="-qSfs -m 60 -X POST" POST Request Send an Empty POST Request curl -X POST https://catonmat.net Send a POST Request with Form Data curl -d 'login=...
範例與常用技巧
檔頭常用宣告 Use Bash Strict Mode # quickly syntax set -euo pipefail # let script exit if a command fails set -o errexit # OR set -e # let script exit if an unsed variable is used set -o nounset # OR set -u # This setting prevents errors in a ...
grep
教學網站 http://www.cyberciti.biz/faq/grep-regular-expressions/ https://www.ubuntupit.com/practical-grep-command-for-linux-enthusiasts/ 文字過濾 # 使用 . (period) 表示一個任意字元 > grep dev.sda /etc/fstab /dev/sda3 / reiserfs noatime,ro 1 1...
test
字串或文字的比對 Str1 = str2 | 當str1與str2相同時, 傳回True Str1 != str2| 當str1與str2不同時, 傳回True Str1 < Str2 Str1 <= Str2 Str1 > Str2 Str1 >= Str2 Str | 當str不是空字符時, 傳回True -n str | 當str的長度大於0時, 傳回True -z str | 當str的長度是0時, 傳回True 數字(整數) 比對 Int1 -e...
awk
教學網站 https://linuxhandbook.com/awk-command-tutorial/ Running Awk in parallel to process 256M records Awk one-liners 搜尋字串 awk '/^this/{print $0}' #與 sed -n '/^this/p' 相同 搜尋取代 # 移除分號 awk { gsub(/\;/, "") } 移除重複資料的行 我們經常使用 sort 與 uniq 指令,從檔案...
sed
教學網站 http://www.tecmint.com/linux-sed-command-tips-tricks/ https://www.cyberciti.biz/faq/how-to-use-sed-to-find-and-replace-text-in-files-in-linux-unix-shell/ Complete Sed Command Guide Sed - An Introduction and Tutorial by Bruce Barnett Learn to use th...
Sample Scripts
線上範例 ip.sh - 主機 Public IP 品質健檢 whoamifuck.sh - Linux 系統安全檢測 Auto-rar.sh 解壓縮多個分割檔案 (*.part0XX.rar) #!/bin/bash echo "-> Started: "`date +%m/%d/%y\ %H:%M\ %Z` echo "-> As:"`whoami` i=1 ARCHIVES="$@" for f in $ARCHIVES; do PARTCHECK=$(expr "...
Regex 正規表示式
教學網站 https://likegeeks.com/regex-tutorial-linux/ http://overapi.com/regex https://regexper.com/#%2F.echo%24%2F (視覺化正規表示式) The Greatest Regex Trick Ever 測試 Regex 語法 (awk) # echo "Testing regex using awk" | awk '/regex/{print $0}' Testing regex using ...
檔案上傳
Storage Options 編輯 .env STORAGE_TYPE=local_secure 其他不同類型的儲存方式 local s3 Changing Upload Limits PHP post_max_size = 20M upload_max_filesize = 20M Nginx 如果使用官方教學的 Docker 方式安裝,不需要再設定 Nginx。 http { #... client_max_body_size 100m; ...
校時與時區設定
Tutorials How to Sync Linux Time With NTP Server - Make Tech Easier Chrony Built-in on CentOS/RedHat CHAPTER 18. CONFIGURING NTP USING THE CHRONY SUITE CentOS / RHEL 7 : Configuring NTP using chrony How do I check Linux system’s current NTP configu...
MySQL Backup
從 Host 執行 backup-db.sh #!/bin/bash BKDIR="db_backups" BKFILE="cloudcoin_raida#17.`date +%y%m%d`.sql" DBUSER="ThisDBUser" DBNAME="cloudcoin_raida" CONTNAME="raida17" CONTDIR="/opt/data/$BKDIR" HOSTDIR="/docker_vol/raida/data/$BKDIR" KEEP=2 [ -d...