Skip to content

Instantly share code, notes, and snippets.

View irongut's full-sized avatar
:octocat:
All I ask is an IDE and a star to steer her by...

irongut

:octocat:
All I ask is an IDE and a star to steer her by...
View GitHub Profile
@slavistan
slavistan / cuda-ready-archlinux-for-wsl2.md
Last active October 23, 2025 08:16
CUDA-ready Archlinux for WSL2

This is a brief guide on how to install Archlinux as a WSL2 distribution and how to set up CUDA afterwards.

As of late, Window's WSL2 offers GPU passthrough from WSL2/Linux to Windows for NVidia graphics cards which allows to run (and develop) CUDA-based applications on the WSL2/Linux-side with almost native performance. Unfortunately, the official guides for the CUDA setup for WSL2/Linux are predominantly Ubuntu-specific. Here's to you, Arch!

1. Install Archlinux

  1. Make sure that your Windows meets the dependencies and that your WSL2 is set up. See these instructions.

Archlinux is not among the default distributions available for WSL2. We'll install it from a tarball instead, a functionality offered natively by the WSL.

@irongut
irongut / windows-terminal-nord.md
Last active December 21, 2022 02:52
An arctic, north-bluish, clean and elegant Windows Terminal theme using the Nord colour palette.
@corenting
corenting / ed_notes.md
Last active September 22, 2025 23:59
Elite: Dangerous APIs findings
@ChuckSavage
ChuckSavage / AppendImageExtension.cs
Created August 29, 2017 18:29
C# Is file an image and get its type
// Includes a mini-program for checking and fixing files that have no extension
// Only checks for the most common types
// If you create a better version, please upload it here.
using System;
using System.Collections.Generic;
using System.IO;
namespace AppendJPG
{
@aallan
aallan / mac-vendor.txt
Last active December 2, 2025 17:36
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@KevinJump
KevinJump / documentlist.cshtml
Last active February 19, 2020 16:19
Umbraco Macro file to render a list of documents on a page
@inherits Umbraco.Web.Macros.PartialViewMacroPage
@using Umbraco.Web.Models
@{
var folders = Model.GetParameterValue<string>("mediaFolder", "")
.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
var subFolders = Model.GetParameterValue<bool>("subFolders", true);
var selection = Umbraco.TypedMedia(folders).Where(x => x != null);