Skip to content

Instantly share code, notes, and snippets.

View xream's full-sized avatar

xream xream

View GitHub Profile
@xream
xream / readme.md
Created October 12, 2023 16:35 — forked from firexcy/readme.md
DIY a Rewind.ai

This Gist provides a solution to periodically capture screenshots of your Mac, and create therefrom a searchable PDF archive so that you can always get an answer to the “what, when, and where” questions about your usages.

To use these scripts:

  1. Download the shell script rewind, then:
    1. put it under ~/bin (or other fixed path you prefer);
    2. execute
@xream
xream / sing-box-sub-store-template_tproxy.json
Created February 6, 2025 11:21 — forked from CHIZI-0618/sing-box-sub-store-template_tproxy.json
sing-box v1.11.1 Sub-Store-Template TProxy
{
"log": {
"disabled": false,
"level": "info",
"output": "box.log",
"timestamp": true
},
"experimental": {
"cache_file": {
"enabled": true,

Install dependencies:

brew install libomp vulkan-headers glslang molten-vk shaderc vulkan-loader

Now Molten-VK is already above v1.4 -> therefore no need to get older version and manually apply PR2434.

git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build -DLLAMA_CURL=1 -DGGML_METAL=OFF -DGGML_VULKAN=ON