Like a Promise, await will call any .then() function on its operand. This can be used to create values that change every time they are awaited.
let lastId = 1;
const id = {
then(fn, errfn) {
fn(lastId++);
}| ## OpenShift4 pull-secret: | |
| 1. Download your pull-secret from [console.redhat.com](https://console.redhat.com/openshift/install/aws/installer-provisioned) | |
| - click on “Download Pull Secret”. Save it somewhere, e.g. ~/some-dir/pull-secret | |
| 2. Add the apps.ci auth to pull-secret! _internal OpenShift developers only_ | |
| - Obtain an API token by visiting https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request | |
| copy the oc login cmd and paste in terminal to login to the ci cluster, then run this: | |
| - `$ oc registry login --to ~/some-dir/pull-secret` | |
| This will append the auth from registry.ci.openshift.org to your cloud.openshift.com pull-secret but it will also | |
| make the pull-secret multi-line. |
| #!/usr/bin/bash | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| # GNU General Public License for more details. |
This is a CFP for ReactiveConf 2017's open call for Lightning talks. If you'd like to see this talk become a reality, please ⭐ star this gist. #ReactiveConf
| int doubler(int x) { | |
| return 2 * x; | |
| } |
Join the room #freenode_<#channel>:matrix.org, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room #freenode_#prometheus:matrix.org on matrix.org.
In vector.im, rooms can be joined with the directory symbol on the bottom left.