Korbs / Lemmy Instance in Docker
0 mi piace
0 forks
4 files
Ultima volta attivo
Lemmy Instance in Docker
This is how SudoVanilla's Lemmy server is setup.
Create a folder for your Lemmy instance and change over to it in your terminal:
mkdir lemmy
cd lemmy
Korbs / Signing Commits
0 mi piace
0 forks
1 files
Ultima volta attivo
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 mi piace
0 forks
1 files
Ultima volta attivo
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 mi piace
0 forks
1 files
Ultima volta attivo
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 mi piace
0 forks
2 files
Ultima volta attivo
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"/> |
Korbs / Git: Creating an Orphan Branch
0 mi piace
0 forks
1 files
Ultima volta attivo
1 | cd repository |
2 | git checkout --orphan NEW_ORPHAN_BRANCH_NAME |
3 | git rm -rf . |
4 | rm '.gitignore' |
5 | echo "# New Orphan Branch" > README.md |
6 | git add README.md |
7 | git commit -a -m ":rocket: Init" |
8 | git push origin NEW_ORPHAN_BRANCH_NAME |
Korbs / Astro: If Else Statement
0 mi piace
0 forks
1 files
Ultima volta attivo
1 | --- |
2 | var UserLogin = false |
3 | --- |
4 | |
5 | <!-- Use this method if the results only returns "true" or "false" --> |
6 | {UserLogin ? <p>Log Out</p> : <p>Sign in</p>} |
7 | |
8 | <!-- Use this method if the results return other results that are not labeled as "true" or "false --> |
9 | { |
10 | ()=> { |
Korbs / Ambient Video Effect
0 mi piace
0 forks
3 files
Ultima volta attivo
1 | <div class="video-container"> |
2 | <canvas id="ambient-canvas-1"/> |
3 | <canvas id="ambient-canvas-2"/> |
4 | <video src="./video.mp4"></video> |
5 | </div> |
Più nuovi
Più vecchi