Skip to content

Instantly share code, notes, and snippets.

View capyBearista's full-sized avatar
🟣
Focusing...

Arjun Pramanik capyBearista

🟣
Focusing...
View GitHub Profile
Two pointers: one input, opposite ends
```python3
def fn(arr):
left = ans = 0
right = len(arr) - 1
while left < right:
# do some logic here with left and right
if CONDITION:
@capyBearista
capyBearista / custom.css
Last active April 2, 2026 06:20
Custom config for the tablissng extension
/* Import JetBrains Mono, Space Grotesk, Outfit, and Zilla Slab */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&family=Zilla+Slab:ital,wght@0,400;0,500;0,700;1,400&display=swap');
/* Import custom GitButler font */
@font-face {
font-family: 'But-Head';
src: url('https://gitbutler.com/_app/immutable/assets/But-Head-Regular.bFy4jtSr.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@capyBearista
capyBearista / docker-llamacpp.sh
Last active May 3, 2026 23:53
llama.cpp Docker container to serve embedding model + qdrant Docker container to store vector databases
docker run -d \
--name llama-embedding \
--restart unless-stopped \
--gpus all \
-v ~/.models:/models \
-p 8080:8080 \
ghcr.io/ggml-org/llama.cpp:server-cuda \
-m /models/Qwen3-Embedding-4B-Q8_0.gguf \
--embedding \
--pooling last \
@capyBearista
capyBearista / file-compression.sh
Last active January 4, 2026 18:26
Just a simple command to compress files/directories fast and balanced. Uses `zstd`.
# compressing one item
tar -I 'zstd -T0' -cf ARCHIVE_NAME.tar.zst TARGET_DIR/
# compressing multiple items
tar -I 'zstd -T0' -cf ARCHIVE_NAME.tar.zst TARGET_DIR_1/ TARGET_ITEM_1 TARGET_DIR_2/