Test page

Test page


test aws charts

My first MDX post2

I am excited to announce that I have successfully achieved the AWS Certified Developer - Associate certification without formal learning, leveraging my existing expertise and practical knowledge. This certification validates my proficiency in AWS fundamentals and aligns with Apex Lab’s strategic goal of joining the AWS Partner Network.

slug.ts
import { GENERATE_SLUG_FROM_TITLE } from "@/config";
export default function (title: string, staticSlug: string) {
return !GENERATE_SLUG_FROM_TITLE
? staticSlug
: title
// remove leading & trailing whitespace
.trim()
// output lowercase
.toLowerCase()
// replace spaces
.replace(/\s+/g, "-")
// remove special characters
.replace(/[^\w-]/g, "")
// remove leading & trailing separtors
.replace(/^-+|-+$/g, "");
}

Sql

newTable.sql
CREATE TABLE ppum.logs
(
`_id` UInt64 DEFAULT generateSnowflakeID() CODEC(ZSTD(1)),
`EventTime` DateTime64(9) CODEC(Delta(8), ZSTD(1)),
`EventReceivedTime` DateTime64(9) CODEC(Delta(8), ZSTD(1)),
`EventID` Nullable(UInt32) CODEC(ZSTD(1)),
`SourceModuleName` LowCardinality(String) CODEC(ZSTD(1)),
`SourceName` Nullable(String) CODEC(ZSTD(1)),
`Severity` LowCardinality(String) CODEC(ZSTD(1)),
`SeverityValue` Nullable(UInt8) CODEC(ZSTD(1)),
`MessageSourceAddress` Nullable(String) CODEC(ZSTD(1)),
`AccountName` Nullable(String) CODEC(ZSTD(1)),
`TargetUserName` Nullable(String) CODEC(ZSTD(1)),
`ProcessID` Nullable(UInt32) CODEC(ZSTD(1)),
`TraceID` Nullable(String) CODEC(ZSTD(1)),
`SpanID` Nullable(String) CODEC(ZSTD(1)),
`TraceFlags` Nullable(UInt32) CODEC(ZSTD(1)),
`Hostname` String CODEC(ZSTD(1)),
`Message` String CODEC(ZSTD(1)),
`Body` String CODEC(ZSTD(1)),
`Data` Map(LowCardinality(String), Dynamic) CODEC(ZSTD(1)),
`DataJson` JSON CODEC(ZSTD(1)),
`Keys` Array(LowCardinality(String)) MATERIALIZED arraySort(mapKeys(Data)) CODEC(ZSTD(1)),
`KeysHash` UInt32 MATERIALIZED xxHash32(Keys) CODEC(ZSTD(1)),
INDEX idx_body lower(Body) TYPE tokenbf_v1(32768, 3, 0) GRANULARITY 1,
INDEX idx_message lower(Message) TYPE tokenbf_v1(32768, 3, 0) GRANULARITY 1,
INDEX idx_data_keys mapKeys(Data) TYPE bloom_filter(0.01) GRANULARITY 1,
INDEX idx_keys_array Keys TYPE bloom_filter(0.01) GRANULARITY 1,
INDEX idx_sourcemodulename SourceModuleName TYPE set(1000) GRANULARITY 1,
INDEX idx_id _id TYPE minmax GRANULARITY 1
)
ENGINE = MergeTree
PARTITION BY toDate(EventTime)
ORDER BY EventTime
TTL toDateTime(EventTime) + toIntervalDay(365)
SETTINGS ttl_only_drop_parts = 1, index_granularity = 8192

V0 Chart

Request speeds

New test 1

Mermaid test
Loading diagram...
Source
flowchart TD
Start --> Stop

Chart test 2

Mermaid test 2
Loading diagram...
Source
xychart-beta
title "Sales Revenue"
x-axis [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
y-axis "Revenue (in $)" 4000 --> 11000
bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]

Excalidraw test

This is a test
This is a test
This is a test
© 2025 Kristóf Hauser