摘要:
A stack is a linear data structure that stores items in a last-in-first-out LIFO or first-in-last-out FILO manner, In stack, a new element is added at 阅读全文
摘要:
def _convert_mode(mode: int): if not 0 <= mode <= 0o777: raise RuntimeError res = '' for v in range(0, 9): if mode >> v & 1: match v % 3: case 0: res 阅读全文
摘要:
#!/usr/bin/env bash # delete all branches without upstream while read branch; do upstream=$(git rev-parse --abbrev-ref $branch@{upstream} 2>/dev/null) 阅读全文
摘要:
# swap two variables without intermediate variable, but intermediate variable is applicable to various situations(even with complex objects)# the two 阅读全文
摘要:
cd在suse上仅是shell builtin, sudo仅仅执行的executable(外部命令), 路径由 /etc/sudoers 的Defaults secure_path = /path1:/path2 指定 There are two ways that it "won't work", 阅读全文
摘要:
https://www.baeldung.com/linux/locale-environment-variables To determine the current character mapping locale charmap f RHEL: /etc/locale.conf localec 阅读全文