# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")
References:
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")
References:
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
mgo.SetDebug(true) | |
var aLogger *log.Logger | |
aLogger = log.New(os.Stderr, "", log.LstdFlags) | |
mgo.SetLogger(aLogger) |
type Post struct { | |
// db tag lets you specify the column name if it differs from the struct field | |
Id int64 `db:"post_id"` | |
Created int64 | |
Title string `form:"Title" binding:"required"` | |
Body string `form:"Body"` | |
UserId int64 `form:"UserId"` | |
Url string | |
} |
func (term *Term) Encode(version string) []byte { | |
builder := flatbuffers.NewBuilder(0) | |
// Preprocess the shotguns | |
shotguns := make([]flatbuffers.UOffsetT, len(term.Shotgun)) | |
shotgunStrs := make([]flatbuffers.UOffsetT, len(term.Shotgun)) | |
for i := 0; i < len(term.Shotgun); i++ { | |
shotgunStrs[i] = builder.CreateString(term.Shotgun[i].Term) | |
} | |
for i := 0; i < len(term.Shotgun); i++ { |
// automatically generated, do not modify | |
package encoder | |
import ( | |
flatbuffers "github.com/google/flatbuffers/go" | |
) | |
type Container struct { | |
_tab flatbuffers.Table | |
} |