Korbs / Lemmy Instance in Docker
0 likes
0 forks
4 files
Last active
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 / Buildah - Build and Push
0 likes
0 forks
1 files
Last active
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
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
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 likes
0 forks
1 files
Last active
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 likes
0 forks
1 files
Last active
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 likes
0 forks
3 files
Last active
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> |
Newer
Older