Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
barseghyanartur / rst_to_md.sh
Created January 20, 2026 21:53 — forked from zaiste/rst_to_md.sh
Convert RST to Markdown using Pandoc
FILES=*.rst
for f in $FILES
do
filename="${f%.*}"
echo "Converting $f to $filename.md"
`pandoc $f -f rst -t markdown -o $filename.md`
done
import functools
import typing
# Use a conditional expression directly.
# This evaluates to the function 'cache' itself, which the @ operator then calls.
@ (functools.cache if not typing.TYPE_CHECKING else lambda f: f)
def a():
print("Aaaa")
a() # Prints "Aaaa"
"""
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "clientele",
# "pydantic",
# "ipython",
# ]
# ///
@barseghyanartur
barseghyanartur / vs_code_tweaks.rst
Last active January 13, 2026 00:38
VS Code for Pycharm devs - look&feel tweaks
@barseghyanartur
barseghyanartur / links.rst
Last active January 11, 2026 21:34
CudaText installation and config for SublimeText users
@barseghyanartur
barseghyanartur / hide_py_cover_files.rst
Last active January 6, 2026 16:11
[Blog] Hide ``*.py,cover`` files from IDE

Hide *.py,cover files from IDE

VSCode

Settings -> Text Editor -> Files -> Add Pattern: Add **/*.py,cover

PyCharm

@barseghyanartur
barseghyanartur / install_chromium_on_macos.rst
Last active January 6, 2026 16:12
[Blog] Install Chromium on macOS

Install Chromium on macOS

Install

brew install chromium
@barseghyanartur
barseghyanartur / quantisation_reference_guide.rst
Last active October 23, 2025 22:06
Quantisation Reference Guide

Quantization Reference Guide (GGUF / llama.cpp)

Note

Comprehensive overview of quantization schemes for llama.cpp / GGUF models, used in tools such as Draw Things, Ollama, LM Studio, and

@barseghyanartur
barseghyanartur / run_open_webui_at_start_on_macos.rst
Last active October 23, 2025 12:29
Run open-webui at start on macOS
cat > ~/Library/LaunchAgents/com.user.openwebui.plist <<'PLIST'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
  <key>Label</key><string>com.user.openwebui</string>
  <key>ProgramArguments</key><array>
    <string>/Users/me/.local/share/uv/tools/open-webui/bin/open-webui</string>