Skip to content

Instantly share code, notes, and snippets.

View daachi's full-sized avatar

Anthony Johnston daachi

  • Charlottesville, VA
  • 09:40 (UTC -04:00)
View GitHub Profile
@so0k
so0k / kubectl.md
Last active April 25, 2024 12:40
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@junqueira
junqueira / postgres.md
Created December 28, 2017 23:06 — forked from simondobner/postgres.md
Postgres notes

Database commands in psql

Connect to psql as a non postgres user $ psql -d testdbname - when the os user exists in the db and trusted authentication is enabled.

# create database db2; - create a database
# drop database db2; - drop a database
# \c[onnect] db2 - connect to a database
# \l[ist] - list all databases
# \l+ - list all databases with extra details, including size

@mx00s
mx00s / install.sh
Last active May 30, 2024 18:45
NixOS install script based on @grahamc's "Erase Your Darlings" blog post
#!/usr/bin/env bash
#
# NixOS install script synthesized from:
#
# - Erase Your Darlings (https://grahamc.com/blog/erase-your-darlings)
# - ZFS Datasets for NixOS (https://grahamc.com/blog/nixos-on-zfs)
# - NixOS Manual (https://nixos.org/nixos/manual/)
#
# It expects the name of the block device (e.g. 'sda') to partition
module {
name: "neuron-autoindex",
version: "0.1.0",
description: "generate hierarchical indices for neuron notes",
authors: ["Maddison Hellstrom <maddy@na.ai>"],
license: "GPL-3",
};
def invert_tags:
.