Skip to content

Instantly share code, notes, and snippets.

View SIMULATAN's full-sized avatar
🐳
dockerized my brain (forgot to expose the ports tho..)

Jakob Hofer SIMULATAN

🐳
dockerized my brain (forgot to expose the ports tho..)
View GitHub Profile
@SIMULATAN
SIMULATAN / catalog_to_toml.gradle.kts
Last active August 13, 2024 21:37
Print DSL-based Gradle Version Catalog as TOML - useful to migrate from kotlin-defined dependencies to a TOML-based version catalog.
val versionLines = mutableListOf<String>()
val libs = mutableMapOf<String, List<String>>()
val plugs = mutableMapOf<String, List<String>>()
versionCatalogs.forEach { catalog ->
// map of version - alias | needed to guess the aliases used
val versions = catalog.versionAliases.associate { alias ->
val version = catalog.findVersion(alias)
version.get().displayName to alias.replace(".", "-")
}
versionLines += versions.map { (value, key) -> "$key = \"$value\"" }.joinToString("\n").trim('\n')
@SIMULATAN
SIMULATAN / Dockerfile
Created October 1, 2024 12:35
Leocloud Docker (Safe)
FROM debian:testing-slim
RUN apt update && apt install -y firefox-esr curl
ARG user=hackmenot
ARG group=hackmenot
ARG uid=1001
ARG gid=1001
RUN groupadd -g ${gid} ${group}
RUN useradd -u ${uid} -g ${group} -s /bin/sh -m ${user}
import type { Theme } from '@skeletonlabs/skeleton/themes';
const theme = {
"name": "theme",
"properties": {
"--type-scale-factor": "1.067",
"--type-scale-1": "calc(0.75rem * var(--type-scale-factor))",
"--type-scale-2": "calc(0.875rem * var(--type-scale-factor))",
"--type-scale-3": "calc(1rem * var(--type-scale-factor))",
"--type-scale-4": "calc(1.125rem * var(--type-scale-factor))",