Skip to content

Instantly share code, notes, and snippets.

View leon-sleepinglion's full-sized avatar
🏡
Work From Home

Leon Wee leon-sleepinglion

🏡
Work From Home
  • Canva
  • New Zealand
  • 02:51 (UTC -12:00)
View GitHub Profile
@wsargent
wsargent / win10-dev.md
Last active August 7, 2024 18:20
Windows Development Environment for Scala

Windows 10 Development Environment for Scala

This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.

Harden Windows 10

Read the entire Decent Security guide, and follow the instructions, especially:

@leon-sleepinglion
leon-sleepinglion / index.html
Last active February 4, 2017 10:29
Steve Jobs Profile_Free Code Camp Tutorial
<div class="container-fluid">
<h1 class="text-center" style="font-size:400%">Steve Jobs</h1>
<h3 class="text-center"><i>The man in the machine.</i></h3>
<div>
<img class="animated pulse img-rounded img-responsive" src="http://www.heyuguys.com/images/2015/11/steve-jobs-the-man-in-the-machin.jpg" style="height:600px;" alt="Steve jobs sitting"></img>
<p class="text-center">A still from the trailer of Steve Jobs: Man in the Machine</p>
</div>
<div>
<h2>Synopsis</h2>
<p class="synopsis">In his signature black turtleneck and blue jeans, shrouded in shadows below a milky apple, Steve Jobs' image was ubiquitous. But who was the man on the stage? What accounted for the grief of so many across the world when he died? From Oscar-winning
@bgadrian
bgadrian / set.go
Last active April 18, 2025 04:34
How to implement a simple set data structure in golang
type Set struct {
list map[int]struct{} //empty structs occupy 0 memory
}
func (s *Set) Has(v int) bool {
_, ok := s.list[v]
return ok
}
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active May 9, 2025 21:43
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,