VSCode - Uninstall VSCode
摘要:Linux To uninstall VS Code on Linux, you should use your package manager's uninstall or remove option. The exact command line will differ depending on
阅读全文
Go - grinning face
摘要:fmt.Println('😀', string('😀')) 128512 😀 For a full list of Emoticons, see https://www.compart.com/en/unicode/block/U+1F600 .
阅读全文
Go - Predeclared identifiers, Keywords, Operators and punctuation
摘要:Predeclared identifiers The following identifiers are implicitly declared in the universe block: Types: any bool byte comparable complex64 complex128
阅读全文
Go - What's the point of one-way channels in Go?
摘要:A channel can be made read-only to whoever receives it, while the sender still has a two-way channel to which they can write. For example: func F() <-
阅读全文
Shell - sleep
摘要:zzh@ZZHPC:~
sleep120Z[1]+Stoppedsleep120zzh@ZZHPC: bg %1 [1]+ sleep 120 & zzh@ZZHPC:~$ [1]+ Done sleep 120 10:01开始sleep,执行完后立刻执行Ctrl + Z中止。
阅读全文
Linux - Terminal shortcuts
摘要:Ctrl + ALt + T : Open a new terminal Ctrl + L: Clear outputs (not really clear, just add a screen of blank lines) Ctrl + D: Exit current shell Ctrl +
阅读全文
Ubuntu - update and upgrade packages
摘要:sudo apt update sudo apt list --upgradable sudo apt full-upgrade zzh@ZZHPC:~$ sudo apt list --upgradable [sudo] password for zzh: Listing... Done pyth
阅读全文
Git - git tag
摘要:zzh@ZZHPC:/zdata/Github/zzhrepo1
gitadd−Azzh@ZZHPC:/zdata/Github/zzhrepo1 git commit -m "update function CubeVolume()" [main 13f27a8] update func
阅读全文
grep - useful options
摘要:The “ -c ” option counts the number of occurrences of a string: even though ABC4.sh has no matches, it still counts them and returns zero: grep –c abc
阅读全文
grep - Meta Characters and Character Classes
摘要:Meta Characters and the grep Command The fundamental building blocks are the regular expressions that match a single character. Most characters, inclu
阅读全文
Github - Clone a Github repository using Github CLI
摘要:Step 1: Install Github CLI following the instructions provided on page https://github.com/cli/cli#installation . Step 2: Run 'gh auth login' to login.
阅读全文