This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We've got some very simple function which triples provided argument | |
def triple(a: Int): Int = 3 * a | |
// It composes nicely | |
triple(24) // val res0: Int = 72 | |
triple(triple(24)) // val res1: Int = 216 | |
// --------------------------------------------------------------------------- | |
// We want to add a check to this function which won't allow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*nat | |
:PREROUTING ACCEPT [1:40] | |
:INPUT ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
:KUBE-SERVICES - [0:0] | |
-A PREROUTING -s 1.2.3.0/24 -j KUBE-SERVICES | |
-A PREROUTING -s 4.5.6.0/24 -j KUBE-SERVICES | |
-A PREROUTING -j RETURN | |
-A PREROUTING -m comment --comment "kubernetes service portals" -j KUBE-SERVICES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: alpine | |
before_script: | |
- env | sort | |
stages: | |
- testing | |
- deploying | |
test: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path=$1 | |
drive=$2 | |
name=/_tempfile_ | |
file=$path$name | |
echo Test file: $file | |
seq 1 1000 > $file | |
sync; sleep 2 |