Skip to content

Instantly share code, notes, and snippets.

View meteoritt's full-sized avatar
:octocat:
Researching.. GAZPROM SIBN KAZAKHSTAN

Sergey Chudakov meteoritt

:octocat:
Researching.. GAZPROM SIBN KAZAKHSTAN
View GitHub Profile
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active May 3, 2026 23:25
Fix DNS resolution in WSL2

Permanent WSL DNS Fix (WSL 2.2.1+)

If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.

This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.

DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.

To upgrade WSL, follow these steps,

@RezMike
RezMike / Block.kt
Last active March 29, 2021 23:05
Code for "KorGE Tutorial - Writing 2048 game. Step 2 - State and interaction"
import Number.*
import com.soywiz.korge.view.*
import com.soywiz.korim.color.*
fun Container.block(number: Number) = Block(number).addTo(this)
class Block(val number: Number) : Container() {
init {
roundRect(cellSize, cellSize, 5.0, fill = number.color)
@meteoritt
meteoritt / History\-1228d5c2\entries.json
Last active June 27, 2025 03:49 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
{"version":1,"resource":"file:///d%3A/Sergey/Projects/git/topalias/topalias/requirements-dev.txt","entries":[{"id":"4RTX.txt","source":"Workspace Edit","timestamp":1749981079929}]}
@username1565
username1565 / BBP_NthHexDigitOfPI.html
Last active January 16, 2026 21:20 — forked from retrohacker/pi.text
First 8336 HEX digits of pi
Open this in new tab, and see console.log (F12 button);
<script>
//first 8336 hexadecimal digits of pi: https://gist.github.com/retrohacker/e5fff72b7b75ee058924
//multiline string:
var pi_test_string = function(){/*
243F6A8885A308D313198A2E03707344A4093822299F31D0082EFA98EC4E6C89
452821E638D01377BE5466CF34E90C6CC0AC29B7C97C50DD3F84D5B5B5470917
9216D5D98979FB1BD1310BA698DFB5AC2FFD72DBD01ADFB7B8E1AFED6A267E96
BA7C9045F12C7F9924A19947B3916CF70801F2E2858EFC16636920D871574E69