Skip to content

Instantly share code, notes, and snippets.

View iambudi's full-sized avatar

Budi iambudi

  • Indonesia
View GitHub Profile
@iambudi
iambudi / logging.go
Created December 2, 2022 11:29 — forked from panta/logging.go
zerolog with file log rotation (lumberjack) and console output
package logging
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"gopkg.in/natefinch/lumberjack.v2"
"os"
"path"
"io"
)
@iambudi
iambudi / gist:a29be7123dfd50439c98f71a07e4e7dc
Created April 9, 2022 05:30 — forked from anikitenko/gist:b41206a49727b83a530142c76b1cb82d
[Golang] Convert size in bytes to Bytes, Kilobytes, Megabytes, GB and TB
package main
import (
"fmt"
"math"
"strconv"
)
var (
sizeInMB float64 = 999 // This is in megabytes
@iambudi
iambudi / Hadoop_install_osx.md
Last active April 7, 2024 12:23 — forked from viecode09/Hadoop_install_osx.md
This is how to install hadoop on Mac OS

STEP 1: First Install HomeBrew, download it from http://brew.sh

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

STEP 2: Install Hadoop

$ brew search hadoop
$ brew install hadoop