Skip to content

Instantly share code, notes, and snippets.

@benton
benton / dualboot.md
Last active Jun 5, 2018
Dual-booting Ubuntu 13 on a MacBook Pro
View dualboot.md

Dual-booting Ubuntu alongside OS X on your MacBook Pro

dual_boot!

Why do this?

  1. To run a broader array of software than with OS X alone.
  2. To run faster, by more fully exploiting the hardware, and by running with a smaller memory footprint.
  3. To more fully customize the user interface.
@campoy
campoy / letitfail.go
Last active Sep 19, 2019
This example shows how to have a set of goroutines running concurrently and processing requests. Panics from goroutines are recovered and the worker is restarted. You can download it and run it directly using `go run letitfail.go`
View letitfail.go
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3
View online_upgrade.go
package main
import (
"bytes"
"encoding/gob"
"fmt"
"net"
"os"
"os/exec"
"os/signal"
You can’t perform that action at this time.