(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/bash | |
| set -eo pipefail | |
| json=`cat $1 | y2j` | |
| overrides=`echo "$json" | jq "{spec}"` | |
| name=`echo "$json" | jq -r ".metadata.name"` | |
| labels=`echo "$json" | jq -r '.metadata.labels | keys[] as $k | "\($k)=\(.[$k])"' | paste -sd "," -` | |
| image=`echo "$json" | jq -r ".spec.containers[0].image"` |
| #!/bin/sh -e | |
| # | |
| # NOTE: Since Docker 1.10 (February 4, 2016), it has been possible to configure the | |
| # Docker daemon using a JSON config file. On Linux, this file is normally located at | |
| # /etc/docker/daemon.json. You should use this JSON config method if you are running | |
| # a version of Docker that is at least 1.10! | |
| # Here is an example configuration that sets the docker0 bridge IP to 192.168.254.1/24: | |
| # { | |
| # "bip": "192.168.254.1/24" | |
| # } |
| package bar.foo.lenses; | |
| import java.util.function.BiFunction; | |
| import java.util.function.Function; | |
| public class Lens<A, B> { | |
| private final Function<A, B> getter; | |
| private final BiFunction<A, B, A> setter; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.