OpenVPN 架設 OpenVPN 架設 使用 docker 架設 OpenVPN 環境Server Debian 10 Docker 20.10.8 Client Windows 10 OpenVPN 2.5.1 安裝安裝 docker1curl -sSL https://get.docker.com | sh 安裝 docker-compose1apt install docker-compose -y 2023-12-30 #Network #OpenVPN #Debian
PKP-OJS docker install 使用 docker-compose 安裝 PKP-OJS 系統 本文參考自 PKP-OJS 官方github文件 需求 安裝 設定 使用 需求 docker docker-compose git 先把上面三個東西裝好,再來就可以開始安裝 PKP-OJS 了。 安裝首先,先把 PKP-OJS 的 docker-compose.yml 檔案和.env.TEMPLATE 檔案下載下來。 1234 2023-11-08 #Docker #PKP-OJS #linux
EC2-website AWS EC2 和 Docker 網站部署筆記這篇筆記將指導您如何在 AWS EC2 上固定 IP 地址,以及如何將您的網頁打包成 Docker 鏡像並在 EC2 上部署。 固定 EC2 IP 地址 登入 AWS 管理控制台 選擇「EC2」服務 在左側導航欄,點擊「彈性 IP」 點擊「分配新地址」並完成操作 選擇新建的彈性 IP,點擊「操作」->「關聯 IP 地址」 選擇要關聯的 EC2 實 2023-10-12 #AWS #EC2 #Docker #Cloud
Leetcode-Find-the-Pivot-Integer Leetcode 2485. Find the Pivot Integer 解題心得 題目: 2485. Find the Pivot Integer 題目描述 給定一個正整數 n,找出一個整數 x,使得 1 到 x 的總和等於 x 到 n 的總和。 如果找不到這樣的 x,則回傳 -1。 解題思路這題可以有三種解法: 暴力法 分半法 數學法 暴力法暴力法就是從 1 開始,一個一個試,直到找 2023-09-20 #Leetcode #Algorithm #Python
Leetcode-The-K-Weakest-Rows-in-a-Matrix Leetcode 1337. The K Weakest Rows in a Matrix 解題心得 題目: 1337. The K Weakest Rows in a Matrix 題目描述在這道題目中,我們被給予一個 m * n 的二維矩陣 mat,其中 mat[i][j] 代表第 i 行士兵在第 j 列的狀態(1 為存在,0 為不存在),且每行的士兵狀態是非遞增的。我們需要找出矩陣中前 k 2023-09-19 #Leetcode #Algorithm #Python
Leetcode-Remove-Duplicates-from-Sorted-Array Leetcode 26. Remove Duplicates from Sorted Array 解題心得 題目: 26. Remove Duplicates from Sorted Array 題目描述給定一組已排序的整數陣列 nums,請移除陣列中所有重複的元素,並且回傳移除後的陣列長度。同時不可以使用額外的陣列空間,必須在原地操作陣列,需要考慮到陣列的順序。 大概像這樣: 123Given 2023-09-18 #Leetcode #Algorithm #Python
Leetcode-Remove_Element Leetcode 27. Remove Element 解題心得 題目: 27. Remove Element 題目描述給定一組整數陣列 nums 與一個整數 val,請移除陣列中所有等於 val 的元素,並且回傳移除後的陣列長度。 但是,不可以使用額外的陣列空間,必須在原地操作陣列,可以不考慮順序。 大概像這樣: 123Given nums = [3,2,2,3], val = 3,Your 2023-09-15 #Leetcode #Algorithm #Python
Leetcode-threesum Leetcode 15. 3Sum 解題心得 題目: 15. 3Sum 題目描述給定一組整數陣列 nums,請找出所有不重複的三元組合,使得三元組合的總和為 0。 大概像這樣: 1234567Given array nums = [-1, 0, 1, 2, -1, -4],Answer:[ [-1, 0, 1], [-1, -1, 2]] 解題思路可以用三個指針,然後分別去指向陣列中的每一 2023-09-14 #Leetcode #Algorithm #Python
Hello World Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick 2023-08-01
TEST This is a test post. Index a b c Code Test1print("Hello World!") Code Test21234567#include <iostream>using namespace std;int main() { cout << "Hello World!" & 2023-08-01 #test