Prefix using RFC 4193
Generate bytes from local server
echo "$(date +%s%N)$(cat /var/lib/dbus/machine-id)" | sha1sum | cut -c 31-
output of the form:
65ede472f0 -
Generate bytes from local server
echo "$(date +%s%N)$(cat /var/lib/dbus/machine-id)" | sha1sum | cut -c 31-
output of the form:
65ede472f0 -
[wsl2] | |
swap=0 | |
nestedVirtualization=true | |
guiApplications=true | |
#networkingMode=mirrored | |
firewall=false | |
dnsTunneling=true | |
#https://github.com/Locietta/xanmod-kernel-WSL2/releases/ | |
kernel=C:\\bzImage-x64v3 | |
memory=2GB |
-Xms4096m | |
-Xmx8192m | |
-XX:MaxInlineLevel=18 | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-XX:ReservedCodeCacheSize=256m | |
-XX:InitialCodeCacheSize=256m | |
-XX:+UnlockExperimentalVMOptions | |
-XX:ParallelGCThreads=3 | |
-XX:ZAllocationSpikeTolerance=4 | |
-XX:+UseZGC |
https://symbols.nuget.org/download/symbols | |
https://referencesource.microsoft.com/symbols | |
https://msdl.microsoft.com/download/symbols | |
https://srv.symbolsource.org/pdb/Public |
I hereby claim:
To claim this, I am signing this object:
static readonly SerializationTypeConverter Converter = new SerializationTypeConverter(); | |
static readonly Command SelectSerializationDataCommand = new Command("Select-Object") { Parameters = { { "Property", "SerializationData" } } }; | |
static IEnumerable<T> ExchangeSerializerCastTo<T>(IEnumerable<object> results) => results.Where(x => Converter.CanConvertFrom(x, typeof(T))) | |
.Select(x => Converter.ConvertFrom(x, typeof(T), CultureInfo.CurrentCulture, false)) | |
.OfType<T>(); | |
void Main() | |
{ | |
var state = InitialSessionState.CreateDefault2(); | |
//Exchange2010SP3.psm1 was created using `Export-PSSession -OutputModule Exchange2010SP3 -CommandName *` command |
Verifying that "maverik.id" is my Blockstack ID. https://onename.com/maverik
// this snippet can be easily used in any normal c# project as well by simply removing the .Dump() methods | |
// and saving the output into a variable / file of your choice. | |
// you'll need to add BouncyCastle.Crypto nuget to use this. | |
// tested on 1.8.1 | |
// OUTPUTS: CSR, Private Key, Public Key, Self-signed Certificate | |
using Org.BouncyCastle.Asn1; | |
using Org.BouncyCastle.Asn1.Cms; | |
using Org.BouncyCastle.Asn1.Pkcs; | |
using Org.BouncyCastle.Asn1.X509; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Runtime.InteropServices; | |
using System.Runtime.InteropServices.ComTypes; | |
using System.Reflection; | |
using System.IO; | |
using System.Windows; | |
using System.Windows.Forms; |