Skip to content

Instantly share code, notes, and snippets.

View Slach's full-sized avatar
💭
deep diving into kuberntes

Eugene Klimov Slach

💭
deep diving into kuberntes
View GitHub Profile
@markrogersjr
markrogersjr / gpt_oss_flash.md
Last active November 26, 2025 15:39
GPT-OSS with Flash Attention and Memory-Efficient Attention via PyTorch-Native SDPA

GPT-OSS with Flash Attention and Memory-Efficient Attention via PyTorch-Native SDPA

from time import time
import warnings

import torch
import transformers
@EvilFreelancer
EvilFreelancer / Dockerfile
Last active November 11, 2025 17:54
mem-agent MCP setup with vLLM on RTX 4090
FROM python:3.11-slim
# Install system dependencies
RUN apt update \
&& apt install -fy \
git curl build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install uv and add to path
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
@oficsu
oficsu / reassemble-gpt-drive.sh
Last active October 1, 2025 09:54
Reassemble selected partitions into a new virtual disk and derive GPT partition table properties from the old one
#!/bin/bash
set -eu
# MIT License
#
# Copyright (c) 2025 Ofee Oficsu
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@miraneko
miraneko / slutbot1.jl
Created April 1, 2025 04:44
набросок кода для шлюхоботов :)
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright 2025 Mira Ciel Nekomimi-Sireneva
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
@da-moon
da-moon / build-zed.ps1
Last active August 9, 2025 22:13
Powershell script to build and setup latest version of zed on windows
# Zed Build and Update Script for Windows
# This script builds or updates Zed from source and sets up a command-line interface.
# Enable strict mode
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
# Configuration
$ZedRepo = "https://github.com/zed-industries/zed.git"
$BuildDir = "$env:USERPROFILE\zed-build"
@eapotapov
eapotapov / config-wsl
Created July 21, 2024 15:37
Updated config-wsl for WSL kernel 6.6 (merged vars from 5.15) according to https://github.com/microsoft/WSL/issues/11742
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 6.6.29.1 Kernel Configuration - Updated
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 13.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=130200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24100
@timothyham
timothyham / ipv6guide.md
Last active December 4, 2025 16:38
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@Slach
Slach / backup-cronjob.yaml
Last active July 19, 2024 11:55
clickhouse-backup CronJob examples
apiVersion: batch/v1
kind: CronJob
metadata:
name: clickhouse-backup-cron
spec:
# every day at 00:00
# schedule: "0 0 * * *"
schedule: "* * * * *"
concurrencyPolicy: "Forbid"
jobTemplate:
@Slach
Slach / ai-oracle.ipynb
Created April 15, 2024 05:36
ai-oracle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@OrionReed
OrionReed / dom3d.js
Last active November 16, 2025 19:47
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯