- I use it on Arch Linux
- Install dependency:
yay tpm2-tools
kmille@linbox:~ journalctl --boot --dmesg --grep=tpm_tis
using EnvisiaCms.Simple.Shared; | |
using Microsoft.AspNetCore.Routing.Matching; | |
namespace EnvisiaCms.Simple; | |
internal sealed class LocalPortMatcherPolicy : MatcherPolicy, | |
IEndpointComparerPolicy, | |
INodeBuilderPolicy | |
{ | |
public override int Order { get; } = -100; |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using Microsoft.EntityFrameworkCore; | |
using NodaTime; | |
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); | |
await using ApplicationDbContext db = new(); | |
await db.Database.EnsureDeletedAsync(); | |
await db.Database.EnsureCreatedAsync(); |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
namespace ConsoleApp1 | |
{ | |
/// <summary> | |
/// Helper stream class to represent a slice of a larger stream to save memory when dealing with large streams | |
/// and remove the extra copy operations | |
/// This class is inspired from System.IO.Compression in dot net core. Reference implementation can be found here |
Gitlab exports a tar.gz file which contains a file called project.bundle. We can convert this file into a normal git repo using the following steps:
$ tar xvfz GitLabExport.gz
using System; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting.Builder; | |
using Microsoft.AspNetCore.Hosting.Server; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Http.Features; | |
using Microsoft.AspNetCore.Routing; |
public class BackgroundQueuedHostedService : BackgroundService | |
{ | |
protected override async Task ExecuteAsync(CancellationToken cancellationToken) | |
{ | |
while (!cancellationToken.IsCancellationRequested) | |
{ | |
var workItem = await TaskQueue.DequeueAsync(cancellationToken); | |
await FastTask(); // | |
await Task.Factory.StartNew( | |
() => |
Warning: Native image server limit exceeded. Use options --server{-list,-shutdown[-all]} to fix the problem. | |
classlist: 13,304.29 ms | |
(cap): 1,741.70 ms | |
setup: 2,708.53 ms | |
analysis: 35,828.31 ms | |
error: unsupported features in 2 methods | |
Detailed message: | |
Error: Must not have a FileDescriptor in the image heap. | |
Trace: object java.io.FileOutputStream | |
object java.io.BufferedOutputStream |
import play.sbt.PlayRunHook | |
import sbt._ | |
import java.net.InetSocketAddress | |
object Angular2 { | |
def apply(log: Logger, base: File, target: File): PlayRunHook = { | |
object Angular2Process extends PlayRunHook { | |
private var watchProcess: Option[Process] = None |
/* | |
Outcome: c.schmitt - MacBook Pro (Retina, 15", Ende 2013) - macOS 10.12.1 | |
sbt "jmh:run -i 10 -wi 10 -f1 -t1" | |
[info] Benchmark Mode Cnt Score Error Units | |
[info] Main.testMethod thrpt 10 19538048,171 ± 2224217,470 ops/s | |
[info] Main.testMethodHandleIntSupplierUnreflect thrpt 10 6735285,753 ± 281407,613 ops/s | |
[info] Main.testMethodHandleUnreflect thrpt 10 28706699,796 ± 755897,511 ops/s | |
[info] Main.testMethodHandleUnreflectListSize thrpt 10 20084867,818 ± 449023,818 ops/s | |
[info] Main.testMethodHandleUnreflectSimple thrpt 10 28637750,180 ± 685004,308 ops/s | |
[info] Main.testMethodHandleUnreflectSimpleArguments thrpt 10 5267296,404 ± 71604,568 ops/s |