Skip to content

Instantly share code, notes, and snippets.

View connectkushal's full-sized avatar
🎵

Kushal Billaiya connectkushal

🎵
View GitHub Profile
// Example of minimal DHCP server:
package main
import (
dhcp "github.com/krolaw/dhcp4"
"math/rand"
"net"
"time"
)
@connectkushal
connectkushal / shell_output.go
Created July 8, 2021 08:07 — forked from hivefans/shell_output.go
get the realtime output for a shell command in golang|-|{"files":{"shell_output.go":{"env":"plain"}},"tag":"bigdata"}
package main
import (
"bufio"
"fmt"
"io"
"os"
"os/exec"
"strings"
)
test 123 alskdfjlasjdf