Skip to content

Instantly share code, notes, and snippets.

View derberg's full-sized avatar
🍻
Enjoying my life

Lukasz Gornicki derberg

🍻
Enjoying my life
View GitHub Profile
@derberg
derberg / # asyncapi - 2021-12-28_12-34-51.txt
Created December 28, 2021 11:43
asyncapi (asyncapi) on macOS 11 - Homebrew build logs
Homebrew build logs for asyncapi on macOS 11
Build date: 2021-12-28 12:34:51
@derberg
derberg / asyncapi-websocket-kraken.yml
Last active December 15, 2022 10:49
Experiment where I try to write AsyncAPI document for public API that belongs to Kraken. It is not full document as the API has some private parts and also a lot of additional messages that are also very specific to currency trading and I didn't want to deal with those.
asyncapi: 2.0.0
info:
title: Kraken Websockets API
version: '1.8.0'
description: |
WebSockets API offers real-time market data updates. WebSockets is a bidirectional protocol offering fastest real-time data, helping you build real-time applications. The public message types presented below do not require authentication. Private-data messages can be subscribed on a separate authenticated endpoint.
### General Considerations
asyncapi: 2.0.0
info:
title: Example with Avro
version: 0.1.0
channels:
example:
publish:
message:
schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
payload: # The following is an Avro schema in YAML format (JSON format is also supported)
@derberg
derberg / Fork_Config.md
Last active February 29, 2024 10:28
This script synchronizes master branch of your fork with the master branch of upstream git repository

It is a script that I use to setup my forks. You perform such a setup only once. This means you do not do it very often. I'm not an elephant, I don't remember commands I use rarely. I like to have these things in scripts.

Use the script by passing two variables: bash conf_fork.sh <ORG_NAME> <REPO_NAME> <MASTER_OR_MAIN>

For example. If you want to contribute to generator to AsyncAPI and you forked the repo, then run the following in your terminal in the root of the repository:

bash conf_fork.sh asyncapi generator master
@derberg
derberg / console.md
Created December 5, 2019 15:53
build-a-cloud-native-extension-for-wordpress - Access Kyma - console
echo 'Kyma Console Url:'
echo `kubectl get virtualservice core-console -n kyma-system -o jsonpath='{ .spec.hosts[0] }'`
echo 'User admin@kyma.cx, password:'
echo `kubectl get secret admin-user -n kyma-system -o jsonpath="{.data.password}" | base64 --decode`
@derberg
derberg / prepare-cluster.md
Last active December 5, 2019 15:50
build-a-cloud-native-extension-for-wordpress - Prepare the GKE cluster with Kyma
# Set ENV variables. See sample values in comments:
export KYMA_VERSION={KYMA_RELEASE_VERSION}      # 1.8.0
export CLUSTER_NAME={CLUSTER_NAME_YOU_WANT}     # kyma-cluster
export GCP_PROJECT={YOUR_GCP_PROJECT}           # myproject
export GCP_ZONE={GCP_ZONE_TO_DEPLOY_TO}         # europe-west1-b
# Create a cluster
gcloud container --project "$GCP_PROJECT" clusters \
create "$CLUSTER_NAME" --zone "$GCP_ZONE" \
--cluster-version "1.14" --machine-type "n1-standard-4" \
@derberg
derberg / sample-markdown.md
Last active November 5, 2019 15:47
sample-markdown
title
Chuck Norris

Crop circles

Are Chuck Norris' way of telling the world that sometimes corn needs to lie down.

Chuck Norris doesn't have to sleep with one eye open, he can see through his eyelids Chuck Norris can slam a revolving door White sharks have extra rows of teeth in case they bite Chuck Norris by mistake, Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down Chuck Norris does not get frostbite. Chuck Norris bites frost. Windows 7 was Chuck Norris's Idea. Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face, Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing, Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing. Chuck Norris has two speeds. Walk, and Kill, Chuck Norris has a Roundhouse Kick button on his Facebook page, and when he deletes a friend they actually die Chuck No

@derberg
derberg / kyma-on-k3s.md
Last active June 19, 2023 18:22
Kyma on K3s on Multipass

Disclaimer: This is just for fun, to play with Kyma on something different then K8s cluster, Minikube or KIND. Do not use on production and at home.

Get Multipass VM on Mac

#Install Multipass
brew cask install multipass

#Get VM with Ubuntu that is large enough
multipass launch --name k3s --mem 8G --disk 20G
@derberg
derberg / examples_of_docstopics.md
Last active April 3, 2019 10:48
examples of docstopics

service catalog like example

apiVersion: cms.kyma-project.io/v1alpha1
kind: DocsTopic
metadata:
  name: slack
  labels:
    cms.kyma-project.io/view-context: service-catalog
spec: