Skip to content

Instantly share code, notes, and snippets.

View rkiyanchuk's full-sized avatar
🇺🇦

Ruslan Kiyanchuk rkiyanchuk

🇺🇦
View GitHub Profile
@rkiyanchuk
rkiyanchuk / .gitconfig
Last active April 8, 2026 23:49
Git stats aliases
[alias]
# Top 20 most-changed files in the last year (high churn = potential risk).
stats-hotfiles = !git log --format=format: --name-only --since='1 year ago' | sort | uniq -c | sort -nr | head -20
# Commit activity grouped by month.
stats-activity = !git log --format='%ad' --date=format:'%Y-%m' | sort | uniq -c
# Reverts, hotfixes, and emergency patches in the last year.
stats-hotfixes = !git log --graph --decorate --date=short --pretty=format:\"%C(blue)%h%Creset %C(dim white)%ad%Creset %s %C(green)%an%Creset %C(cyan)%d%Creset\" --since='1 year ago' --grep='revert' --grep='hotfix' --grep='emergency' --grep='rollback' -i
@rkiyanchuk
rkiyanchuk / private-build-plans.toml
Last active October 3, 2022 16:12
Iosevka Build Plan
### See https://github.com/be5invis/Iosevka/blob/master/doc/custom-build.md for comprehensive
### documentation of the options in this file
# TL;DR instructions:
# Installation:
# brew install node ttfautohint fontforge
# git clone --depth 1 https://github.com/be5invis/Iosevka.git
# npm install
# Compilation:
# Copy private-build-plans.toml to repo root.
@rkiyanchuk
rkiyanchuk / fib_benford_law.py
Created April 20, 2017 21:50
Benford's law in Fibonacci sequence
"""Verify that Fibonacci sequence follows Benford's law."""
from pprint import pprint
def fibonacci(n):
a, b = 0, 1
for i in range(n):
a, b = b, a + b
return a