Skip to content

Instantly share code, notes, and snippets.

@joedborg
joedborg / launch_vm.sh
Last active April 25, 2024 15:46
LXD Ubuntu VM launch and disk resize
#!/bin/env bash
set -e
readonly VM="banana"
readonly CPU="8"
readonly MEM="8GB"
readonly DSK="120GB"
lxc init images:ubuntu/focal ${VM} -p default -p vm --vm
@ShvaykaD
ShvaykaD / upgrade-postgresql-service-ubuntu.md
Last active July 3, 2023 22:17 — forked from delameko/upgrade-postgres-9.5-to-9.6.md
Upgrading PostgreSQL service from 9.x or 10.x to 11 version on Ubuntu server

TL;DR

Create a backup:

sudo -Hiu postgres pg_dumpall > mybackup.sql

Install Postgres 11, and then: