Skip to content

Instantly share code, notes, and snippets.

View jasper-d's full-sized avatar

Jasper jasper-d

  • Hamburg, Germany
View GitHub Profile
@jasper-d
jasper-d / repair-dualboot-bootloader.sh
Last active September 3, 2023 23:31 — forked from tobikris/repair-dualboot-bootloader.sh
Setting up chroot from a live image in Fedora. Regenerate grub2 for Fedora.
$ # Use Live CD to boot
$ sudo su # Switch to root
$ mkdir /mnt/sysimage
$ fdisk -l # Get names of root, boot & EFI partition names. you can also use blkid
$ # http://dadadom.de/2020/04/11/fix-fedora-uefi-boot-with-encrypted-partitions/
$ udiskctl unlock -b /dev/nvme0n1p4 # unlock root luks partition
$ mount /dev/mapper/luks-123 /mnt/sysimage -t btrfs -o subvol=root
$ mount /dev/nvme0n1p3 /mnt/sysimage/boot # mount boot partition
@jasper-d
jasper-d / Program.cs
Created June 30, 2023 09:08
Non-zero exit code
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
internal static class Program
{
public static async Task Main()
{
await new HostBuilder()
.ConfigureServices(cfg => cfg.AddHostedService<ErrorBackgroundService>())
.RunConsoleAsync();
namespace Nats.Async.Connection
{
public class Foo
{
private const int MY_CONST = 42;
public const int MyPubConst = 42;
private static int s_myPrivateStaticField = 42;
public static int MyPubStaticField = 42;
private int _myPrivateField = 42;
public int MyPublicField;
# derived from github.com/dotnet/runtime/blob/main/.editorconfig
# editorconfig.org
# top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
@jasper-d
jasper-d / .gitconfig
Created July 2, 2018 11:44
mergetool.exe .gitconfig
[diff]
guitool = PlasticSCM5
tool = PlasticSCM5
[merge]
tool = PlasticSCM5
[difftool "PlasticSCM5"]
path = \"C:/Program Files/PlasticSCM5/client/mergetool.exe\"
cmd = \"C:/Program Files/PlasticSCM5/client/mergetool.exe\" -s=\"$LOCAL\" -d=\"$REMOTE\"
[mergetool "PlasticSCM5"]
path = \"C:/Program Files/PlasticSCM5/client/mergetool.exe\"