Skip to content

Instantly share code, notes, and snippets.

View VisualBean's full-sized avatar
🐵

Alex Wichmann VisualBean

🐵
View GitHub Profile
@VisualBean
VisualBean / channel.yaml
Created November 29, 2023 13:34
channel
publish:
bindings:
http:
type: response
@VisualBean
VisualBean / Entity.cs
Created December 16, 2018 23:24
Azure Table Storage Abstraction that abstracts your model away from the db. The model does not know or care about persistence. (Microsoft.Windows.Azure.Storage < v9.4.0)
public interface IEntity<T>
{
T Id { get; }
}
public abstract class Entity<T> : IEntity<T>
{
private int? _requestedHashCode;
public T Id { get; protected set;}
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
selector:
app: my-app
ports:
- name: http
port: 80
Node Pod Service
Definition A worker machine in a Kubernetes cluster, typically a virtual or physical machine. The smallest deployable unit in Kubernetes, representing a single instance of a running process in a cluster. An abstraction that defines a logical set of Pods and a policy by which to access them.
Responsibilities Runs containers and provides the necessary runtime environment for them. Groups one or more containers into a single unit of deployment and provides shared storage and network resources for them. Provides a stable network identity for a set of Pods and enables load balancing, service discovery, and other networking features.
Scalability Can be added or removed from a cluster to adjust the overall capacity or resource usage. Can be replicated or scaled horizontally to handle more traffic or workload. Can span multiple Pods and be load balanced across them, allowing for high availability and fault tolerance.
Communication
Commit Message Prefix Release Type Change Type
fix: Patch Bug fixes
feat: Minor New features or enhancements
BREAKING CHANGE: Major Major breaking changes
chore: None Maintenance or housekeeping
docs: None Documentation updates
style: None Cosmetic changes
refactor: None Code refactoring
perf: None Performance improvements
name: Release
permissions:
contents: write
on:
workflow_dispatch:
jobs:
prereleaseCheck:
runs-on: ubuntu-latest
name: Check release
module.exports = {
branches: "main",
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
name: Lint PR title
permissions:
pull-requests: write
on:
pull_request_target:
types: [opened, reopened, synchronize, edited, ready_for_review]
jobs:
using LEGO.AsyncAPI;
using LEGO.AsyncAPI.Models;
// Build the document
var document = new AsyncApiDocument()
{
Info = new AsyncApiInfo
{
Title = "Example",
Version = "0.1.0"
using LEGO.AsyncAPI.Readers;
// Read the file into a stream
using var filestream = new FileStream("user.yml", FileMode.Open);
// Create a new AsyncAPI Stream reader and deserialize the file
var document = new AsyncApiStreamReader().Read(filestream, out var diagnostic);
foreach (var channel in document.Channels)
{
// Write out any channel keys