Naomi Nameson.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asyncapi: 3.0.0 | |
info: | |
title: Hello world using request/reply | |
version: 1.0.0 | |
description: Hello world example using request/reply | |
channels: | |
hello: | |
address: /hello | |
messages: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @see https://medium.com/geekculture/the-wild-world-of-unique-identifiers-uuid-ulid-etc-17cfb2a38fce | |
* @see https://www.honeybadger.io/blog/uuids-and-ulids/ | |
* | |
* Install with `npm init -y && npm install uuid nanoid ulidx -S` | |
*/ | |
import { randomUUID } from 'crypto'; | |
import { v4 } from 'uuid'; | |
import { nanoid } from 'nanoid'; | |
import { ulid } from 'ulidx'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build and tag image | |
podman build -t <IMAGE>:<TAG> . | |
# List images | |
podman images | |
# List processes | |
podman ps | |
# Kill a process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################################## | |
# Uses Podman to build an image and push it to ttl.sh (https://ttl.sh) # | |
######################################################################## | |
NAME=$(uuidgen | tr "[:upper:]" "[:lower:]") | |
echo "Image name is: ${NAME}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# See: https://www.contentful.com/developers/docs/tutorials/cli/import-and-export/ | |
EXPORT_FOLDER="export" | |
EXPORT_FILE="backup.json" | |
SPACE_ID="YOUR_ID_HERE" | |
mkdir -p $EXPORT_FOLDER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log -S <string> | |
git log -p <FILE> | |
git log --pretty --abbrev-commit — <FILE> | |
git log --pretty=format:"%h %ad %an - %s" --abbrev-commit -- <FILE> | |
git bisect start | |
git bisect bad | |
git bisect good | |
git bisect reset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { readFileSync, readdirSync, statSync, writeFileSync } from 'fs'; | |
import path from 'path'; | |
// Use this before running folder metrics | |
interface CouplingResult { | |
abstractions: number; | |
abstractness: number; | |
afferent: number; | |
concretions: number; |
Old approaches like XP did not scale well for software architecture, mostly ignoring quality attributes. The effect is teams get focused on features and constantly defer technical debt and technical features, such as quality attributes.
What is Continuous Architecture? It is an architecture approach that follows six simple principles: