Skip to content

Instantly share code, notes, and snippets.

@pandorasNox
pandorasNox / gitlab-rules.md
Last active July 4, 2023 09:20
gitlab rules examples

gitlab rules examples

# .gitlab-ci.yml

image: alpine:latest

only on branches:
 rules:

yaml syntax hints

# using yaml alias - referencing a single value
test: &ref "foobar"
bar: *ref

# works also with bigger objects
bob: &bob
 isPerson: true
@pandorasNox
pandorasNox / container_image_tag_known_issues.md
Last active January 18, 2023 16:38
container_image_tag_known_issues

container image tags known issues

  • tags are normally used to discribe versions

  • working mostly like git tags

  • BUT have the same issue like git tag as that it is a changeable reference, although normally one should not change such tag reference

    • in reality though we have observed it multiple times that the underlying image to a tag changed
    • assumption in some cases was, that a fixup or similar was applied backwards
    • but this broke enough deployments for us to show an issue
  • a possible solution:

@pandorasNox
pandorasNox / k8s.md
Last active August 15, 2022 15:07
Kubernetes Learning Material

kubernetes intro

what is kubernetes

  • (official definition): Kubernetes is a portable, extensible, open source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation.
  • insimpler terms: it's a container orchestrator (which mainly manages containers)
  • it support a distributed cluster architecture
    • where a cluster describes a collection of multiple nodes/server (normally 3/5/7... consensus relevant)
    • as it useses, to store the cluster state, the etcd distributed key-value store, which under the hood uses the Raft consensus algorithm
    • with that it manages containers across the cluster, so across all the nodes
  • it normally is used distributed but also can run as a single node instance, mostly for development purpose
@pandorasNox
pandorasNox / rootfs.sh
Created December 15, 2021 13:30 — forked from jkent/rootfs.sh
#!/bin/bash
##### BEGIN SETTINGS #####
SYSTEM=debian
ARCH=armhf
SUITE=testing
DEVICE=image.bin
HOSTNAME=unknown
@pandorasNox
pandorasNox / workshop_docker_compose.md
Last active April 12, 2021 12:06
workshop docker / docker-compose

docker-compose

  • everything you learn you actually already know

    • it's absolutly the same as with just docker
    • only difference is, it's more declerative
  • let's learn and compare pure docker vs docker-compose

agenda

@pandorasNox
pandorasNox / k8s-cheat-sheet.md
Last active October 21, 2020 13:36
k8s-cheat-sheet

k8s-cheat-sheet

create k8s tls secret

# create tls secret
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj "/CN=foo.bar.com"

# generate k8s manifest
kubectl create secret tls foo-secret --key /tmp/tls.key --cert /tmp/tls.crt
@pandorasNox
pandorasNox / blender_cheat_sheet.md
Last active August 24, 2020 17:55
blender cheat cheet

blender cheat sheet

general

  • move cam - press mouse middle + move mouse

unkown

  • open menu - propotional editing fallof => SHIFT+o

all ?? modes

  • switch view: SHIFT+z => switch views wirefarme & solid

cors general & browser infos

cors (Cross-origin resource sharing)

info

  • cors en wiki

    Certain "cross-domain" requests, notably Ajax requests, are forbidden by default by the same-origin security policy. CORS defines a way in which a browser and server can interact to determine whether it is safe to allow the cross-origin request.[3] It allows for more freedom and functionality than purely same-origin requests, but is more secure than simply allowing all cross-origin requests.

  • related to: Same-origin_policy
  • cors wildcard only works WITHOUT credentials, @see_fetch_api, @see_fetch_request_api
  • fetch spec

linux 101

Why?

  • understanding the basic's of dealing with the os
  • throughout your career you will e.g. seciffcily encounter cli regualary
  • cli basics are automation basics

What?

  • bios vs os (2m)
  • gui vs cli (2m)