首先,先進入Git repo,並編輯.gitmodules檔案
[submodule "mygitsubmodule"]
path = mygitsubmodule
url = https://github.com/dreamtails/mygitsubmodule
branch = feature/dreamtails

dreamtails 發表在 痞客邦 留言(0) 人氣()

find
-mtime : 搜尋檔案的修改時間(天)
-mmin : 搜尋檔案的修改時間(分鐘)
-ctime : 搜尋檔案的建立時間(天)
-cmin : 搜尋檔案的建立時間(分鐘)
-atime : 搜尋檔案的最後開啟時間(天)
-amin : 搜尋檔案的最後開啟時間(分鐘)
-size : 搜尋檔案的大小
-name : 搜尋檔案名稱(有分大小寫)
-iname : 搜尋檔案名稱(不分大小寫)
-type f : 只搜尋“檔案”
-type d : 只搜尋“目錄”
-exec <cmd> {} \; : 把搜尋結果導向指令來執行
-user : 搜尋特定使用者的檔案或目錄
-o : 邏輯運算為「或」的意思
-print : 將結果印出於螢幕

dreamtails 發表在 痞客邦 留言(0) 人氣()

How to Use cURL to Trigger Jen
Use cURL to trigger Jenkins job.
1. Enable “Trigger builds remotely”, and enter the “Authentication Token”.

dreamtails 發表在 痞客邦 留言(0) 人氣()

1. Install AnyDesk on Ubuntu 22.04.
2. Configure login password. This password is “P@ssw0rd”.

dreamtails 發表在 痞客邦 留言(0) 人氣()

local run before deploy K8s
> kubectl apply --dry-run=server -k path/to/kustomization(folder)
> kubectl apply --dry-run=client -k path/to/kustomization(folder)

dreamtails 發表在 痞客邦 留言(0) 人氣()

Fcitx5 for Android
什麼是Fcitx(中文名稱為「小企鵝輸入法」),可以參考https://zh.wikipedia.org/zh-tw/Fcitx

dreamtails 發表在 痞客邦 留言(0) 人氣()

Login to ArgoCD:










> argocd login argocd.dreamtails.com --sso





dreamtails 發表在 痞客邦 留言(0) 人氣()

# kubectl run -i --rm --tty busybox --image=busybox --restart=Never -- sh

dreamtails 發表在 痞客邦 留言(0) 人氣()

# vi /etc/samba/smb.conf
====================
[Global]
min protocol = SMB2
ea support = yes
vfs objects = catia fruit streams_xattr
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
......
====================

dreamtails 發表在 痞客邦 留言(0) 人氣()

# vi /etc/samba/smb.conf
==================
...
# Disable Port-139(NetBIOS-ssn)
disable netbios = yes
smb ports = 445
...
==================

dreamtails 發表在 痞客邦 留言(0) 人氣()

# time rsync -avt --partial --delete --progress /mnt/Source/folder /Backup/Destination/
-t: 保留修改時間
--partial: 保留部分傳輸的文件
--delete: 刪除接收端上的"發送端不存在的文件"
--progress: 顯示傳輸進度

dreamtails 發表在 痞客邦 留言(0) 人氣()

# Step 1: Need root permission.
sudo bash
# Step 2: Update your repositories
apt update -y
# Step 3: Install pip for Python 3
apt install python3-pip
# Step 4: Use pip to install VirtualEnv
pip3 install virtualenv
# Step 5: Create a Virtual Environment of Python 3, the virtual env name is "myEnv".
virtualenv -p python3 myEnv
# Step 6: Activate a new Python 3 virtual env.
# or "source env3/bin/activate"
. myEnv/bin/activate
# Step 7-1: You can make sure you are now working with Python 3.
python --version
# Step 7-2: You can make sure the Python 3's Path.
which python
# Step 8: Leave the virtual env.
deactivate

dreamtails 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。