Skip to content

Instantly share code, notes, and snippets.

View jcchikikomori's full-sized avatar
💭
I may be slow to respond.

John Cyrill Corsanes jcchikikomori

💭
I may be slow to respond.
View GitHub Profile
### Run this script on Windows (outside of the devcontainer!) to clear out Docker data and shrink the Docker VHD.
# Check if running as administrator, if not, relaunch as admin
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "Script requires administrator privileges. Relaunching as administrator..." -ForegroundColor Yellow
# Get the current script path
$scriptPath = $MyInvocation.MyCommand.Path
# Relaunch the script as administrator

How to shrink docker_data.vhdx

Previous tutorials didnt worked for me because my setup is a little bit odd.
I'm using windows 11 machine with WSL2 and docker desktop.
I also use k3d to create kubernetes cluster. Also my k3d cluster have local registry
I also used skaffold and other shinigens

0. How much garbage you have?

%USERPROFILE%\AppData\Local\Docker\wsl\disk\ - there is your docker_data.vhdx

🖱️ Windows 11 - Restore Classic Context Menu

This GITS provides batch scripts to enable and disable the classic right-click context menu in Windows 11.


📋 Description

Windows 11 introduced a new modern-style context menu. If you prefer the classic Windows 10-style menu, these scripts modify the Windows Registry to bring it back.

@gianlucamazza
gianlucamazza / distrobox-macos-setup.sh
Created May 3, 2025 00:12
Installing Distrobox on macOS with full Podman support
#!/bin/bash
# Strict mode: exit on error, exit on unset variable, pipefail
set -euo pipefail
echo "🚀 Installing Distrobox on macOS with full Podman support..."
# 1. Check for Homebrew
if ! command -v brew >/dev/null 2>&1; then
echo "❌ Homebrew is not installed. Please install it first: https://brew.sh"
# Virtual memory settings.
# Kernel documentation: https://docs.kernel.org/admin-guide/sysctl/vm.html.
# Arch zram: https://wiki.archlinux.org/title/zram#Optimizing_swap_on_zram.
# Gaming tuning: https://pastebin.com/fwzW9whL.
# PopOS tuning: https://github.com/pop-os/default-settings/pull/163.
# MaxPerformanceWizard (MPW) https://gitlab.com/cscs/maxperfwiz/-/blob/master/maxperfwiz.
boot.kernel.sysctl = {
# Tunes how aggressively kernel evicts memory pages until a specific amount of free memory is left for your active working set
## Sweet spot for gaming is 125-200, near 200 makes kswapd swap too aggressive
@thenerdlygentleman
thenerdlygentleman / non_steam_games_bottles.md
Last active March 4, 2026 19:23
Start non-steam games in gaming mode with bottles.

Start non-steam games using bottles

My tutorial is based on this one from pudquick

Side note

Introduction

Disclaimer: I know that there are many ways to start a non-steam game on the

@bahadiraraz
bahadiraraz / Git_Commit_Freeze_Solution.md
Last active April 17, 2026 22:49
Git Commit Freeze Due to GPG Lock Issues (Solution)

Git Commit Freeze Due to GPG Lock Issues

If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.

Solution Steps

1. Check for GPG Lock Messages

Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.

@AzimsTech
AzimsTech / 99-OpenWrt-Stuffs.md
Last active March 18, 2026 21:20
Installing and Using OpenWrt

![banner][banner-img]

📖 Table of Contents

  • 🛠 Setup & Configuration
    • [🌐 Configure using LuCI][luci-config]
    • [🖥️ Configure using CLI][cli-config]
  • [📜 Configure using uci-defaults script][uci-default]
@Saren-Arterius
Saren-Arterius / Waydroid.sh
Last active November 29, 2025 00:59
Install Waydroid on Steam Deck (As of 2024-03-16)
#!/bin/sh
cage -- bash -c 'wlr-randr --output X11-1 --custom-mode 1280x800; sleep 1; sudo /usr/local/bin/waydroid-helper & waydroid show-full-ui'