Skip to content

Instantly share code, notes, and snippets.

switch (productToParse)
{
case "OAK_LOG":
case "LOG":
case "OAK_WOOD":
productToParse = "LOG";
break;
case "SPRUCE_LOG":
case "SPRUCE":
case "SPRUCE_WOOD":
@richlander
richlander / sdk-size-improvements.md
Created July 23, 2019 16:32
.NET Core 3.0 SDK Size Improvements

.NET Core 3.0 SDK Size Improvements

The .NET Core SDK is significantly smaller with .NET Core 3.0. The primary reason is that we changed the way we construct the SDK, by moving to purpose-built “packs” of various kinds (reference assemblies, frameworks, templates). In previous versions (including .NET Core 2.2), we constructed the SDK from NuGet packages, which included many artifacts that were not required and wasted a lot of space.

The following sections demonstrate the size improvements for Windows, Linux and macOS, including container delivery. They detail the process and commands that were used to determine the product sizes, enabling you to reproduce the same results in your own environment. To keep thing simple, zips and tar balls were downloaded from dotnet/core-sdk as opposed to the official installers.

Some readers will be shocked on how large the .NET Core 2.2 installer directory grows when the NuGetFallback archive is expanded to the NuGetFallBackFolder. W

@prajaybasu
prajaybasu / Convert.cs
Last active September 24, 2018 16:10
Int32 Parsing differences
public static int Convert.ToInt32(string value)
{
if (value == null) return 0;
return Int32.Parse(value, CultureInfo.CurrentCulture);
}
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active April 11, 2026 23:33 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.