Skip to content

Instantly share code, notes, and snippets.

Avatar

Sebastian sebastian-sommerfeld-io

View GitHub Profile
@sebastian-sommerfeld-io
sebastian-sommerfeld-io / Github Actions Memo List
Last active December 5, 2022 12:25
List of memos for Github Actions
View Github Actions Memo List
Project management:
- Auto-Create Issues: https://docs.github.com/en/actions/managing-issues-and-pull-requests/scheduling-issue-creation
@sebastian-sommerfeld-io
sebastian-sommerfeld-io / Docker commands
Last active July 5, 2022 10:36
Init Chef InSpec profile with InSpec inside docker container
View Docker commands
docker run -it --rm --volume "$(pwd):$(pwd)" --workdir "$(pwd)" chef/inspec:latest init profile "THE_PROFILE_NAME" --chef-license=accept
View shdoc: file #1
#!/bin/bash
# @file start.sh
# @brief Start containers that are common to all nodes.
#
# @description The script starts all containers that are common to every node (RasPi and x86). All these containers
# satisfy monitoring, logging and management purposes and are defined using docker compose.
#
# | What | User/Pass | Port | Protocol |
# | ------------- | ----------- | ---- | -------- |
# | node-exporter | - | 9100 | http |
View Bash: Case for var-values
case $HOSTNAME in
("kobol") echo -e "$LOG_INFO Do some stuff on the machine with name kobol";;
(*) echo -e "$LOG_ERROR NOT THE EXPECTED MACHINE (* = any other) !!!" && echo && exit;;
esac
View Asciidoc: Embedded Diagram
[plantuml, puml-build-image, svg]
----
@startuml
skinparam linetype ortho
skinparam monochrome false
skinparam componentStyle uml2
skinparam backgroundColor #fff
skinparam ArrowColor black
skinparam NoteBorderColor Grey