Skip to content

Instantly share code, notes, and snippets.

@pandorasNox
pandorasNox / worktree.md
Created May 28, 2025 15:44 — forked from socketbox/worktree.md
Start a new git worktree from an existing branch other than the default

Starting out

Run these commands in a directory devoted to your project:

mkdir project_foo
cd project_foo
git clone --bare [email protected]:yourorg/project_foo.git .bare
echo "gitdir: ./.bare" > .git

Now edit .bare/config, adding fetch = +refs/heads/*:refs/remotes/origin/* below [remote "origin"]

@pandorasNox
pandorasNox / git credential store https demo.md
Created September 4, 2024 12:46 — forked from klo2k/git credential store https demo.md
Using git credential store for non-interactive operations over https, without exposing password in remote URL (save, retrieve passwords)

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 / 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:
@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

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)
@pandorasNox
pandorasNox / automation_basics.md
Last active July 8, 2020 11:58
automation basics - principles

automation basics - principles

why automation?

  • not to put applications into production
  • to support the process of putting applications into production

devops

devops is a cultural movement