Skip to content

Instantly share code, notes, and snippets.

View MathiasReker's full-sized avatar

Mathias Reker ⚡️ MathiasReker

View GitHub Profile
@MathiasReker
MathiasReker / configuration.nix
Created March 4, 2024 20:38
configuration.nix
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
@MathiasReker
MathiasReker / ssh_signing_key.sh
Created September 10, 2022 10:34
Add GitHub signing SSH key
#!/bin/bash
# Name of SSH key
key=github_ed25519 # You can rename this
# Generate new SSH key
ssh-keygen -t ed25519 -f ~/.ssh/${key} -q -P ""
# Authorized it
cat ~/.ssh/${key}.pub >>~/.ssh/authorized_keys
@MathiasReker
MathiasReker / docker-reset.sh
Created September 9, 2022 09:13
docker-reset.sh
#!/bin/bash
echo 'Stopping running containers ...'
docker stop $(docker ps -aq)
echo 'Removing containers ...'
docker rm $(docker ps -aq)
echo 'Removing images ...'
docker rmi $(docker images -q)
@MathiasReker
MathiasReker / .gitconfig
Last active January 20, 2023 14:30
~/.gitconfig
[user]
email = 26626066+MathiasReker@users.noreply.github.com
name = Mathias Reker
username = MathiasReker
signingkey = ~/.ssh/github_ed25519.pub
[init]
defaultBranch = dev
[gpg]
format = ssh
[commit]