Skip to content

Instantly share code, notes, and snippets.

@nox40
nox40 / dism-offline-capability-list.txt
Last active March 20, 2026 14:17
DISM (Deployment Image Servicing and Management tool)
PS> DISM /Image:"$Env:USERPROFILE\Mount" /Get-Capabilities /LimitAccess /Format:"table"
Deployment Image Servicing and Management tool
Version: 10.0.19041.3636
Image Version: 10.0.26200.8037
Capability listing:
  • Provide accurate and factual answers
  • Provide detailed explanations
  • Be highly organized
  • You are an expert on all subject matters
  • No need to disclose you are an AI, e.g., do not answer with "As a large language model..." or "As an artificial intelligence..."
  • Don't mention your knowledge cutoff
  • When asked to code, just provide me the code
  • Be excellent at reasoning
  • When reasoning, perform a step-by-step thinking before you answer the question
  • Provide analogies to simplify complex topics
namespace Inspection.CSharp
{
record Record(System.TimeZoneInfo TimeZoneInfo,
System.DateTime DateTime,
string String,
byte Byte);
class Program
{
static void Main(string[] args)
@nox40
nox40 / MSBuild-help.txt
Created December 11, 2024 07:51
%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild /help
MSBuild version 17.12.12+1cce77968 for .NET Framework
Syntax: MSBuild.exe [options] [project file | directory]
Description: Builds the specified targets in the project file. If
a project file is not specified, MSBuild searches the
current working directory for a file that has a file
extension that ends in "proj" and uses that file. If
a directory is specified, MSBuild searches that
directory for a project file.
@nox40
nox40 / csc-help.txt
Created December 11, 2024 04:25
%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc /help
Microsoft (R) Visual C# Compiler version 4.12.0-3.24572.7 (dfa7fc6b)
Copyright (C) Microsoft Corporation. All rights reserved.
Visual C# Compiler Options
- OUTPUT FILES -
-out:<file> Specify output file name (default: base name of
file with main class or first file)
-target:exe Build a console executable (default) (Short
@nox40
nox40 / csc-help.md
Last active December 12, 2024 09:32
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc /help

Microsoft (R) Visual C# Compiler version 4.8.9232.0 for C# 5

Copyright (C) Microsoft Corporation. All rights reserved.

This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240

Visual C# Compiler Options

Output Files

@nox40
nox40 / MSBuild-help.txt
Created December 9, 2024 09:26
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\MSBuild /help
Microsoft (R) Build Engine version 4.8.9037.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
Syntax: MSBuild.exe [options] [project file]
Description: Builds the specified targets in the project file. If
a project file is not specified, MSBuild searches the
current working directory for a file that has a file
extension that ends in "proj" and uses that file.
@nox40
nox40 / brew_env.rb
Last active March 19, 2025 14:05
Code snippets for Homebrew running on my legacy macOS system
ENV["PATH"] = "#{ENV["HOMEBREW_PREFIX"]}/bin:".concat(ENV["PATH"])
ENV["PATH"] = "#{ENV["HOMEBREW_OPT"]}/llvm@15/bin:".concat(ENV["PATH"])
ENV["CC"] = "#{ENV["HOMEBREW_OPT"]}/llvm@15/bin/clang"
ENV["CXX"] = "#{ENV["HOMEBREW_OPT"]}/llvm@15/bin/clang++"
ENV["CPPFLAGS"] = "-I#{ENV["HOMEBREW_OPT"]}/llvm@15/include"
ENV["LDFLAGS"] = "-L#{ENV["HOMEBREW_OPT"]}/llvm@15/lib -Wl,-rpath,#{ENV["HOMEBREW_OPT"]}/llvm@15/lib"
ENV["LDFLAGS"] = "#{ENV["LDFLAGS"]} -L#{ENV["HOMEBREW_OPT"]}/llvm@15/lib/c++ -Wl,-rpath,#{ENV["HOMEBREW_OPT"]}/llvm@15/lib/c++"
@nox40
nox40 / perluniprops-table-v5.40.0.txt
Last active August 7, 2024 14:45
Properties accessible through \p{} and \P{} in Perl v5.40.0
NAME INFO
\p{Adlam} \p{Script_Extensions=Adlam} (Short: \p{Adlm}; NOT \p{Block=Adlam}) (90)
\p{Adlm} \p{Adlam} (= \p{Script_Extensions=Adlam}) (NOT \p{Block=Adlam}) (90)
X \p{Aegean_Numbers} \p{Block=Aegean_Numbers} (64)
T \p{Age: 1.1} \p{Age=V1_1} (33_979)
\p{Age: V1_1} Code point's usage introduced in version 1.1 (33_979: U+0000..01F5, U+01FA..0217, U+0250..02A8, U+02B0..02DE, U+02E0..02E9, U+0300..0345 ...)
T \p{Age: 2.0} \p{Age=V2_0} (144_521)
\p{Age: V2_0} Code point's usage was introduced in version 2.0; See also Property 'Present_In' (144_521: U+0591..05A1, U+05A3..05AF, U+05C4, U+0F00..0F47, U+0F49..0F69, U+0F71..0F8B ...)
T \p{Age: 2.1} \p{Age=V2_1} (2)
@nox40
nox40 / glossary-content.adoc
Last active May 15, 2024 14:14
A Git Glossary
alternate object database

Via the alternates mechanism, a repository can inherit part of its object database from another object database, which is called an "alternate".

bare repository

A bare repository is normally an appropriately named directory with a .git suffix that does not have a locally checked-out copy of any of the files under revision control. That is, all of the Git