Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):
Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:
curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
| # From my webinar for Sysdig - Exploring Kubernetes 1.18 | |
| # Create A KinD or k3s cluster with no IngressController | |
| # Run `arkade install ingress-nginx` to add IngressNginx to the cluster as your IngressController | |
| # Save and apply all the Kubernetes YAML files below | |
| # Forward the IngressController | |
| # kubectl port-forward ingress-nginx-controller 8080:80 |
-
Clone this gist using the URL from the address bar
-
Run
terraform init -
Configure terraform variables as needed by updating the
main.tfvarsfile:| Variable | Description | Default | | ------------ | ------------------- | --------------- |
This gist has moved to the faasd repo
https://github.com/openfaas/faasd/blob/master/docs/MULTIPASS.md
| FROM python:3.7 | |
| ENV PYTHONUNBUFFERED 1 | |
| WORKDIR /code | |
| # Copying the requirements, this is needed because at this point the volume isn't mounted yet | |
| COPY requirements.txt /code/ | |
| # Installing requirements, if you don't use this, you should. | |
| # More info: https://pip.pypa.io/en/stable/user_guide/ |
A list of ASGI-related Python packages I maintain:
- arel: Browser hot reload for ASGI apps.
- asgi-htmx: HTMX integration for ASGI applications.
- asgi-lifespan: ASGI lifespan utilities.
- asgi-sitemaps: Sitemap generation in ASGI apps.
- awesome-asgi: awesome ASGI resources
- msgpack-asgi: MessagePack support for ASGI apps.
- tartiflette-asgi: ASGI-based HTTP transport for the Tartiflette GraphQL engine.
PlantUML is a really awesome way to create diagrams by writing code instead of drawing and dragging visual elements. Markdown is a really nice documentation tool.
Here's how I combine the two, to create docs with embedded diagrams.
Get the command-line PlantUML from the download page or your relevant package manager.
| ## Nikola slides shortcode | |
| ## Put it in shortcodes/ in your site | |
| ## Use it like this: | |
| ## {{% slides "foo" %}} | |
| ## That will create a carousel with all the images from galleries/foo | |
| ## This uses bootstrap4 so only works in themes that use it | |
| ## Twek as needed for visuals | |
| <%! | |
| import os |