Skip to content

Instantly share code, notes, and snippets.

View thakyZ's full-sized avatar
👬
This emoji was one to show up when searching soup 👍

Neko Boi Nick thakyZ

👬
This emoji was one to show up when searching soup 👍
View GitHub Profile
@pmnlla
pmnlla / tweet_from_sink.py
Last active November 14, 2019 17:13
tweet_from_fridge with replies (Python)
import sys, os, time
import tweepy
#Credit to KonradIT on GithubGist for making the original script, tweet_from_fridge.py
#I had only modified it so it can reply to tweets, nothing else.
#All credit goes to the original author.
keys = dict(
consumer_key='put',
consumer_secret='your',
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active July 10, 2025 09:05
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,

param(
[Parameter(Mandatory)][string]$vmName
)
$InformationPreference = "Continue"
$ErrorActionPreference = "Stop"
try {
$vmPartitionAdapter = Get-VMGpuPartitionAdapter -VMName $vmName
if ($vmPartitionAdapter) {
Write-Information "Removing Partition Adapter. Checkpoints work."