Skip to content

Instantly share code, notes, and snippets.

View svcavallar's full-sized avatar

Stefan von Cavallar svcavallar

View GitHub Profile

SSH Keys Best Practices

(VERY rought draft, still a work-in-progress)

SSH Key Seperation

Authentication and signing keys serve different purposes, especially on platforms like GitHub where code integrity and access control are crucial. Here's a comparison based on their functions and best practices:

Authentication Keys:

  1. Purpose:
@svcavallar
svcavallar / gitlab_repository_users.py
Last active October 15, 2025 10:13
Retrieve Gitlab users of all repositories under a group
import pandas as pd
from dotenv import load_dotenv
import os
import gitlab
load_dotenv()
# you can find the group ID right on the home page of your group, just underneath the name of your group
group_id = 123456789
@svcavallar
svcavallar / starship.toml
Last active October 12, 2025 07:03
Simple config for Starship prompt
# https://starship.rs/
# This config file should be placed here: ~/.config/starship.toml
#
# Provides a nice starting point for a software engineer friendly prompt.
# Get fonts from: https://www.nerdfonts.com/
# Required font: "FiraCode Nerd Font"
# Add the following to .bashrc:
# eval "$(starship init bash)"
#
# Get editor completions based on the config schema
@svcavallar
svcavallar / n900_dev_reflash_instructions.md
Last active May 11, 2026 19:26
Nokia N900 Device Development & Flashing
@svcavallar
svcavallar / rpi_opencv_install.sh
Last active September 20, 2020 16:09
Raspberry Pi OpenCV install script
echo "Maintain and update the distro"
sudo apt-get -y update
sudo apt-get -y upgrade
sudo rpi-update -y
echo "Install developer tools"
sudo apt-get install -y build-essential cmake pkg-config
echo "Install image I/O packages"
sudo apt-get install -y libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev
@svcavallar
svcavallar / rabbitmq_reconnect.go
Created September 20, 2016 22:23
Golang example to reconnect to RabbitMQ on a connection closed event
package main
import (
"flag"
"github.com/streadway/amqp"
"log"
"time"
)
var amqpUri = flag.String("r", "amqp://guest:guest@127.0.0.1/", "RabbitMQ URI")