Skip to content

Instantly share code, notes, and snippets.

@AzgadAGZ
AzgadAGZ / bash
Created March 27, 2025 23:08
Get all nodes as "pre-csv" for Topology Aware routing and balancing
k get nodes -L topology.kubernetes.io/zone -o json | jq -r '(.items[] | [.metadata.name, .metadata.labels."topology.kubernetes.io/zone"]) | @csv'
@@||adguard.local^
@@||homelab.local^
@AzgadAGZ
AzgadAGZ / private_fork.md
Created October 12, 2021 21:23 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@AzgadAGZ
AzgadAGZ / gist:79bd2ae2defac05629ae71f25ec8cb12
Created February 14, 2021 08:23 — forked from stevenwaskey/gist:3d7f0136051b437286608d6b8e2c87f2
Install the AWS CLI Without Sudo (Linux, OS X, or Unix)
Install the AWS CLI Without Sudo (Linux, OS X, or Unix)
Amazon: [Installing the AWS Command Line Tool](http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-bundle-other-os)
If you don't have sudo permissions or want to install the AWS CLI only for the current user, you can use a modified version of the above commands:
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ ./awscli-bundle/install -b ~/bin/aws