Skip to content

Instantly share code, notes, and snippets.

View bendras's full-sized avatar

Paulius Zaliaduonis bendras

View GitHub Profile
@davidfowl
davidfowl / MinimalAPIs.md
Last active March 16, 2025 16:47
Minimal APIs at a glance
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active May 12, 2025 10:36
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,

@bendras
bendras / cntlm-setup-win-lin.md
Created February 23, 2018 14:15 — forked from goude/cntlm-setup-win-lin.md
Minimal setup instructions for cntlm (Windows/Linux)

Minimal setup instructions for cntlm (Windows/Linux)

Problem

λ git clone https://github.com/mbostock/d3.git
Cloning into 'd3'...
fatal: unable to access 'https://github.com/mbostock/d3.git/':
Failed to connect to github.com port 443: Connection refused

Solution

@goude
goude / cntlm-setup-win-lin.md
Created February 5, 2016 11:59
Minimal setup instructions for cntlm (Windows/Linux)

Minimal setup instructions for cntlm (Windows/Linux)

Problem

λ git clone https://github.com/mbostock/d3.git
Cloning into 'd3'...
fatal: unable to access 'https://github.com/mbostock/d3.git/':
Failed to connect to github.com port 443: Connection refused

Solution

@staltz
staltz / introrx.md
Last active May 15, 2025 06:11
The introduction to Reactive Programming you've been missing
@bendras
bendras / gist:3608158
Created September 3, 2012 09:47
SQL Server 2012 Diagnostic Information Queries
-- http://sqlserverperformance.wordpress.com/tag/dmv-queries/
-- SQL Server 2012 Diagnostic Information Queries
-- Glenn Berry
-- August 2012
-- Last Modified: August 30, 2012
-- http://sqlserverperformance.wordpress.com/
-- http://sqlskills.com/blogs/glenn/
-- Twitter: GlennAlanBerry