Skip to content

Instantly share code, notes, and snippets.

View yakimka's full-sized avatar
💭
import __hello__

yakimka

💭
import __hello__
View GitHub Profile
@yakimka
yakimka / aider-convention-scraper
Created March 30, 2025 17:26 — forked from chr15m/aider-convention-scraper
Convert documentation URLs to Markdown "convention" files to be used by aider and other LLMs
#!/bin/sh
# Scrapes documentation from a URL and converts it to Markdown suitable for aider convention files
# to provide context to the LLM.
if [ $# -eq 0 ]; then
echo "Usage: $(basename "$0") <URL> [URL...]"
echo
echo "Generate aider 'convention' Markdown context from documentation URLs."
echo "suitable for providing LLM context about a project's conventions and style."
@yakimka
yakimka / My Clippings.txt
Last active August 31, 2024 19:35
Multilingual kindle clippings example
Hexagonal Architecture Explained (Cockburn, Alistair)
- Deine Markierung auf Seite 112 | bei Position 1300-1301 | Hinzugefügt am Donnerstag, 22. August 2024 18:10:53
My highlight in Deutsch
==========
Hexagonal Architecture Explained (Cockburn, Alistair)
- Deine Notiz auf Seite 112 | bei Position 1300 | Hinzugefügt am Donnerstag, 22. August 2024 18:10:53
My note in Deutsch
==========
@yakimka
yakimka / 1_day05_part2.py311.py
Last active February 11, 2025 20:09
Python versions evolution
"""
This gist contains the solution for
Day 5 of Advent of Code 2023 (https://adventofcode.com/2023/day/5).
I first wrote it on version 3.11 and then ported it
to earlier versions to see how the language evolved.
Below is the listing for version 3.11
"""
from __future__ import annotations
@yakimka
yakimka / _etc_clickhouse-server_dict_sources.xml
Created October 6, 2021 13:55 — forked from filimonov/_etc_clickhouse-server_dict_sources.xml
ClickHouse dictionaries with connection credentials substituted from another file
<?xml version="1.0"?>
<yandex>
<mysql_config>
<port>3306</port>
<user>user</user>
<password>123</password>
<replica>
<host>mysql_host</host>
<priority>1</priority>
@yakimka
yakimka / Makefile
Last active November 20, 2020 14:42
Makefile for Python projects
.PHONY: all
all: help
COMMITS_COUNT := 30
.PHONY: whats-new
whats-new: ## Get info about last tag
$(eval LAST_TAG := $(shell git describe --abbrev=0 --tags))
$(eval PREV_TAG := $(shell git describe --abbrev=0 --tags $(LAST_TAG)^ 2>/dev/null || [ ]))
$(eval TAGS := $(if $(PREV_TAG),$(PREV_TAG)..$(LAST_TAG),$(LAST_TAG)))
@yakimka
yakimka / setup_from_github.sh
Last active February 19, 2022 13:38
Update configs from my GitHub repositories
#!/bin/bash
###
# Config
###
GITCONFIG=https://gist.githubusercontent.com/yakimka/2642f68bb40b247e13d39f9cf0ac3ea3/raw/.gitconfig
GITEXCLUDES=https://gist.githubusercontent.com/yakimka/2642f68bb40b247e13d39f9cf0ac3ea3/raw/.gitexcludes
GITCONFIG_LOCATION=~/.gitconfig
GITEXCLUDES_LOCATION=~/.gitexcludes
@yakimka
yakimka / python_interp_prompt.py
Last active January 23, 2019 13:18
Default python interpreter prompts for ipython
# $ ipython profile create
# $ cat ~/.ipython/profile_default/startup/python_interp_prompt.py
from IPython.terminal.prompts import Prompts, Token
import os
class PythonShellPrompt(Prompts):
def in_prompt_tokens(self, cli=None):
return [(Token.Prompt, '>>> ')]
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@yakimka
yakimka / .gitconfig
Last active September 28, 2020 15:21
gitconfig
[user]
name = {{git_name}}
email = {{git_email}}
[core]
editor = nano
excludesfile = ~/.gitexcludes
[alias]
pall = !git push --all && git push --tags
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
@yakimka
yakimka / default.conf
Created December 17, 2018 22:03
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;