I hereby claim:
- I am jarrydk on github.
- I am jarry_dk (https://keybase.io/jarry_dk) on keybase.
- I have a public key ASCJLrQWFNgf9lvq5k6wUTmWhtcQpf9KjqxqZwiJh2vXogo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # Get and array of containers and the network name of the container | |
| # | |
| dnf list jq -y | |
| podman ps --format json | jq '[ .[] | { name: .Names[0], network: .Networks[0] } ]' |
| #!/bin/bash | |
| mkdir -p /run/user/$(id -u)/podman | |
| export DOCKER_HOST="unix:/run/user/$(id -u)/podman/podman.sock" | |
| podman system service --time=0 unix:/run/user/$(id -u)/podman/podman.sock & |
| #!/usr/bin/env bash | |
| # | |
| # Get the directory where a Bash script is located from within the script itself | |
| # | |
| # https://stackoverflow.com/questions/59895/how-do-i-get-the-directory-where-a-bash-script-is-located-from-within-the-script#246128 | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) |
Interactive rebase off of a point earlier in the history than the commit you need to modify (git rebase -i <earliercommit>).
In the list of commits being rebased, change the text from pick to edit next to the hash of the one you want to modify. Then when git prompts you to change the commit, use this:
git commit --amend --author="Author Name <[email protected]>" --no-edit
For example, if your commit history is A-B-C-D-E-F with F as HEAD, and you want to change the author of C and D, then you would...
To sign all your commits in the Git Pull Request (PR), you can use a combination of git rebase and git commit --amend. Here are the steps:
Before starting, make sure you've configured Git to use your signing key. You can do this with:
git config --global user.signingkey YOUR_SIGNING_KEY
git config --global commit.gpgsign trueReplace YOUR_SIGNING_KEY with your GPG key ID.
Then you need to start an interactive rebase with the parent of your first commit. If you don't know what commit that is, you can use git log to display your commit history. Once you have your commit hash, start the rebase: