Hi there 👋

Got you!

How to convert a video to live photo on MacOS?

How to convert a video to live photo on MacOS? Live photo What? 这是一个把视频转换为live photo的工具。 前提 MacOS 系统 ffmpeg 工具 Python 3.8+ 首先 安装下 pypi 包 pip install -U video2live 然后运行命令 video2live ./inifity.mp4 output 转换后的结果会放到指定目录下,同时默认会导入到照片中合成 Why? 最近很 多社交平台都开始支持live图格式,而且之前看别人把非常炫酷的延时视频制作为live图,感觉非常有趣,所以就想着写个工具来玩玩。 How? 使用 moviepy 提取视频的第一帧图片作为封面 使用 ffmpeg 把视频转为mov格式 最终用 makelive 为 mov 和 jpeg 添加 metadata 信息,导出为同名但不同格式的文件。 最后使用 apple 脚本,把文件导入到照片中合成。 项目地址 欢迎 star 和 fork video2live

June 1, 2025 · 1 min · 63 words · SherlockOuO

Prompts

1. 元-反-空 role:你擅长使用「元-反-空」高阶逻辑: 元:二阶操作,作者观点背后的观点是什么? 反:它的反面证据是什么 空:跳出系统,其他领域是如何看待的 instruction(written in linux PIPE):用户输入|作者观点与子观点|拆解明托金字塔论证结构|寻找元观点|反面证据、反面观点|空:跳出系统|<元反空洞察:元反空各提炼一句> <元反空洞察>|提炼三个值得注意的观点|风格化(Paul Graham) rule: PIPE intermediate results in one <thinking></thinking>. Output final result with no comment(using Chinese punctuation marks, no emoji or ~).

December 5, 2024 · 1 min · 32 words · SherlockOuO

Eat Some LazyVim Snacks

How to install color scripts and hub? Hub can be install by using brew On MacOS you can install hub by using brew: brew install hub Color scripts can be installed by shell-color-scripts git clone https://gitlab.com/dwt1/shell-color-scripts.git cd shell-color-scripts sudo make install # optional for Removal sudo make uninstall # optional for zsh completion sudo cp completions/_colorscript /usr/share/zsh/site-functions # optional for fish shell completion sudo cp completions/colorscript.fish /usr/share/fish/vendor_completions.d

November 20, 2024 · 1 min · 67 words · SherlockOuO

Vim 相关技巧| Vim Tricks

Vim 相关技巧 收集一些常用的 Vim 相关技巧,包括插件、快捷键、命令等。(using lazyvim) Nice Motion f{char}: 移动到下一个 {char} 出现的位置, 类似于 t{char} F{char}: 移动到上一个 {char} 出现的位置, 类似于 T{char} ; 和 ,: 重复上一次的 f, F, t, T 命令 Plugins lualine: vscode like status line gitblame: show git blame history Keymaps 1. todo-comments keymaps |Key|Description|Mode| |st | Todo |n| |sT (not working)| Todo/Fix/Fixme |n| |xt (not working)| Todo (Trouble) |n| |xT | Todo/Fix/Fixme (Trouble) |n| |[t | Previous Todo Comment |n| |]t | Next Todo Comment |n| ...

November 15, 2024 · 1 min · 133 words · SherlockOuO

What is map reduce?

What is Map Reduce? Map Reduce is a programming model and an associated implementation for processing and generating large datasets. It is a distributed computing framework that allows processing of large datasets in a distributed manner across multiple nodes. It is used for processing large datasets that cannot fit into a single machine’s memory. 简单来说,MapReduce是一种编程模型和一种关联的实现,用于处理和生成大型数据集。它是一个分布式计算框架,允许在多个节点上以分布式的方式处理大型数据集。它用于处理无法容纳在单个机器内存中的大型数据集。

November 13, 2024 · 1 min · 55 words · SherlockOuO