File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 " ms-python.python" ,
44 " davidanson.vscode-markdownlint" ,
55 " ms-vscode.makefile-tools" ,
6- " charliermarsh.ruff" // Ruff VS-Code extension
6+ " charliermarsh.ruff"
77 ]
88}
Original file line number Diff line number Diff line change 11{
22 "python.defaultInterpreterPath" : " ${workspaceFolder}/.venv/bin/python" ,
33 "python.envFile" : " ${workspaceFolder}/.env" ,
4+ "flake8.enabled" : false ,
45 "ruff.lint.enable" : true ,
56 "ruff.organizeImports" : true ,
67 "ruff.fixAll" : true ,
8+ "ruff.lineLength" : 120 ,
79 "python.testing.pytestEnabled" : true ,
810 "python.testing.unittestEnabled" : false ,
911 "python.analysis.extraPaths" : [" ${workspaceFolder}/src" ],
1012 "[python]" : {
11- "editor.defaultFormatter" : " charliermarsh.ruff"
13+ "editor.defaultFormatter" : " charliermarsh.ruff" ,
14+ "editor.formatOnSave" : true ,
15+ "editor.formatOnPaste" : false
1216 }
1317}
Original file line number Diff line number Diff line change 11# 🧊 blkcache
22
3- Userspace transparent block device cache
3+ Userspace transparent block device cache.
44
5- ## Deps
5+ ## ⬇️ Deps
66
77```
88sudo apt install libndb-bin nbdkit-plugin-python nbdfuse fuse3
99```
1010
11- ## Usage
11+ ## ℹ️ Usage
1212
1313```
1414uvx blkcache /dev/sr0 file.iso
@@ -18,10 +18,24 @@ Then point tools at `file.iso` instead of `/dev/sr0`.
1818
1919## Why?
2020
21- Copying some CDs and needed a way to do ` 7z /dev/sr0 ` to dump the filesystem,
22- and then ` ddrescue /dev/sr0 ` to get the image if possible. This means it
23- doesn't have to read the disk twice
21+ Copying some CDs and needed a way to do mount in FUSE, dump the filesystem, and
22+ then ` ddrescue /dev/sr0 ` to get the image if possible. This means it doesn't
23+ read the disk twice, even if you have a ton of drives attached
2424
2525## How?
2626
27- mind your own fucking business
27+ It uses ` nbdkit ` to create a Network Block Storage device in Python, mounts it
28+ using ` fuse ` , then creates a mmapped disk cache of sectors as they're read.
29+
30+ ## 🔗 Links
31+
32+ * [ 🏠 home] ( https://bitplane.net/dev/python/blkcache )
33+ * [ 🐱 github] ( https://github.com/bitplane/blkcache )
34+ * [ 🐍 pypi] ( https://pypi.org/project/blkcache )
35+ * [ 📖 pydoc] ( https://bitplane.net/dev/python/blkcache/pydoc )
36+
37+ ## 🌍 Related
38+
39+ * [ 🪦 rip] ( https://github.com/bitplane/rip )
40+ * [ 🕷️ scrapers] ( https://bitplane.net/python/scrapers )
41+
You can’t perform that action at this time.
0 commit comments