Skip to content

Instantly share code, notes, and snippets.

View dean-su's full-sized avatar

Dean Su dean-su

  • Bakersfield, California
View GitHub Profile
@dean-su
dean-su / curl.md
Created January 19, 2018 07:46 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@dean-su
dean-su / main.go
Created January 8, 2018 10:12 — forked from creack/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"
@dean-su
dean-su / main.go
Created January 7, 2018 23:31 — 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"