Skip to content

Instantly share code, notes, and snippets.

View virtualex-itv's full-sized avatar
:electron:
"I drink and I know things" ~Tyrian Lanister

Alex López virtualex-itv

:electron:
"I drink and I know things" ~Tyrian Lanister
View GitHub Profile
@virtualex-itv
virtualex-itv / install_docker_in_ubuntu_20-04+.sh
Last active February 6, 2023 21:47 — forked from pablodz/install_docker_in_ubuntu_21-10.sh
Install Docker in Ubuntu 20.04+, Install Docker-Compose on Ubuntu 20.04+
#!/bin/bash
# Copyright (c) Alex Lopez 2023
# All rights reserved
# vim: tabstop=4 shiftwidth=4
# [OPTIONAL] Uninstall old docker versions
sudo apt-get remove docker docker-engine docker.io containerd runc
# Refresh latest version
sudo apt-get update
Function prompt {
# https://github.com/dahlbyk/posh-git/wiki/Customizing-Your-PowerShell-Prompt
$realLASTEXITCODE = $LASTEXITCODE
Write-Host
If ($PSVersionTable.PSEdition -eq 'Core') {
Write-Host '(Core) ' -NoNewLine
}
Write-Host "[" -NoNewLine