Skip to content

Instantly share code, notes, and snippets.

View michaellihs's full-sized avatar

Michael Lihs michaellihs

View GitHub Profile
@michaellihs
michaellihs / networking.md
Last active April 24, 2024 10:31
Networking Cheatsheet

Networking Cheat Sheet

Sniff Network Traffic from / to IP

tcpdump -n -i eth0 src SRC_IP  or dst DEST_IP

Create Routes

@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active April 21, 2024 20:22
tmux Cheat Sheet
@michaellihs
michaellihs / twisted.md
Last active April 7, 2024 17:47
Write your own ssh Server with the Python Twisted library

SSH Server with the Python Twisted Library

Installing the library

Assuming you have Python installed on your system:

pip install twisted
pip install pyOpenSSL
pip install service_identity
@michaellihs
michaellihs / gitlab_access_token.md
Last active March 18, 2024 05:09
Create Gitlab Personal Access Token using curl

Create Gitlab Personal Access Token using curl

Prerequisites

  • You need a Gitlab server up and running
  • You need user credentials for a (admin) user on the Gitlab server
  • You need curl and Perl on your server
@michaellihs
michaellihs / ssh-with-vault.md
Last active February 22, 2024 09:16
SSH with Vault

Managing SSH authentication with Vault

Managing SSH keys with Vault requires 3 steps:

  1. Setting up Vault
  2. Setting up the host
  3. Setting up the client / using the signed client keys

For a full documentation, see this HashiCorp Blog Post

@michaellihs
michaellihs / go-cheat-sheet.md
Last active February 20, 2024 17:39
Go Cheat Sheet
@michaellihs
michaellihs / patterns-antipatterns-cicd.md
Last active January 7, 2024 10:12
Patterns and Anti-Patterns for CI/CD

Patterns and Anti-Patterns for CI/CD

The Developer Experience

  • The developer journey
    • visualize devs' emotions during their workflow
  • make sure to provide a good experience for your devs as well (not only for customers and users)

Working Models

@michaellihs
michaellihs / strava_cli.md
Last active August 23, 2023 16:47
Upload tracks to Strava from the Command Line

Upload GPS Tracks to Strava from your Command Line

This short tutorial describes how to upload GPS tracks to Strava using your command line interface / shell. It requires no special tools or any 3rd party code.

1. Generate an API Key

Run the following steps with your user logged in to Strava in your browser!

Strava uses OAuth to authenticate against 3rd party applications. In order to authenticate to your Strava account from your command line, you first have to generate an API key. Therefore go to this page https://strava.github.io/api/v3/oauth/ and create a new API. The settings are as follows:

@michaellihs
michaellihs / jenkins-pipeline-cheat-sheet.md
Last active August 17, 2023 17:12
Jenkins Pipeline Plugin Cheat Sheet

Jenkins Pipeline Plugin Cheat Sheet

My collection of useful hints and snippets for the Jenkins Pipeline Plugin

Testing Jenkins Pipelines

@michaellihs
michaellihs / design-thinking-ux-user-story-mapping.md
Last active August 2, 2023 16:43
Design Thinking, UX, User Story Mapping...

Concepts

Journey Map

User journey map is a visualization of an individual’s relationships with a product/brand over time and across different channels.

  • commonly it’s represented as a timeline of all touch points between a user and a product
  • timeline contains information about all channels that users use to interact with a product
  • visualizes how a user interacts with a product and allows designers to see a product from a user’s point of view