Skip to content

Instantly share code, notes, and snippets.

View lexfrei's full-sized avatar
🏠
Working from home

Aleksei Sviridkin lexfrei

🏠
Working from home
View GitHub Profile
@lexfrei
lexfrei / README.md
Last active January 20, 2026 16:35
Claude Code statusline with real usage limits from Anthropic API

Claude Code Statusline with Real Usage Limits

Enhanced statusline for Claude Code that shows real quota usage from Anthropic API instead of estimates.

Features

  • 🟢🟡🟠🔴 Rate indicators — compares usage% with elapsed time%
  • 5-hour window — always shown with time remaining
  • 7-day window — shown only when ≥70% used
  • 60-second cache — avoids excessive API calls
@lexfrei
lexfrei / decrypt_samsung.py
Created December 5, 2025 15:36
Samsung 990 EVO NVMe firmware update on ARM64 (Raspberry Pi) using nvme-cli
#!/usr/bin/env python3
"""
Samsung NVMe Firmware Decryption Tool
Decrypts official Samsung firmware for use with nvme-cli on ARM64/RISC-V/etc.
Only works with official Samsung firmware - cannot be used for modification.
The AES-256 key must be extracted from the fumagician binary:
strings fumagician | grep -E '^[A-Za-z0-9+/]{43}=$'

Актуальность андрагогики Малькольма Ноулза в современной науке об обучении взрослых

Работы Малькольма Ноулза остаются удивительно актуальными и эмпирически валидными в современной андрагогике, несмотря на существенную критику за 50 лет развития теории. Недавние исследования 2024 года показывают 85% соответствие отзывов обучающихся принципам андрагогики, что представляет самое убедительное эмпирическое подтверждение теории за всю её историю. Одновременно область значительно эволюционировала, породив новые теории трансформативного обучения, хеутагогику и критические подходы, которые адресуют ограничения оригинальной модели Ноулза.

Современная валидность принципов Ноулза

Все шесть базовых принципов андрагогики Ноулза сохраняют научную актуальность, получив убедительное эмпирическое подтверждение в исследованиях 2015-2025 годов.

Самоконцепция (саморегуляция) остается наиболее важным принципом, критическим для онлайн и гибридного обучения. Исследования Университета Цинциннати 2024 года выявили

[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_300025000851333235373335-if00
restart_method: command
[virtual_sdcard]
path: /home/lex/printer_data/gcodes
# Klipper configuration for FlyingBear Ghost 5 with MKS Robin Nano V3.1 board
# - TMC2226 drivers (treated as TMC2209 in UART mode)
@lexfrei
lexfrei / c7finder.sh
Last active February 8, 2024 10:55
Script to find any images in your k8s based on CentOS 7
#!/bin/bash
# This script will check all images used in the cluster and output the ones that are based on CentOS 7 to a file called centos7_images.txt
# This is useful to check if you are using CentOS 7 images in your cluster, which will be EOL by the end of 2024
# Runs in parallel to speed up the process
# On this step, we will check all images used in the cluster and will iterate over them to check if they are based on CentOS 7
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec['initContainers', 'containers'][*].image}" | tr -s '[:space:]' '\n' | sort | uniq | while read -r image; do
{
# Here we are generating a random string to use as a pod name
---
apiVersion: v1
kind: Secret
metadata:
name: mssql-5-secret
labels:
app.kubernetes.io/name: mssql-5
type: Opaque
data:
sa_password: "VG91Z2hwYXNzMSE="
:local mySSID;
:set mySSID "my ssid";
:local myPass;
:set myPass "my value";
/ipv6 settings
set disable-ipv6=yes
/interface bridge
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: driver.longhorn.io
creationTimestamp: "2021-07-30T14:37:49Z"
finalizers:
- kubernetes.io/pv-protection
- external-attacher/driver-longhorn-io
name: pvc-ecb51876-eac3-40d1-949a-14b2a03b3508
@lexfrei
lexfrei / main.go
Last active November 28, 2020 23:10
package main
import (
"log"
"os"
cloudflare "github.com/cloudflare/cloudflare-go"
)
func main() {
version: "3.7"
volumes:
traefik_data: {}
ghost_data: {}
commento_postgres_data: {}
networks:
internet: {}
traefik: