How to mount and read EXT4 on Windows
Steps
1. Run the windows powershell as administrator
2. Get details about the drives and partitions
wmic diskdrive list brief
3. Mount the drive or partition by the bellow command
wsl --mount PATH_FROM_STEP2
Example: wsl –mount \\.\PHYSICALDRIVE0 –partition 1
If you haven’t install the WSL, windows will install it for you automatically. If not, try wsl --install
. After the WSL is installed, you will need to install a linux system by your own.
wsl --install -d ubuntu
4. Open Windows File Explorer and read the data in the disk
Path: “This PC\Linux\Ubuntu\mnt\wsl\PHYSICALDRIVE0p0”
5. Unmout if needed
wsl –unmount PATH_FROM_STEP2
or just shut it down
wsl.exe --shutdown
Reference
Some useful git commands
Commands
list all branches
git branch -a
get the difference between two branches, including a local branch and a remote branch
git diff <mainbranch_path> <remotebranch_path>
用Python Django建立自己的blog - 01 安裝篇
Raspberry Pi簡介與系列產品比較
購買方針
需完整功能: Pi 5 > Pi 4 B
需作業系統但只做簡單的事情: Zero系列
做簡單的IoT不需作業系統: Pico系列 (建議選W版本, 新手請選WH)
需網路/藍芽: W版本
需針腳已焊好的: H版本
Some useful tips for Heroku
Upgrading stack of an app
Use the stack:set command via Heroku CLI:
heroku stack:set heroku-22 -a <app name>
Then rebuild your app to take effect of the change. You can create an empty commit to trigger a new build:
git commit --allow-empty -m "Upgrading to heroku-22"
git push heroku master
Raspberry Pi commands
Todoist Telegram bot
In this article, we will build an telegram bot for reminders from todoist.
Why do I need a telegram bot for todoist?
The answer is obvious – the free reminder function (as no reminder for a free todoist account).
Steps:
Install todoist api Python Client
pip install todoist-api-python
Sayings - 名言
Sayings - 名言
read more使用TTL RS232(PL2303HX)上傳程式碼至ESP8266 NodeMCU
subscribe via RSS