Recently Updated Pages
Cheat Sheets
Online Search 中文:各種速查表線上快速查詢 英文:各類速查表線上快速查詢 Curl curl-cheat-sheet.pdf Git git-for...
Tips
編碼 UTF-8 宣告 #!/usr/bin/python # -*- coding: utf-8 -*- Find all installed modules help("module...
Errors and Exceptions
適用實例: A file doesn’t exist A network or database connection fails Your code receiv...
Course 2
Understanding Slowness Slow Web Server ab - Apache benchmark tool ab -n 500 site.example.com ...
Binary Search
二分搜尋(Binary Search)是一種高效的搜尋演算法,用於在已排序的串列(List)中尋找特定元素的位置或值。 前提條件: 資料集合必須是已排序的,可以是升序或降序排列。這是因為二分...
List 串列
串列是任何類型元素的序列,並且是可變的。用於儲存項目集合,它們可以包含任何型別的資料,並以方(中)括號表示。 a = [1, 2, 3, 4, 5] b = ['mango', 'pinea...
Regular Expression
Basic Regex Character types \w matches with any alphanumeric character, including underline ...
Datetime
時間格式代碼 %d:以十進製表示的月份中的第幾天,填充零。 %m:十進製表示的月份,零填充。 %y:以零填充的十進製表示法的年份的最後兩位數字。 %Y:以十進製表示的四位年份數字,零...
String 字串
字串是字元序列且是不可變的。以單引號或雙引號括起來的多個字元的集合,可以包含字母、數字和特殊字元。 Concatenate secret_password = 'jhk7GSH8ds' p...
Examples
登入紀錄報告 Custom Class Dictionary/Set/List Data Set Methods def get_event_date(event): re...
Cybersecurity Certificate
Google Cybersecurity Certificates (GCC) Google 資安證書 啟動台灣資安人才培育計畫 資訊安全人才教育 - Google 安全中心 Goo...
Dictionary 字典
不像序列是由一個範圍內的數字當作索引,dictionary 是由鍵 (key) 來當索引,鍵可以是任何不可變的類型;字串和數字都可以當作鍵。Tuple 也可以當作鍵,如果他們只含有字串、數字或 ...
Vim 高級技巧
常用技巧 命令執行(注意大小寫不同) 使用說明 使用技巧 i 以插入字元方式進入編輯模式 與 a 同為進入編輯模式,兩者差別只有游標的起始位置不同 ...
vimrc
vimrc simple " " Fixed for Python virtualenv as the follow error. " ModuleNotFoundError: No mo...
Pentesters
Search Engines
Installation
Docker Compose Updated: 新版 Docker Compose 已經整合進 Docker 核心程式 安裝方式 sudo apt-get install docker-c...
Cheat Sheets
Cybersecurity Acronyms Common types of password attacks Designing Secure Systems
RAG
檢索增強生成 - Retrieval Augmented Generation RAG 主要用來解決大型語言模型(LLM)實際應用時的兩大侷限:幻覺/錯覺(hallucination)與資料時...
Examples
maxmind_db_ip_geolocator.py Original Post: Python Basics for Hackers, Part 4: How to Find the Ex...
Subscription Usage
Viewing subscription NOTE: 這裡的版本號是指已安裝在系統的版本。 # subscription-manager list --installed +---...