Skip to content

Instantly share code, notes, and snippets.

View leoslamas's full-sized avatar

Leo Lamas leoslamas

View GitHub Profile
@leoslamas
leoslamas / install-docker.md
Created July 12, 2023 19:24 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@leoslamas
leoslamas / .gitconfig
Last active August 20, 2022 07:16
git lg alias
[color]
ui = true
[color "branch"]
current = green
local = cyan
remote = yellow
[alias]
visual = !gitk &
@leoslamas
leoslamas / udp_client.go
Created October 13, 2020 15:20 — forked from reterVision/udp_client.go
A dummy UDP hole punching sample in Go
package main
import (
"encoding/json"
"fmt"
"log"
"net"
"os"
"time"
)