Skip to content

Instantly share code, notes, and snippets.

View JensForstmann's full-sized avatar

Jens Forstmann JensForstmann

View GitHub Profile
@JensForstmann
JensForstmann / Use-specific-SSH-key-with-Git.md
Last active April 29, 2022 17:12
Use specific SSH key with Git

Sometimes you want to use a specific SSH key when accessing a Git repository, e.g. when using a deploy key.

Method 1 - Overwrite Git's SSH command

Use a key for every following git command:

export GIT_SSH_COMMAND="ssh -i /path/to/id_rsa"
@JensForstmann
JensForstmann / usedUserSpace.sh
Created June 17, 2019 14:01
Get used user quotas from btrfs volume
#!/bin/bash
userList=$(cat /etc/passwd)
volume=/volume1/
usedSpaceList=""
IFS=$'\n'
for user in $userList
do
userName=$(echo $user | cut -d : -f 1)
@JensForstmann
JensForstmann / gpg-signing.md
Last active November 29, 2023 02:03 — forked from xavierfoucrier/gpg-signing.md
GPG signing with Git and Github Desktop (for Windows)