Skip to content

Instantly share code, notes, and snippets.

View mamachanko's full-sized avatar
🔧
clank clank ...

Max Brauer mamachanko

🔧
clank clank ...
View GitHub Profile
@mamachanko
mamachanko / writing_services_in_python.md
Last active October 18, 2023 10:01
PyLadies Berlin: Writing services in Python

PyLadies: Writing services in Python

We’re going to write microservices in Python. These are single, deployable and focused systems that do one thing well. They can be used to compose complex systems. It is an architectural pattern for building big systems also known as microservices or service-oriented architecture. A lot of major companies like Amazon and Netflix use this pattern. Microservices are an alternative to the more common monolith. However, they introduce a novel set of problems.

Ok. That's all very technical. Let's try with a metaphor.

@mamachanko
mamachanko / .lymph.yml
Created March 12, 2015 15:13
Señor Chatto
registry:
class: lymph.discovery.zookeeper:ZookeeperServiceRegistry
hosts: zk
event_system:
class: lymph.events.kombu:KombuEventSystem
transport: amqp
hostname: rabbitmq
@mamachanko
mamachanko / resources.md
Last active August 29, 2015 14:18
PyLadies: Writing services in Python
@mamachanko
mamachanko / goto2015.md
Last active December 10, 2015 12:18
goto con 2015 notes
@mamachanko
mamachanko / install_google_cloud_sdk.sh
Created March 17, 2016 11:23
Install Google Cloud SDK
# Create an environment variable for the correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Update and install the Cloud SDK
@mamachanko
mamachanko / bootstrap.sh
Created March 17, 2016 19:36
bootstrap mamachanko's development environment
#! /bin/bash
git clone [email protected]:mamachanko/lathe.git
cd lathe
make lathe
@mamachanko
mamachanko / ifeelso.sh
Created January 5, 2017 10:26
I feel so...
#!/usr/bin/env bash
grep "^[a-z].*ic$" /usr/share/dict/words > adjectives
let "n=${RANDOM}%$(wc -l < adjectives)"
echo I feel so `head -n $n adjectives | tail -1`.
@mamachanko
mamachanko / README.md
Last active January 10, 2017 08:31
List DriveNow car coordinates for Berlin

DriveNow car coordinates

This is a script to return all DriveNow car locations for Berlin, Germany. It is easily changed to work with any other city DriveNow provides service in.

You need a DriveNow API key and auth token. It's easiest to get your's by logging into the DriveNow website and using your browser's dev tools.

Usage

@mamachanko
mamachanko / data.json
Created January 23, 2017 11:28
Shape API
{"x": 100, "y": 100}