Korbs / Signing Commits
0 likes
0 forks
1 files
Last active 11 months ago
Written for Forgejo and Gitea instances
SudoVanilla Ark and Commit Signing
Sign commits when pushing to SudoVanilla Ark and other Forgejo/Gitea instances.
Generate SSH Key
Generate a new SSH key using the ssh-keygen key. We'll name it ark so we know in the future that this key is used for SudoVanilla Ark or whatever you originally planned to use it for.
Run:
ssh-keygen -o -f ~/.ssh/ark -a 100 -b 4096 -C "KeyName"
Korbs / Buildah - Build and Push
0 likes
0 forks
1 files
Last active 11 months ago
Build and push an OCI image with the Buildah command line
Buildah - Build and Push
Build
To build an OCI image, use the build option and name the OCI image with the -t tag variable:
buildah build -t registry.whatever.org/image-name
You can also add metadata to it like a description with the --annotation variable, by adding:
Korbs / Rename Batch in Bash
0 likes
0 forks
1 files
Last active 11 months ago
Rename a bunch of files with the same file extension
| 1 | find . | grep 'JPG' | nl -nrz -w3 -v0001 | while read n f; do mv "$f" "$n.JPG"; done |
Korbs / Sync Video and Audio
0 likes
0 forks
2 files
Last active 11 months ago
In HTML5, sync both video and audio with JavaScript.
| 1 | <video controls id="main-video" src="video.mp4"/> |
| 2 | <audio id="main-audio" src="audio.mp4"/> |
Newer
Older