Skip to content

Instantly share code, notes, and snippets.

@boost2017
boost2017 / add-upstream.md
Created July 19, 2018 08:56 — forked from sgnl/add-upstream.md
So you've forked a Repository and you want updates...

#tl;dr

setting up a branch to track a repo

pre: assuming you have forked a repo and cloned your fork to your computer

  1. git remote add [maintainer's name] [paste URL here]
  2. git fetch --all
  3. git branch --track [maintainer's name]_[branch] [remote name from step 1]/[branch you want to track] At this point you may watch to checkout to your newly create branch and issue a git pull command.
@boost2017
boost2017 / cookie_jar_golang
Created July 19, 2018 20:24 — forked from varver/cookie_jar_golang.go
Login to a website with this golang code using persistent cookies or cookie jar .
@boost2017
boost2017 / main.go
Created July 21, 2018 19:13 — forked from mschoebel/main.go
Snippet: login/logout (Golang)
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"net/http"
)
// cookie handling