Skip to content

Instantly share code, notes, and snippets.

View eugen-hoppe's full-sized avatar
🏠
Working from home

Eugen Hoppe eugen-hoppe

🏠
Working from home
View GitHub Profile
@eugen-hoppe
eugen-hoppe / ssh_connection_cs.md
Last active January 14, 2024 10:41
Cheatsheet for SSH connection from MacOS. #ssh #macos

How to use SSH? (MacOS)

1. How to connect via SSH?

1.1 How is the key named?

your_key
ssh -i ~/.ssh/your_key root@ip-address
id_rsa
@eugen-hoppe
eugen-hoppe / case.py
Last active January 14, 2024 10:34
Snippet (Python) to convert camelcase-string to snake-string and vise versa. #python
import re
class To:
@staticmethod
def camel(snake: str, upper_first: bool = False) -> str:
if snake.startswith("_"):
snake = snake[1:]
parts = snake.lower().split("_")
if upper_first: