Skip to content

Instantly share code, notes, and snippets.

View michaellihs's full-sized avatar

Michael Lihs michaellihs

View GitHub Profile
@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_site.md
Last active August 29, 2015 14:26
Opens a Gitlab site for the current directory

Gitlab Helper for opening Gitlab project site of current git repository

Setup

(On a Mac) create the following ruby script in /usr/bin/gitlab_site

#!/usr/bin/ruby

git_remote = `git remote -v`.scan(/git@(.+?).git/)
@michaellihs
michaellihs / typo3_behat.md
Last active November 3, 2017 15:28
Behat in TYPO3

We have an extension PROJECT_NAME-testing, which holds a composer.json like this:

{
    "name": "punktde/PROJECT_NAME-testing",
    "description" : "punkt.de testing suite for PROJECT_NAME",
    "license": "proprietary",
    "repositories": [
        {
 "type": "git",
package test.ch.lihsmi.collections
import spock.lang.*
import ch.lihsmi.collections.ArrayStack
class EmptyStack extends Specification {
def stack = new ArrayStack<Object>()
package ch.lihsmi.collections;
import java.util.Arrays;
final public class ArrayStack<T> implements Stack<T> {
private T[] elements;
private int position = 0;
@michaellihs
michaellihs / learning-bosh.md
Last active April 6, 2016 21:02
Some Snippets and Resources for BOSH

Learning BOSH

Basic Concepts of BOSH

What is a Stemcell?

A Stemcell is a OS image wrapped with IaaS specific packaging. Amongst other tools, it always contains a BOSH Agent (like a Chef client) running on the VM to which the stemcell is deployed to and listens for instructions from the BOSH Director.

@michaellihs
michaellihs / devops-days-kiel-messaging.md
Last active November 26, 2022 16:57
DevOps Days Kiel: Message Queues as an Integration Approach for Micro Services

DevOps Days Kiel: Message Queues as an Integration Approach for Micro Services

Micro Services seem to be a trendy topic in software development nowadays and often they go hand in hand with message queues as an integration approach. So the question arises, whether message queues become the replacement for relational databases as an integration scenario and whether it is a better approach or not.

So here are some questions:

Are you using message queues in your (micro service) projects?

  • Yes, for emails --> RabbitMQ, 10,000 requests / seconds
@michaellihs
michaellihs / devopska-2016-05-31.md
Last active June 1, 2016 20:17
DevOps Meetup Karlsruhe - ChatOps

DevOps KA 2016-05-31: ChatOps

Hosted by @synyx_ka

Presenters @verschdl @cyxchris

ChatOps = Kommunikation + Kollaboration + DevOps

Klassische Admin Arbeit: Dev --> Anfrage (z.B. Telefon) nach Admin --> macht was --> Antwort

@michaellihs
michaellihs / maven-cheatsheet.md
Last active December 16, 2022 07:13
Maven Cheatsheet
@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