Skip to content

Instantly share code, notes, and snippets.

@mklueh
mklueh / homes.json
Last active January 8, 2023 14:50
api
{
"createdAt": "2022-06-30",
"homes": [
{
"name": "Villa Belvue",
"price": 1200000,
"price_history": [
{
"date": "2022-01-01",
"price": 1200000
@mklueh
mklueh / Dockerfile
Created October 29, 2020 07:10
Multi-Stage Dockerfile to build Quarkus applications with "docker build ..."
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
#
# Before building the container image run:
#
# mvn package -Dquarkus.package.type=fast-jar
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.fast-jar -t quarkus/server-fast-jar .
@mklueh
mklueh / npm-publish.yml
Last active October 7, 2020 15:38
GitHub Action to publish node packages to the NPM repository
on: push
# Used for projects of https://overflowed.dev/projects
# place in your project under .github/workflows/npm-publish.yml
jobs:
publish-npm:
name: "Publish to NPM"
runs-on: ubuntu-latest
steps:
@mklueh
mklueh / jwt.sh
Last active November 1, 2020 16:08
Generate private and public .pem keys for JWT tokens
mkdir -p src/main/resources/META-INF/resources
ssh-keygen -t rsa -P "" -b 4096 -m PEM -f src/main/resources/privateKey.pem
ssh-keygen -e -m PEM -f src/main/resources/privateKey.pem > src/main/resources/META-INF/resources/publicKey.pem
mkdir -p src/test/resources/META-INF/resources
cp src/main/resources/privateKey.pem src/test/resources/privateKey.pem
cp src/main/resources/META-INF/resources/publicKey.pem src/test/resources/META-INF/resources/publicKey.pem
@mklueh
mklueh / pc-setup-common-development-tools.sh
Created June 22, 2020 13:44
Common tools used for fullstack development
choco install googlechrome keepass microsoft-windows-terminal git tortoisegit notepadplusplus jetbrainstoolbox intellijidea-ultimate webstorm datagrip nodejs docker-desktop slack filezilla drawio putty winscp kubernetes-cli kubernetes-helm -y
npm install -g yarn
yarn install vue
@mklueh
mklueh / get-current-hasura-schema.sh
Created May 1, 2020 15:59
Fetching the current Hasura schema and store it as SQL inserts. Can be used to run Hibernate Validations against it
curl -d '{
"opts": [
"-O",
"-x",
"--schema-only",
"--schema",
"public"
],
"clean_output": true
}' http://localhost:8081/v1alpha1/pg_dump > src/test/resources/import-test.sql
@mklueh
mklueh / PostTest.java
Created May 1, 2020 15:32
Annotation order matters when using TestContainers with QuarkusTest
@Testcontainers
@QuarkusTest
@SuppressWarnings("ALL")
@QuarkusTestResource(H2DatabaseTestResource.class)
class PostTest {
public static final int PORT = 5431;
@ClassRule
static PostgreSQLContainer db = new PostgreSQLContainer<>("postgres")
/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-2.1.html
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@mklueh
mklueh / comparison.md
Created February 25, 2016 14:22 — forked from makmanalp/comparison.md
Angular vs Backbone vs React vs Ember notes

Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.

My top contenders, mostly based on popularity / community etc:

  • Angular
  • Backbone
  • React
  • Ember

Mostly about MVC (or derivatives, MVP / MVVM).