Skip to content

Instantly share code, notes, and snippets.

View mxro's full-sized avatar

Max Rohde mxro

View GitHub Profile
@mxro
mxro / nvim-minimal.lua
Created May 11, 2026 05:39
NeoVim Zen Editor Config
-- no UI clutter
vim.o.number = false
vim.o.relativenumber = false
vim.o.signcolumn = "no"
vim.o.ruler = false
vim.o.showcmd = false
vim.o.laststatus = 0
vim.o.cmdheight = 0
vim.o.showmode = false
@mxro
mxro / alactritty.toml
Created May 11, 2026 05:18
Alactritty Zen Editor Config
[window]
dimensions = { columns = 100, lines = 40 }
padding = { x = 10, y = 10 }
dynamic_padding = true
decorations = "None"
opacity = 1.0
blur = true
startup_mode = "Windowed"
title = "Alacritty"
dynamic_title = true
@mxro
mxro / time-tui.ps
Created April 21, 2026 05:57
Windows Time TUI in PowerShell
$ErrorActionPreference = "Continue"
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
try {
$ScriptDir = if ($PSScriptRoot) { $PSScriptRoot } else { Split-Path -Parent $MyInvocation.MyCommand.Path }
. "$ScriptDir/config.ps1"
$ESC = [char]27
[
{
"names": [
"goldstack-ci-test-server-side-rendering-1665262198346--__index.map"
],
"generatedName": "-__index.63d7f8a9e4e613831f8e7ee052143f64.map.json"
},
{
"names": [
"goldstack-ci-test-server-side-rendering-1665262198346--__index-bundle.js"
return {
plugins: [
ignorePlugin({ ignore: ['ui'] }),
cssPlugin({
excludeCSSInject: !args.includeCss,
cssConfig: {
plugins: [],
},
}),
pnpPlugin(),
return {
plugins: [
ignorePlugin({ ignore: ['server'] }),
cssPlugin({
excludeCSSInject: true,
onCSSGenerated: args.onCSSGenerated,
}),
pnpPlugin(),
],
bundle: true,
@mxro
mxro / goldstack.json
Created October 20, 2022 19:56
goldstack.json
{
"lambdas": {
"ANY /": {
"function_name": "goldstack-ci-test-server-side-rendering-1665262198346--__index",
"route": "ANY /"
},
"ANY /posts": {
"function_name": "goldstack-ci-test-server-side-rendering-1665262198346-posts",
"route": "ANY /posts"
}
@mxro
mxro / lambda.tf
Created October 20, 2022 19:56
lambda.tf
resource "aws_lambda_function" "this" {
for_each = var.lambdas
function_name = lookup(each.value, "function_name", null)
filename = data.archive_file.empty_lambda.output_path
handler = "lambda.handler"
runtime = "nodejs16.x"
import * as render from './../server/render';
export const handler: SSRHandler = async (event, context) => {
return render.performRender(event);
}
@mxro
mxro / render.ts
Created October 20, 2022 19:54
render.ts
/* esbuild-ignore ui */
import { renderPage } from './../render';
import fs from 'fs';
export async function performRender({
event,
}: {
event: APIGatewayProxyEventV2;
}): Promise<APIGatewayProxyResultV2> {