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
# fedora login | |
KRB5_TRACE=/dev/stdout kinit lorbus@FEDORAPROJECT.ORG | |
# rpm build procedure | |
rpmlint coturn.spec | |
rpmbuild --nodeps -bs coturn.spec | |
koji build --scratch f27 /home/chris/rpmbuild/SRPMS/coturn-4.5.0.6-1.fc26.src.rpm |
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
apiVersion: v1 | |
kind: Template | |
metadata: | |
name: cluster-acme-controller | |
parameters: | |
- description: ACME Endpoint URL | |
name: OPENSHIFT_ACME_ACMEURL | |
value: https://acme-staging.api.letsencrypt.org/directory | |
- description: Controller loglevel | |
name: OPENSHIFT_ACME_LOGLEVEL |
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
--- | |
kind: Template | |
apiVersion: v1 | |
metadata: | |
name: freeipa-server | |
labels: | |
app: "${IPA_SERVER_SERVICE}" | |
annotations: | |
openshift.io/display-name: FreeIPA Server | |
description: FreeIPA Server |
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
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
# log out & back in | |
docker login docker.io | |
docker build . -t docker.io/lorbus/container-name | |
docker push docker.io/lorbus/container-name | |
# Delete all containers |
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
apiVersion: v1 | |
kind: Template | |
metadata: | |
name: namespaced-acme-controller | |
parameters: | |
- description: ACME Endpoint URL | |
name: OPENSHIFT_ACME_ACMEURL | |
value: https://acme-staging.api.letsencrypt.org/directory | |
- description: Controller loglevel | |
name: OPENSHIFT_ACME_LOGLEVEL |
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
{ | |
"kind": "Template", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "freeipa-server", | |
"labels": { | |
"app": "${IPA_SERVER_SERVICE}" | |
}, | |
"annotations": { | |
"openshift.io/display-name": "FreeIPA Server", |
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
function doWork () { | |
var timer = new Date (); | |
// do n cyles of work here | |
timer = new Date () - timer; // time spent working | |
setTimeout (doWork, timer); // wait an equivalent time for 50% processor load | |
} |
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
oc exec <pod> [-c <container>] <command> [<arg_1> ... <arg_n>] |
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
int doubler(int x) { | |
return 2 * x; | |
} |
NewerOlder