Skip to content

Instantly share code, notes, and snippets.

View e-cite's full-sized avatar

Andreas Dolp e-cite

View GitHub Profile
@e-cite
e-cite / wiki_industrielle-bussysteme.md
Created July 7, 2021 12:49
Wiki: Industrielle Bussysteme

Bussysteme

Verbindungstechniken

Um dezentrale Feldgeräte (Sensoren und Aktoren) anzusteuern gibt es verschiedene Verbindungstechniken:

  • Konventionelle Verdrahtung
    • Direkte Verdrahtung von der SPS zu jedem Bauelement im Feld
    • Eine Leitung je Feldgerät erfordert einen hohen Ressourcenbedarf
    • Unflexibel bei Änderungen
    • Herausforderungen bei Analogsignalen (Spannungsabfall proportional zur Leitungslänge)
  • Dezentrale Peripherie
  • Serielles Bussystem zwischen Zentraleinheit (SPS) und mehreren Remote-IO-Einheiten
@e-cite
e-cite / gitlab-and-runner-installation.md
Last active September 13, 2024 08:30
Debian gitlab and gitlab-runner installation tutorial

Debian gitlab and gitlab-runner installation tutorial

https://about.gitlab.com/install/?version=ce#debian

Gitlab (Community Edition)

  1. Install dependencies
    sudo apt-get install -y curl openssh-server ca-certificates perl
    (sudo apt-get install -y postfix)
    
  2. Add official gitlab repository and install gitlab community edition
@e-cite
e-cite / docker-installation.md
Last active May 22, 2024 11:47
Debian Docker installation tutorial

Debian Docker installation tutorial

https://docs.docker.com/engine/install/debian/

  1. Remove old docker, update and install requirements
    sudo apt-get remove docker docker-engine docker.io containerd runc
    sudo apt-get update
    sudo apt-get install \
        apt-transport-https \
        ca-certificates \
        curl \
    
@e-cite
e-cite / kvm-installation.md
Last active October 15, 2024 21:26
Debian KVM installation tutorial

Debian KVM installation tutorial

https://wiki.debian.org/KVM

  1. Update system, install KVM (server without graphical tools) and additional tools
    sudo apt-get update && sudo apt-get dist-upgrade
    sudo apt-get install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system
    sudo apt-get install qemu-utils dnsmasq-base bridge-utils iptables netcat-openbsd
    sudo apt-get install ovmf  # For UEFI-Support in VMs (Aber aufgrund eines Bugs sind mit UEFI-VMs keine Snapshots möglich!)
    
@e-cite
e-cite / IAMRole-VMOperator.json
Created December 6, 2020 13:32
Azure IAM Role "VM operator" (Only start and stop VM)
{
"Name": "VM Operator",
"IsCustom": true,
"Description": "Can start, restart and stop (deallocate) virtual machines.",
"Actions": [
"Microsoft.Compute/*/read",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/restart/action",
"Microsoft.Compute/virtualMachines/deallocate/action"
],
@e-cite
e-cite / yubikey-ssh-authentication.md
Last active March 24, 2025 21:51
Yubikey SSH authentication

Authenticate to OpenSSH-Server with either public key or with YubiKey OTP + password

When you have access to your private key file, use it for quick login. When you are on the go, use your Yubikey OTP and your publickey or .

Tutorial: https://developers.yubico.com/yubico-pam/YubiKey_and_SSH_via_PAM.html

  1. Install yubico pam module:
    sudo apt-get install libpam-yubico