Skip to content

Instantly share code, notes, and snippets.

@JalfResi
JalfResi / create-usb.sh
Created March 1, 2021 08:34 — forked from bmatcuk/create-usb.sh
Creating a Bootable Windows USB from ISO on a Mac
# First, we need to find our device. BEFORE inserting your USB drive, run the
# following:
diskutil list
# This will output a bunch of info about all of the disk drives connected to
# your Mac. Each entry will have a header in the form "/dev/diskX", where X is
# some number starting at 0. Now, insert your USB drive and run the command
# again. You should see a new entry. Make note of the name (ie, /dev/diskX).
diskutil list
package httpclient
import (
"net"
"net/http"
"time"
)
type Config struct {
ConnectTimeout time.Duration
@JalfResi
JalfResi / gotour-69.go
Last active December 10, 2015 00:39 — forked from kylelemons/gotour-69.go
package main
import (
"os"
"fmt"
"runtime"
)
type Fetcher interface {
// Fetch returns the body of URL and