Tag: Python

  • Multipass cloud-init

    Multipass cloud-init

    Multipass is pretty useful but what a pain this was to figure out, due to Ubuntu’s Node.js package not working with AWS-CDK. Multipass lets you manage VM in Ubuntu and can take cloud-init scripts as a parameter. I wanted an Ubuntu LTS instance with AWS CDK, which needs Node.js and python3-venv. Save that as cdk.yaml…

  • Setup a Multipass CDK Environment

    Setup a Multipass CDK Environment

    I want to be able to connect to the environment using Visual Studio Code, so first we need to create a SSH key: We need a configuration YAML, replace <generated ssh-rsa key> with the above key, saved as cloud-init.yaml: Assuming you’ve got Multipass installed (if not sudo snap install multipass) then: We’ll come back to…

  • Rainbows, decorators arguments & threads

    Rainbows, decorators arguments & threads

    Playing with Rainbow Hat I learned a few things about Python as a result I found out what a decorator is, the difference between args and kwargs and threads. I also learned that a lot of guides don’t understand either. If you can’t explain it simply, you don’t understand it well enough1. Decorators Rainbow Hat…