Skip to content

Instantly share code, notes, and snippets.

View csskysea's full-sized avatar
😀
I may be slow to respond.

Victor Chan csskysea

😀
I may be slow to respond.
View GitHub Profile
@csskysea
csskysea / wsl2_enable_systemd
Created January 24, 2024 14:21
enable systemd in win11 wsl2 environment
Please refer to https://gist.github.com/djfdyuruiry/6720faa3f9fc59bfdf6284ee1f41f950
@csskysea
csskysea / sed-substitute.sh
Created October 26, 2022 03:45
使用sed 结合find 替换某个目录下所有包含某个字符串的行
#example
find ./k8s -type f -exec sed -i 's/.*ttlSecondsAfterFinished.*/ ttlSecondsAfterFinished: {{ job_ttlsecs_afterfinished | default('3600') }}/g' {} +
@csskysea
csskysea / multiline-2-singleline.sh
Created June 14, 2022 09:10
convert rsa key file content from multile lines to one lines end with '\n'
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' xxx.txt