This gist has moved to the faasd repo
https://github.com/openfaas/faasd/blob/master/docs/MULTIPASS.md
This gist has moved to the faasd repo
https://github.com/openfaas/faasd/blob/master/docs/MULTIPASS.md
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
) | |
func work() error { | |
for i := 0; i < 1000; i++ { |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
# npm using https for git | |
git config --global url."https://github.com/".insteadOf [email protected]: | |
git config --global url."https://".insteadOf git:// | |
# npm using git for https | |
git config --global url."[email protected]:".insteadOf https://github.com/ | |
git config --global url."git://".insteadOf https:// |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |
name: "SameServerEntity Example" | |
location: localhost | |
services: | |
- type: org.apache.brooklyn.entity.software.base.SameServerEntity | |
id: parent | |
name: Parent Entity | |
children.startable.mode: background_late | |
brooklyn.children: | |
- serviceType: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess |
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }