Advanced Search
Search Results
474 total results found
Command Line
Tutorials Controlling VirtualBox from the Command Line Basic Commands vboxmanage list vms vboxmanage list -l vms Create VM VBoxManage list ostypes VBoxManage createvm --name OracleLinux6Test --ostype Oracle_64 --register Setting UP a VM's Propertie...
JSON
Tutorials How to Transform JSON Data to Match Any Schema JSON to dict json.loads 用來轉換資料; json.load 用來讀檔。 import json person = '{"name": "Bob", "languages": ["English", "French"]}' person_dict = json.loads(person) # Output: {'name': 'Bob', 'langu...
Datetime
時間格式代碼 %d:以十進製表示的月份中的第幾天,填充零。 %m:十進製表示的月份,零填充。 %y:以零填充的十進製表示法的年份的最後兩位數字。 %Y:以十進製表示的四位年份數字,零填充。 %H:當以十進製表示並填充零時(24 小時制) %I:當以十進製表示並填充零時(12 小時制) %M:用於填充零的十進製表示法。 %S:以十進製表示的秒數,填充零。 %f:十進製表示法中的微秒(6 位),填充 0。 %A:區域設置的星期幾的名稱 %a:區域設置的日期名稱(縮寫形式) %B:語言環境月份...
Makefile
何謂 Makefile make 命令雖有很多內建的功能,但它也無法知道如何建立應用程式。故必須提供一個檔案,即 Makefile,告訴 make 如何建立應用程式。 Makefile 與專案的原始碼檔案,通常放在同一個目錄中。 可以同時有很多不同的 makefile 管理專案的不同部分。 make 命令和 Makefile 的結合,不僅控制原始碼的編譯,也可以用來準備使用手冊文件、安裝應用程式到目的目錄中。 使用 Makefile 的好處 如果這個專案沒有編譯過,那麼我們的所有程式碼都要編...
One-Liners
1) Multiple Variable Assignment # Traditional way a = 1 b = "ok" c = False # Pythonic way a, b, c = 1, "ok", False # Result print(a, b, c) # Show: 1 ok False 2) Variable Swap # Traditional way a = 1 b = "ok" c = a a = b b = c # Pyt...
List 串列
串列是任何類型元素的序列,並且是可變的。用於儲存項目集合,它們可以包含任何型別的資料,並以方(中)括號表示。 a = [1, 2, 3, 4, 5] b = ['mango', 'pineapple', 'orange'] 在 Python 中,List 和 String 非常相似。它們都是資料序列的範例。序列有類似的屬性,例如: 可以使用 for 迴圈迭代序列 支援索引 indexing 使用 len() 函數找出序列的長度 使用加號運算符 + 來串連 使用 in 關鍵字來檢查序列是否包含一...
tcpdump
List the interfaces sudo tcpdump -D Capture All traffic tcpdump -i eth0 tcpdump -i wlan0 To a File tcpdump -i eth0 -w capture.pcap tcpdump -i any -w capture.pcap -nn 'ip and port 80' # Set Timeout timeout 6m tcpdump -i eth0 -w capture.pcap Read a f...
Playbooks
[Github] Ansible for DevOps Examples [AI] Welcome to the Ansible Lightspeed with IBM Watson Code Assistant Technical Preview | Ansible Collaborative [AI] Red Hat Ansible Lightspeed | Red Hat Developer ansible-for-devops.pdf rhce-ansible-automation-study-...
Tips
系統資訊 檢查系統是 32 或 64 bit uname -a getconf LONG_BIT 檢查 freebsd 版本 uname -mrs freebsd-version -k # 主版本 freebsd-version -u # 更新版本 freebsd-version 指令只在 freebsd 10.0 以後才有。 網路管理 找出應用服務開啟的通訊埠 sockstat -l sockstat -4 -l # 僅顯示 ipv4 ...
Tips
FAQ Fix: Too Many Open Files How to Fix 'Too Many Open Files' Error in Nginx
Learning ML
Free Course ML for Developers Federated Learning 聯邦學習是一種讓多個分散的設備在不傳送原始資料的前提下,協同訓練共享模型的技術。 國家級聯邦學習平臺怎麼運作?三總揭醫療AI跨院訓練機制 | iThome
QNAP NAS
CLI Commands 系統資訊 [~] # getsysinfo cputmp : get CPU temperature systmp : get system temperature sysfan [fan no] : get system fan speed sysfannum : get total system fan number hdnum : get total system SATA disk number hdtmp [disk no] : get SATA disk tem...
TrueNAS CORE
Links Official: https://www.truenas.com/ Doc: https://www.truenas.com/docs/ GUI Text Console 啟用登入密碼 (預設: 關閉) System > Advanced > Unset Show Text Console without Password Prompt Create Pool Name: mypool1 Data VDevs: Disk da1 Force: Check (NOTE...
Patch Set Update (PSU)
安裝 PSU 10.2.0.5.4 (p12419392_10205_Linux-x86_64.zip) 教學參考:Zip 檔解壓後 Readme.html 事前準備 Oracle DB 必須已經安裝完成 patch 10.2.0.5。 下載需要的檔案 p6880880_102000_LINUX.zip (OPatch_upgrade) p12419392_10205_Linux-x86-64.zip (PSU 10.2.0.5.4) 如何檢查目前 DB 的版本訊息 方法一: ...
FAQ
ARP Cache 不會更新 (Send out Gratuitous ARP) 問題說明:兩部相同規格的 Linux 主機,平時互作備援,網路設定各有一個固定 IP 與共用一個 VIP,VIP 使用 Alias IP 方式。每次移動 VIP 至另一部主機時,都會遇到其他鄰近的不同 vLAN 的主機無法 ping 這 VIP,原因是它們的 Switch 設備與 Core Switch 不會立即更新 ARP Cache,直到 在那些 Switch 上手動清除舊的 ARP 紀錄。 解決方案:要讓 Core Swit...
vCenter Converter
簡介 VMware vCenter Converter Standalone Home: https://www.vmware.com/products/converter.html 安裝 錯誤: Error 1053 Error 1053: The service did not respond to the start or control request in a timely fashion . 解決:參閱 KB: https://kb.vmware.com/s/article/649...
Filesystems
Linux Filesystem Comparison
Installation
Instroduction Podman - Manage containers, pods, and images with Podman. Seamlessly work with containers and Kubernetes from your local environment. What is Podman? - redhat.com [Video] It's Making Me REPLACE Docker Install Instructions: https://podman...