Skip to content

Instantly share code, notes, and snippets.

View leon0399's full-sized avatar

Leonid Meleshin leon0399

View GitHub Profile
@bgr
bgr / setup-claude-chrome-wsl.sh
Created February 19, 2026 13:50
Make claude --chrome work from WSL2 with Windows Chrome
#!/bin/bash
# Enables `claude --chrome` to work from WSL2 with Windows-installed Chrome
# Run this from inside your WSL2 distro
#
# This script was written by Claude, see the following link for more info:
# https://github.com/anthropics/claude-code/issues/14367#issuecomment-3927349991
#
# The script will:
# - Auto-detect Windows username, WSL distro, Chrome profile, and claude binary
# - Create the real directory + Extensions symlink for detection
@e88y
e88y / WSL2 - Reclaim disk space and move distributions.md
Last active May 7, 2026 17:47
WSL2 - Reclaim disk space and move distributions

WSL2 – Reclaim Disk Space

You may notice that your system drive runs out of space when using WSL-Distibutions. So you might ask how to move these stuff to another hard drive or get some space back from your precious drive. Warning: Some commands here might be destructive - I take no responsibilities for any lost data. Read, understand and then decide to follow instructions or not.

How to get space back from WSL virtual disks

https://superuser.com/questions/1606213/how-do-i-get-back-unused-disk-space-from-ubuntu-on-wsl2

The Problem: WSL will dynamically grow the virtual disk (ext4.vhdx) but never shrink it to reclaim unused space. (See also

Обращение к российским IT-специалистам

Коллеги! Армия Путина вторглась в Украину под предлогом «денацификации» и ведёт там грязную войну. У многих из нас есть коллеги из Украины, с которыми можно пообщаться и убедиться в том, что никакого «освобождения» от Путина им не нужно.

Многим из нас сейчас страшно. Но открытое письмо нашей индустрии против этой войны собрало уже более 30 000 подписей. Нас много, и мы уверены, что это не предел.

Правительству тоже страшно: страшно потерять нас. А значит, действия каждого из нас могут помочь прекратить это безумие.

Что делать

@FabulousCupcake
FabulousCupcake / windows-bluetooth-autoconnect.md
Created August 27, 2021 18:49
Actually Disabling Bluetooth Autoconnect on Startup in Windows

Actually Disabling Bluetooth Autoconnect on Startup in Windows

Situation

I use multiple devices with my bluetooth earphone connected to my mac machine, phone, or tablet.
When I boot my windows machine, it automatically connects to and snatches my bluetooth earphone. This is very annoying.

Results from google on ways to disable this are unhelpful:

  • Unpair the device (???)
  • Disable bluetooth support system service via services.msc
  • Disable the device via Device Manager
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active April 14, 2026 21:13 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6. Forked from @fabianoriccardi

Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active July 12, 2026 13:51
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@sam016
sam016 / AllGattCharacteristics.java
Last active September 4, 2026 18:22
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
@swalkinshaw
swalkinshaw / tutorial.md
Last active January 5, 2026 14:33
Designing a GraphQL API
@eolant
eolant / Confirm.vue
Last active December 19, 2025 06:34
Vuetify Confirm Dialog component that can be used locally or globally
<template>
<v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel">
<v-card>
<v-toolbar dark :color="options.color" dense flat>
<v-toolbar-title class="white--text">{{ title }}</v-toolbar-title>
</v-toolbar>
<v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text>
<v-card-actions class="pt-0">
<v-spacer></v-spacer>
<v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn>
@justincjahn
justincjahn / README.md
Last active July 29, 2026 03:07
Minecraft server(s) using systemd and screen.

Install

# Install dependencies
sudo yum install -y java-1.8.0-openjdk screen

# Create a new unprivileged user for minecraft
useradd -r -m -d /opt/minecraft minecraft

# Create the directory that will house our minecraft instances

sudo su --shell /bin/bash minecraft