lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55.5M 1 loop /snap/core18/2074 loop1 7:1 0 25M 1 loop /snap/amazon-ssm-agent/4046 loop2 7:2 0 99.4M 1 loop /snap/core/11420 loop3 7:3 0 55.5M ...
Project→Options→Configuration Properties→C/C++→Language: C++ Language Standard選擇ISO C++ 17 Standard (/std:c++17) #include <filesystem> path folder_path = "..." for(const auto& entry : direct ...
關於記憶體配置: 使用JNI呼叫由其他Native Language撰寫的Applications/Libraries時 仍要遵循該Native Language的編程規則及記憶體管理模式 例:呼叫C所寫成的Libraries時呼叫了melloc()的話, 使用完畢後亦應呼叫free()加以解放
mkdir tmp_del && sudo rsync --delete-before -d --progress --stats tmp_del/ {欲刪除之資料夾路徑} && sudo rmdir tmp_del && sudo rmdir {欲刪除之資料夾路徑}
安裝Samba sudo apt install samba 查看Samba是否運行及其運行中的連接埠 sudo netstat -tulnp | grep -e '[sn]mbd' 如果沒有 netstat 指令: sudo apt update sudo apt install net-tools 在/etc/samba/smb.conf加上 (原本就有[homes],但被註解起來) [hom ...
Source: SudachiPy $ pip install -e git+https://github.com/WorksApplications/SudachiPy@develop#egg=SudachiPy (git://をhttps://に変更した) https://github.com/WorksApplications/SudachiDictから sudachi-dictionary ...
$ sudo apt install python3.7 (從官方網站下載後安裝會造成與Samba衝突) 修改~/.bashrc文件:vim ~/.bashrc alias python=python3.7 alias pip="python3.7 -m pip" 重載~/.bashrc文件:source ~/.bashrc 檢查python及pip版本: – python(輸入exi ...
Ctrl+Shift+X 開啟 Extensions(延伸模組) 安裝 Remote Development (by Microsoft) 跟循 https://code.visualstudio.com/docs/remote/troubleshooting 的以下步驟: Quick start: SSH key Improving your security with a dedicated ...
#!/bin/bash checkFolder(){ for name in $1/* do if test -f $name then if awk '/\r$/{exit 0;} 1{exit 1;}' $name then dos2unix -o $name fi elif test -d $name then # echo $name checkFolder $name fi done } ...
"tab_size": 4, "draw_white_space": "all", "translate_tabs_to_spaces": true