Melt's Blog

An Emacser


  • Home

  • Archives

  • Tags

OPDS and Deploy OPDS on Calibre

Posted on 2025-06-07 13:31 | Post modified 2025-06-07 14:33

Table of Contents

  • 1. What:OPDS
  • 2. Why:OPDS
  • 3. Why: deploy OPDS
  • 4. How: deploy OPDS on Calibre
  • 5. Visit OPDS service
  • 6. Visit OPDS service on Emacs

1. What:OPDS

OPDS stands for “Open Publication Distribution System”. OPDS is an acronym that stands for Open Publication Distribution System. It enables a streamlined way of distributing and accessing digital publications, including eBooks, magazines, and audiobooks. By utilizing OPDS, users can browse through catalogs of available content and download items directly to their devices. This protocol enhances the user experience by providing a structured format for accessing various publications.

2. Why:OPDS

In the digital age, accessing and managing eBooks has become an essential skill for readers and content creators alike.

3. Why: deploy OPDS

  1. Effortless Content Management
  2. Streamlined Sharing
  3. User-Friendly Interface
  4. Cross-Platform Access
  5. Enhanced Discoverability

4. How: deploy OPDS on Calibre

Read more »

Update Config Files with Dotdrop

Posted on 2025-06-02 12:41 | Post modified 2025-06-07 14:33

Table of Contents

  • 1. Why
  • 2. Dotdrop
  • 3. 安装
  • 4. Dotdrop 使用
  • 5. 使用 git 仓库管理 Dotdrop 文件

1. Why

为什么要使用 dotdrop ,我的理解是「复现」,也就是重现。这个概念出现在很多场景:

  1. 当可以重现某个 bug 的时候,通常也找到了解决问题的方法,当然这个重现隐含的是更低成本的重现;
  2. 成熟产品的稳定性,也就是提升设计内可控场景的重现(至 100%)而尽量降低不可预见和不可清晰业务的重现。

重现 0% 和重现 100% 是我们追求的目标:科学研究的论文的准确度,也依赖于重现;对于任何事物的精准描述,依托于更加精准的场景。也许未来,我们会使用更好的工具来实现更快更精准的「重现」,dotdrop 在中间可以充当一个过渡的桥梁。

2. Dotdrop

Dotdrop1 是什么? As mainpage of Dotdrop says: “Save your dotfiles once, deploy them everywhere”. 其中隐含的就是同步我们的配置。

3. 安装

可以使用 pip 来安装 dotdrop 。

4. Dotdrop 使用

例如对于本地的 ~/.gitconfig 文件,dotdrop 导入后 key 为 f_gitconfig 。一般常用操作如下:

  1. 导入并保存文件到 dotdrop 中 dotdrop import ~/.gitconfig
  2. 找到目前 dotdrop 中保存文件和本地有不同内容的文件 dotdrop compare -L
  3. 比较特定文件 dotdrop 和本地使用的不同内容 dotdrop compare -C ~/.gitconfig
  4. 更新保存本地单个文件到 dotdrop 中 dotdrop update -f -k f_gitconfig
  5. 更新保存本地所有文件到 dotdrop 中 dotdrop update -f
  6. 安装或更新 dotdrop 保存文件到本地 dotdrop install f_gitconfig
  7. 安装或更新 dotdrop 所有文件到本地 dotdrop install -f

5. 使用 git 仓库管理 Dotdrop 文件

最好的方式还是使用 git 来对集中的 Dotdrop 文件进行版本管理,可以更加精细的了解到什么时候什么理由做的更改,在遇到问题是可以更好的回溯。

Footnotes:

Read more »

Set Syncthing Excluding A Repo's git Directory

Posted on 2025-05-31 21:58 | Post modified 2025-06-07 14:31

使用 Syncthing 时在不同主机端间同步文件,如果在同步完成前就对端操作,会生成临时的冲突文件 .sync-conflict* 。

Read more »

Practice Ediff in Emacs

Posted on 2025-05-18 09:46 | Post modified 2025-06-07 14:30

Table of Contents

  • 1. Working with Aidermacs Code Actions

1. Working with Aidermacs Code Actions

When using Aidermacs1 code actions, the system generates AI-powered modifications to your source code after responding to your prompt. These changes are displayed as a patch in Emacs’ built-in ediff format2.

Read more »

Use MPC in Emacs

Posted on 2025-05-17 16:44 | Post modified 2025-06-07 14:30

Table of Contents

  • 1. MPD
  • 2. MPDel
Read more »

Share permission between Apache/httpd and common user

Posted on 2025-05-11 22:28 | Post modified 2025-06-07 14:30

Table of Contents

  • 1. 同步
  • 2. 加密
  • 3. chattr
Read more »

Minds and Artists

Posted on 2025-05-05 00:00 | Post modified 2025-05-31 22:08 | In Life

有三句话,一直以来印象比较深:

Great minds discuss ideas. Average minds discuss events. Small minds discuss people.

Read more »

在 Emacs 中利用正则表达式处理换行

Posted on 2025-04-15 00:00 | Post modified

将 Emacs 的文本中的两个换行替换为一行,用于将某些文本中具有空行的内容全都去掉,临时处理一些文本便于进一步处理的情况。步骤如下:

Read more »

Philosophy in Haskell

Posted on 2025-02-17 00:00 | Post modified

Table of Contents

  • 1. Human-centric

1. Human-centric

Using a value before defining it

Read more »

Persist and reload prompt in gptel-mode

Posted on 2025-01-04 00:00 | Post modified

Table of Contents

  • 1. 生成 prompt 并保存
  • 2. 加载已保存的 prompt 并恢复对话
  • 3. 流程参考

1. 生成 prompt 并保存

  1. M-x gptel ,选择默认的后端 *Claude* ;
  2. M-x gptel-menu , set system message for this buffer , Pick crowdsourced prompt 选择 prompt generator ;
  3. Act as an clojure developer who uses Emacs. C-c RET ;
  4. M-x gptel-menu , set system message for this buffer, 粘贴刚才获得的结果;
  5. C-x C-w 保存为文件,下次可以继续打开并使用之前的语境。

2. 加载已保存的 prompt 并恢复对话

可以参考之前的博客

3. 流程参考

总体流程

Read more »
1 2 … 8
Melt

Melt

Questions create realities.

72 posts
5 categories
20 tags
RSS
GitHub
© 2021 - 2025 Melt
Powered by Jekyll
Theme - NexT.Muse