Skip to content

Instantly share code, notes, and snippets.

View silenium-dev's full-sized avatar

Silas silenium-dev

View GitHub Profile
/* How to use any randomly retrieved VkImages in ffmpeg-related code. */
/* If you don't have a device initialized, but you have a VkDevice,
* you have to import it. */
{
AVBufferRef *ctx_ref = av_hwdevice_ctx_alloc(AV_HWDEVICE_TYPE_VULKAN);
AVHWDeviceContext *ctx = (AVHWDeviceContext *)ctx_ref->data;
AVVulkanDeviceContext *hwctx = ctx->hwctx;
/* Mandatory. */
@JoshieGemFinder
JoshieGemFinder / README.md
Last active June 28, 2025 11:56
Documenting Minecraft Datafixers

Documenting Minecraft Datafixers because no-one else will

Minecraft Datafixers and Datafixes are powerful tools that are extremely useful to modders, yet have seemingly no documentation. This documentation is mainly for 1.12.2, but can probably also be applied in later versions.
(This is still a W.I.P, so be warned that it's not finished.)

Table of contents

@jcputney
jcputney / S3OutputStream.java
Last active September 24, 2025 14:04 — forked from blagerweij/S3OutputStream.java
OutputStream which wraps AWS Java SDK v2 S3Client, with support for streaming large files directly to S3
import java.io.ByteArrayInputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.AbortMultipartUploadRequest;
import software.amazon.awssdk.services.s3.model.CompleteMultipartUploadRequest;
import software.amazon.awssdk.services.s3.model.CompletedMultipartUpload;
@jhorsman
jhorsman / semver-regex.md
Last active March 29, 2024 05:25
Semantic versioning regex