Xiao Sense Accelerometer Examples and Low Power

Hi, I would like to replicate discontinued WakeOnShake SparkFun Wake on Shake - SEN-11447 - SparkFun Electronics
circuit functionality with Xiao Ble Sense and a Mosfet.

Can anybody help me with the code?
Regards,