Skip to content

Instantly share code, notes, and snippets.

View ferr0's full-sized avatar

Alexander ferr0

View GitHub Profile
@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active March 29, 2025 00:19
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active.

The root cause seems to be that WSL2 and the VPN use the same IP address block, and the VPN routing clobbers WSL2's network routing.

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@maratori
maratori / .golangci.yml
Last active April 2, 2025 08:05
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v2.0.2
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@wllmsash
wllmsash / assigning-static-ip-addresses-in-wsl2.md
Last active March 29, 2025 16:16
Assigning Static IP Addresses in WSL2

Assigning Static IP Addresses in WSL2

WSL2 uses Hyper-V for networking. The WSL2 network settings are ephemeral and configured on demand when any WSL2 instance is first started in a Windows session. The configuration is reset on each Windows restart and the IP addresses change each time. The Windows host creates a hidden switch named "WSL" and a network adapter named "WSL" (appears as "vEthernet (WSL)" in the "Network Connections" panel). The Ubuntu instance creates a corresponding network interface named "eth0".

Assigning static IP addresses to the network interfaces on the Windows host or the WSL2 Ubuntu instance enables support for the following scenarios:

@nikhiljha
nikhiljha / server-setup.md
Created November 22, 2020 21:43
How to setup a Ubuntu 20.04 server with Kubernetes + CRI-O + Cilium

server-setup.md

How to setup a Ubuntu 20.04 server with Kubernetes + CRI-O + Cilium

Networking

vim /etc/netplan/01-netcfg.yaml # optional, if DHCP isn't good enough

CRI-O Installation

@archieplaylist
archieplaylist / nanorc
Created November 9, 2020 12:51
nanorc
## Sample initialization file for GNU nano.
##
## For the options that take parameters, the default value is shown.
## Other options are unset by default. To make sure that an option
## is disabled, you can use "unset <option>".
##
## Characters that are special in a shell should not be escaped here.
## Inside string parameters, quotes should not be escaped -- the last
## double quote on the line will be seen as the closing quote.

Awesome Go

Build Status Awesome Slack Widget Netlify Status

Sponsorships

Digital Ocean

We have no monthly cost, but we have employees working hard to maintain the Awesome Go, with money raised we can repay the effort of each person involved! All billing and distribution will be open to the entire community.

A cura

@lukemorales
lukemorales / settings.json
Last active February 25, 2025 11:24
My VSCode Settings
{
/**
* Better Defaults
**/
"editor.copyWithSyntaxHighlighting": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.emptySelectionClipboard": false,
"workbench.editor.enablePreview": false,
"workbench.settings.enableNaturalLanguageSearch": false,
"window.newWindowDimensions": "inherit",
@shakahl
shakahl / openwrt-hacking.md
Last active February 28, 2025 10:34
OpenWrt Hacking

OpenWrt Hacking

Guides

More space for packages with extroot on your OpenWrt router

If you would like to install extra packages on OpenWrt, but you have run out of space on your router’s internal flash memory, then this tutorial is for you.

The plan is to copy the OpenWrt’s root filesystem onto an external USB flash drive, and tell the router to switch to that when it boots up.

@UnknownDoggo
UnknownDoggo / nmap-snippets.md
Last active November 24, 2020 11:54
NMap Things! #nmap #cheat-sheet #scan

OCP 4.2/4.3 All-In-One (UPI mode)

This document assume reader is familiar with the OCP4x installation process.

Before Deployment

  • Setup the install-config.yaml to deploy a single master and no workers
    apiVersion: v1
    baseDomain: example.com