Skip to content

Instantly share code, notes, and snippets.

View lucasjellema's full-sized avatar

Lucas Jellema lucasjellema

View GitHub Profile
@lucasjellema
lucasjellema / TagComponent.vue
Created July 23, 2024 06:31
Custom Vuetify components for editing tags
<template>
<v-autocomplete clearable chips closable-chips v-model="selectedTags" :items="filteredTags" multiple
item-title="name" item-value="name" auto-select-first hide-no-data hide-selected small-chips
label="Voeg tags toe" append-icon="mdi-tag-plus" @blur="handleBlurOnTags" :custom-filter="customFilter"
@update:model-value="handleSelectionUpdate" clear-on-select ref="autocompleteRef" class="ma-0 mt-5">
<!-- selected items -->
<template v-slot:chip="{ props, item }">
<v-chip v-bind="props" :text="item.raw.name"></v-chip>
</template> <!-- to select -->
<template v-slot:item="{ props, item }">

Conclusion Code Cafe - 17th November 2022 - Handson

Three handson labs:

  • Backstage
  • Gitpod
  • OpenTelemetry

Backstage

The Backstage handson provides a Gitpod workspace in which a Backstage instance can be easily installed and explored. The handson instruction has some references to tutorials that help you look around Backstage.

@lucasjellema
lucasjellema / objectstorage.go
Last active December 31, 2021 11:39
Dapr custom state store on OCI ObjectStorage
/*
OCI Object Storage state store.
Sample configuration in yaml:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: statestore
spec:
@lucasjellema
lucasjellema / objectstorage.go
Created December 28, 2021 13:39
SkeletonStateStoreComponent
/*
OCI Object Storage state store.
Sample configuration in yaml:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: statestore
spec:
@lucasjellema
lucasjellema / main.go
Last active December 28, 2021 12:08
OCI Go SDK ObjectStorag explorations
package main
import (
"context"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
@lucasjellema
lucasjellema / commands.md
Last active December 12, 2021 12:46
OKE-dashboard-app-deployment

Get Kubernetes Dashboard Running

Install Dashboard on Cluster kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml

Verify the deployment kubectl -n kubernetes-dashboard get pods

Proxy Cluster kubectl proxy

@lucasjellema
lucasjellema / query.tf
Last active December 2, 2021 07:40
terraform-oci-query-functions-in-application
variable "application_name" { default = "cloudnative-2021App"}
data "oci_functions_applications" "function_applications" {
compartment_id = var.compartment_id
display_name = "${var.application_name}"
}
data "oci_functions_functions" "application_functions" {
application_id = data.oci_functions_applications.function_applications.applications[0].id
}
@lucasjellema
lucasjellema / query.tf
Created December 2, 2021 07:34
quick-terraform-oci-initialization
terraform {
required_version = ">= 0.14"
}
provider oci {
region = var.region
}
variable tenancy_ocid {default = "the ocid of your tenancy"}
variable region {default = "the region in which you want to query"}
@lucasjellema
lucasjellema / functions.tf
Created November 29, 2021 21:42
terraform composite for function on OCI
### Repository in the Container Image Registry for the container images underpinning the function
resource "oci_artifacts_container_repository" "container_repository_for_function" {
# note: repository = store for all images versions of a specific container image - so it included the function name
compartment_id = var.compartment_ocid
display_name = "${local.ocir_repo_name}/${var.function_name}"
is_immutable = false
is_public = false
}
resource "null_resource" "Login2OCIR" {
@lucasjellema
lucasjellema / build_specification.yaml
Last active April 24, 2023 09:58
function tweetretriever build specification file
version: 0.1
component: build
timeoutInSeconds: 6000
runAs: root
shell: bash
env:
# these are local variables to the build config
variables:
FUNCTION_DIRECTORY: "tweet_retriever_source/functions/tweet-summarizer"
# # the value of a vaultVariable is the secret-id (in OCI ID format) stored in the OCI Vault service