This is quick pair of functions inspired by the "Elderscrolls III: Morrowind" traveling spells.
Allow the user to mark and quickly return to an arbitrary location (i.e. file path) by typing a keyword.
| --- | |
| - name: Check if Previously Run | |
| stat: | |
| path: /var/log/ansible.log | |
| register: ansible_logfile | |
| - name: Enable FileVault2 | |
| filevault: enabled=true | |
| become_user: root |
| --- | |
| - name: Check if Previously Run | |
| stat: | |
| path: /var/log/ansible.log | |
| register: ansible_logfile | |
| - name: Enable FileVault2 | |
| filevault: enabled=true | |
| become_user: root |
$ kubectl get pods -o json
$ kubectl get pods -o jsonpath='{@}'
$ kubectl get pods -o jsonpath='{.items[0]}'
$ kubectl get pods -o jsonpath='{.items[0].metadata.name}'
$ kubectl get pods -o jsonpath="{.items[*]['metadata.name', 'status.capacity']}"
$ kubectl get pods -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.startTime}{"\n"}{end}'
$ kubectl get pods -o jsonpath='{.items[*].status.podIP}'
Disclaimer: this step-by-step GIST has been created with no guarantees, I may have missed some steps because of distraction or chiptune improvised on-chair-dancing, so be patient and let me know if I must add or fix something.
This is the way for living long and prospering!
Download and install Raspberry Imager: https://www.raspberrypi.org/software/
| ## template: jinja | |
| #cloud-config | |
| {% if v1.distro_release == 'focal' %} | |
| users: | |
| - name: berkant | |
| shell: /usr/bin/bash | |
| ssh_import_id: gh:berkant | |
| sudo: ALL=(ALL:ALL) NOPASSWD:ALL |
These instructions include running a local registry accessible from Kubernetes as well as from the
host development machine at registry.dev.svc.cluster.local:5000.
registry:2 container from Docker, listening on port 5000, and persisting images in the ~/.registry/storage directory.
| FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine | |
| RUN apk update && apk upgrade --no-cache | |
| WORKDIR /app | |
| COPY ./dist . | |
| ENTRYPOINT ["dotnet", "parrot.dll"] |
First download alpine-make-vm-image from https://github.com/alpinelinux/alpine-make-vm-image
wget https://raw.githubusercontent.com/alpinelinux/alpine-make-vm-image/v0.4.0/alpine-make-vm-image \
&& echo '5fb3270e0d665e51b908e1755b40e9c9156917c0 alpine-make-vm-image' | sha1sum -c \
|| exit 1
mv alpine-make-vm-image /usr/local/bin/
chmod +x /usr/local/bin/alpine-make-vm-image
Create a new alpine qcow2 image