Skip to content

Instantly share code, notes, and snippets.

View leshikus's full-sized avatar
💭
happy

Alexei Fedotov leshikus

💭
happy
View GitHub Profile
@leshikus
leshikus / setup-grafana-kube.yaml
Created July 16, 2025 18:01
Setup grafana in kube
---
- name: Setup local Kubernetes cluster with Grafana
hosts: localhost
vars:
arch: amd64
cluster_name: kind-grafana
kubectl_url: "https://dl.k8s.io/release/{{ lookup('url', 'https://dl.k8s.io/release/stable.txt') }}/bin/linux/{{ arch }}/kubectl"
kind_url: "https://kind.sigs.k8s.io/dl/latest/kind-linux-{{ arch }}"
helm_script_url: "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3"
do_restart: true
@leshikus
leshikus / setup-grafana.yml
Last active July 16, 2025 12:13
Setup Grafana via Helm CLI
---
- name: Setup local Kubernetes cluster with Grafana
hosts: localhost
vars:
arch: amd64
cluster_name: kind-grafana
kubectl_url: "https://dl.k8s.io/release/{{ lookup('url', 'https://dl.k8s.io/release/stable.txt') }}/bin/linux/{{ arch }}/kubectl"
kind_url: "https://kind.sigs.k8s.io/dl/latest/kind-linux-{{ arch }}"
helm_script_url: "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3"
do_restart: false
@leshikus
leshikus / setup-kind-jupyterhub.yml
Created July 14, 2025 20:17
setup jupyterhub via kind
---
- name: Setup local Kubernetes cluster with JupyterHub
hosts: localhost
become: true
vars:
arch: amd64
cluster_name: k8s-test
kubectl_url: "https://dl.k8s.io/release/{{ lookup('url', 'https://dl.k8s.io/release/stable.txt') }}/bin/linux/{{ arch }}/kubectl"
kind_url: "https://kind.sigs.k8s.io/dl/latest/kind-linux-{{ arch }}"
helm_script_url: "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3"
@leshikus
leshikus / 47b.csv
Created April 18, 2025 16:18
quickfort pattern
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 60 in line 1.
#build start(15;15)
Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,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,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw,Cw, ,Cw, , , , , , , , , , , ,Cw,Cw,Cw,Cw,
@leshikus
leshikus / install-cluster.sh
Created April 4, 2025 07:54
Install multi-node k8s via kind locally
#!/bin/sh
set -e
set_env() {
arch=amd64
cluster_name=k8s-test
}
install_exec() {
@leshikus
leshikus / plugin.py
Created August 20, 2024 20:48
a snipped from pytest_select plugin
def pytest_collection_modifyitems(session, config, items):
seen_test_names = set()
for item in items:
seen_test_names.add(item.name)
seen_test_names.add(item.nodeid)
selection_file_name = config.getoption("deselectfromfile")
if selection_file_name is not None:
@leshikus
leshikus / munhen.py
Created April 30, 2024 08:42
Solve munhen = ayti * chat
#!/usr/bin/python3
for m in range(1, 10):
su = set(range(0, 10)) - { m }
for u in su:
sn = su - { u }
for n in sn:
sh = sn - { n }
for h in sh:
se = sh - { h }
@leshikus
leshikus / test-parallel.sh
Created April 17, 2024 09:44
Test how many parallel processes run
cmake --build build --target check-imex & code=$?; sleep 2; ps -ef >ps.txt; fg
rm -rf /home/jovyan/.triton/cache && ( cd intel-xpu-backend-for-triton/python && python3 -m pytest -n 1 --verbose --device xpu test/regression/test_functional_regressions.py 2>&1 ) | tee test.log
@leshikus
leshikus / check-rev.sh
Created March 13, 2024 18:46
Debug CI problem
#!/bin/sh
set -vx
set -eu
test -z ${1+x} && exit 1
ver=$1
create_branch() {
cd ..