Skip to content

Instantly share code, notes, and snippets.

Mark and Recall

Description

This is quick pair of functions inspired by the "Elderscrolls III: Morrowind" traveling spells.

Objectives

Allow the user to mark and quickly return to an arbitrary location (i.e. file path) by typing a keyword.

Expected Outcomes

@sickcodes
sickcodes / tasks.yml
Created May 26, 2021 09:50 — forked from lrvick/tasks.yml
Mac Ansible management example
---
- name: Check if Previously Run
stat:
path: /var/log/ansible.log
register: ansible_logfile
- name: Enable FileVault2
filevault: enabled=true
become_user: root
@lrvick
lrvick / tasks.yml
Created May 18, 2021 22:40
Mac Ansible management example
---
- name: Check if Previously Run
stat:
path: /var/log/ansible.log
register: ansible_logfile
- name: Enable FileVault2
filevault: enabled=true
become_user: root
@noseka1
noseka1 / JSONPath in kubectl CLI.md
Last active May 7, 2024 15:35
JSONPath in kubectl CLI examples

Examples

$ 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}'
@lucaguada
lucaguada / RASPBERRY_PI_4.md
Last active April 4, 2024 07:19
Steps to fully install Ubuntu Server and MiniKube on Raspberry Pi 4 (wip)

How to install Ubuntu Server and Minikube on Raspberry Pi 4 4GB+ (recommended)

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 Raspberry Pi Imager

Download and install Raspberry Imager: https://www.raspberrypi.org/software/

@berkant
berkant / cloud-init.cfg
Last active April 26, 2024 17:58
Cloud-init config to set up my Ubuntu dev machine.
## 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
@nirbhabbarat
nirbhabbarat / gitlab-on-minikube-helm3.md
Last active May 21, 2024 19:01
setup gitlab on minikube using helm3

Setup gitlab on minikube using helm3

Start minikube with virtualbox driver

minikube start \
  --driver=virtualbox \
  --cpus 4 \
  --memory 8192

Recomended: 8 CPU and 30 GB RAM (for demo we are going to use minimal setup)

@trisberg
trisberg / local-registry.md
Last active June 24, 2024 19:34
Using a Local Registry with Minikube

Using a Local Registry with Minikube

Install a local Registry

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.

  1. Use the docker CLI to run the registry:2 container from Docker, listening on port 5000, and persisting images in the ~/.registry/storage directory.
@jamesrcounts
jamesrcounts / Dockerfile
Last active December 19, 2023 11:04
Snippets to illustrate container pipelines in Azure DevOps
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine
RUN apk update && apk upgrade --no-cache
WORKDIR /app
COPY ./dist .
ENTRYPOINT ["dotnet", "parrot.dll"]
@nrocco
nrocco / README.md
Last active December 15, 2023 00:41
Alpine Playground with libvirt

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