Skip to content

Instantly share code, notes, and snippets.

A simple Docker and Docker Compose install script for Ubuntu

Usage

  1. sh install-docker.sh
  2. log out
  3. log back in

Links

@IamNator
IamNator / main.go
Created July 3, 2021 06:14 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@IamNator
IamNator / buyandsell.go
Created July 1, 2021 11:38 — forked from ogaere/buyandsell.go
Tell me what is wrong with this of code
type Cement struct {
NoOfCement int
}
func (c *Cement) BuyCement(howmany int) {
c.NoOfCement += howmany
}
func (c *Cement) SellCement(howmany int) {
o.NoOfCement -= howmany