R's Workshop

Test SSH Connection without Login

為了簡化每到新 build code server 上都要把所有的 gerrit server 都先 ssh access 過一次的繁瑣步驟, 最好的方式就是寫一個腳本去做這件事. Read more

Inspect Labels of Singularity Images

紀錄如何看 Singularity image labels. Read more

dos2unix: Change Line Ending Format

Linux 用久了, 看到純文字檔案的 line ending 是用 ‘\r\n’, 就覺得很礙眼. 如果要一次改整個資料夾的純文字檔, 用 dos2unix Read more

Install Pipewire in Ubuntu 20.04

把裝有 Ubuntu 20.04筆電的 wi-fi 網卡升級到 AX210 後, 藍芽耳機切換到 A2DP codec 後就沒有聲音了 QQ. Google 了一下可能是 Ubuntu default 使用的 Pulseaudio 已經無法支援 AX210 的 BT driver. 只好參考網路的建議, 把 {ulseaudio 改成 Pipewire 試試看. Read more

Backtrace Function Call in GCC

在 debug kernel 的時候, 要追 function call stack 最簡單的方式就是呼叫 dump_stack(). 在 user space 寫 C function 時, gcc 也提供了一個類似的 API. Read more