Skip to content

Instantly share code, notes, and snippets.

View simenandre's full-sized avatar

Simen A. W. Olsen simenandre

View GitHub Profile
#!/bin/bash
# Check if environment variables are set
if [ -z "$TURSO_GROUP" ]; then
echo "Error: TURSO_GROUP environment variable is not set."
exit 1
fi
if [ -z "$TURSO_BASE_DB" ]; then
echo "Error: TURSO_BASE_DB environment variable is not set."
@simenandre
simenandre / labels.md
Last active June 21, 2024 05:01
Working with labels

Label categories

When doing issue refinement, we typically start from these steps:

  1. Add kind labels to communicate what kind of issue this is.
  2. Add impact labels to communicate how this will impact the project.
  3. Potentially add needs labels
  4. Add sizing with size labels
  5. if bug) add a pX label

Simen A. W. Olsen

My passion is to create. My drive in life is to build others by creating an everyday life where people feel safe, fulfilled and challenged to be the best version of themself. My background is in software engineering and leadership, and I have run Bjerk for over a decade. We are particularly proud to build software that changes how people think, communicate, and learn, all in the name of making people achieve more.

I contribute to my goals by creating projects, collectives, companies, and relationships with collaboration, sustainability and continuous attention to good design and technical excellence – one step at a time.

@simenandre
simenandre / tripletex-events.json
Created March 3, 2022 12:13
Tripletex events available for webhooks
{
"value": {
"invoice.charged": {
"description": "Invoice created and charged",
"payloadModel": "Invoice",
"payloadModelClass": "no.tripletex.api2.invoice.InvoiceDTO"
},
"supplier.create": {
"description": "Supplier created",
"payloadModel": "Supplier",
@simenandre
simenandre / nextjs-boilerplate.md
Last active January 9, 2022 13:19
Setting up a new Next.js project

Setting up a new Next.js project

This document is steps to initiate a Next.js-based setup with our own opinionated Eslint rules and prettier configuration, hosted on Google App Engine.

It's pretty basic, so that the project can grow into something more advanced if needed.

Step 1 – Add default Next.js boilerplate

{
"openapi": "3.0.1",
"info": {
"title": "Crayon Group Customer API",
"version": "v1"
},
"servers": [{ "url": "https://api.crayon.com/api/v1" }],
"paths": {
"/ActivityLogs": {
"get": {
@simenandre
simenandre / lifecycle.md
Created September 22, 2021 19:45
Project Lifecycle

lifecycle

lifecycle

lifecycle

lifecycle

@simenandre
simenandre / epic-template.md
Last active June 21, 2024 05:02
Issue Epic Template

Goal

Introduction

Work items

Design and specification 📔

  • Design
  • Docs plan
@simenandre
simenandre / 0-runtypes-openapi-clients.md
Last active September 22, 2022 02:49
Generate clients based on Runtypes (and other awesome tech) from OpenAPI

OpenAPI 👉 Typescript / Runtypes / Rest Client

  • Status: proposed (not all options are fully evaluated)
  • Date: 2021-03-29

OpenAPI (formerly Swagger) is a way to describe a REST API. It has slowly become a business standard, used by large tech companies as well as small. The Open Source community has built the OpenAPI specification to improve the reliability of REST APIs, with it you can define types and methods of an API. The community has also built tools to generate server and client code for these APIs.

The benefits of code generators are obviously having to write less code. There are many alternatives to generate clients, based on OpenAPI – most of them have issues. The issues are typically unorganized source code, being unmaintaned, outdated targets (the generated Typescript code is outdated) or being unfinished. These issues are the fundation of this proposal, which is essentially rewriting/building a OpenAPI to Typescript client generator.

Context and Problem Statement

- name: blocked
description: Work can't continue
color: b60205
- name: backlog
description: Not actively being worked on
color: ecc6ff
- name: emergent
description: Coming into being
color: ecc6ff
- name: good-first-issue