Skip to content

Instantly share code, notes, and snippets.

View geokal's full-sized avatar

George Kal geokal

  • Fogus Innovations & Services
  • Athens, Greece
View GitHub Profile
@hervehobbes
hervehobbes / rss.xml
Created January 2, 2025 07:57
rss feeds for .Net, C#, Asp.Net and so on
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<dateCreated>Thu, 02 Jan 2025 07:55:02 +0000</dateCreated>
<title>Tiny Tiny RSS Feed Export</title>
</head>
<body>
</outline>
<outline text="Dot Net" ttrssSortOrder="0">
<outline type="rss" text=".NET Blog" xmlUrl="https://davecallan.com/feed/" ttrssSortOrder="0" ttrssPurgeInterval="0" ttrssUpdateInterval="0" htmlUrl="https://davecallan.com/"/>

Recipe: Persistent Network Configuration in WSL 2 using Hyper-V Virtual Switch

Problem Description

Connecting to services running in WSL 2 from external sources can be challenging due to the instances being on a different network. This guide offers a solution to replace the internal virtual switch of WSL 2 with an external version in Windows 20H2 (WSL 2.0) and configure it for better networking control.

Solution Overview

This recipe uses a Hyper-V virtual switch to bridge the WSL 2 network, providing improved control and visibility of Windows' network adapters within Ubuntu. The configuration supports both dynamic and static IP addressing, eliminating the need for port forwarding and simplifying network setup.

Steps

  1. Enable Hyper-V and Management PowerShell Features:
@xiaomi7732
xiaomi7732 / HttpFactoryInBlazorWASM.md
Last active September 25, 2024 09:43
Use HttpFactory for multiple HttpClients in Blazor WASM

Use HttpFactory for multiple HttpClients in Blazor WASM

Description

HttpClient Factory pattern allows multiple named http client for various backend. This is a note about how to use it in Blazor WASM (.NET 6).

Short version: Same as in a Web API.

Details

@dejanu
dejanu / cluster_state_report.sh
Created August 10, 2022 20:55
wrapper for k8s cluster state report
#!/usr/bin/env bash
################################################################################################
# kubectl wrapper that generates a report concerning cluster state, ##
# which creates a dir with compiled information regarding: ##
# - control plane components status, cluster events, nodes description, and namespace events ##
################################################################################################
# Get nodes, componentsstatuses, and pods for control-plane
echo -e "\e[0;32m Cluster Nodes: \e[0m \n $(kubectl get nodes -owide)"

.NET Workload Troubleshooting

To install the maui workload, you have two options:

  1. dotnet workload install commands
  2. Visual Studio on Windows can install .msi files for each workload pack. Note that the concept of a "Visual Studio workload" is different than a ".NET workload".

VS for Mac's installer and updater use dotnet workload install commands. It's considerably simpler to get a Mac machine to a clean state.

Mac

local _coord = coord.LLtoLO(37.748611, 245.146667) -- location of the tunnel in latitude (north) / longitude (east)
local _w = 15 -- width of building
local _d = 28 -- depth of building
local _width = _w * 3 -- width of the tunnel (must be a multiple of _w)
local _length = 250 --length of the tunnel in segments
local _baseHeight = 1 -- height of the tunnel in segments, before the tapering starts
for x=0,_length do
@davidfowl
davidfowl / MinimalAPIs.md
Last active August 15, 2025 14:58
Minimal APIs at a glance
@ynott
ynott / multipass-on-bridged-network.md
Last active August 13, 2025 12:19
Instructions for running multipass on a bridge network

1. Environmental information

  • OS: Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-59-generic x86_64)
  • Network: 192.168.xxx.0/24
  • Ubuntu multipass host machine IP: 192.168.xxx.yyy(static IP)
  • NIC: enp2s0(bridge host NIC)
  • Bridge NIC:br0

2. Prerequisites

@arithex
arithex / Absolute-Bare-Minimum-Key-Bindings.md
Last active July 18, 2025 07:18
Falcon BMS: Absolute Bare Minimum Key Bindings

[draft] Absolute Bare Minimum Keyfile for Falcon BMS [draft]

A one-page-cheat-sheet for pilots absolutely new to Falcon BMS

The BMS-Minimum.key file contains almost 500 keyboard command bindings -- that's way too much to digest, to get started working through the training missions.

Do you really need to memorize hundreds of keyboard commands, to fly the F-16? No. Taxi, takeoff, basic flight and navigation, comms, landing, even employing basic AA and AG weapons -- it's a lot to learn, but most of what you need can be accessed by clicking buttons and switches in the virtual cockpit, when needed.

Learning what those systems are, and how they work, is hard enough in itself -- you shouldn't have to memorize hundreds of arbitrary keyboard bindings that real pilots don't!

@BorysVrublevskyi
BorysVrublevskyi / ClearLinux-KDE.md
Last active July 24, 2025 14:48
ClearLinux Workstation with KDE

ClearLinux. Install OS and Apps

This is a guide how to setup fast and stable workstation based on ClearLinux with KDE enwironment

Before you begin

Read System requirements, Check Processor Compatibility, get familiar with swupd package manager.

Install Clear OS Server, add KDE Plasma and flatpak

Download ClearLinux, make bootable USB drive with Rufus, boot from it and follow the instructions.