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; | |
} |
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
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
{ | |
"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
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
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
# fedora login | |
KRB5_TRACE=/dev/stdout kinit [email protected] | |
# 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
git clone git clone git://gerrit.libreoffice.org/core | |
cd core | |
./logerrit setup | |
./logerrit test | |
# alternatively | |
git review -s | |
# then.. | |
# commit hooks for Change-Id | |
./g -z |
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
$ git config --global user.name "John Doe" | |
$ git config --global user.email [email protected] |
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
%define build_timestamp %(date +"%Y%m%d%H%M%%S") | |
%define github_user LorbusChris | |
%define github_repo REPLACEME | |
%define github_branch master | |
Version: canary | |
Release: %{build_timestamp}%{?dist} | |
Source0: https://github.com/%{github_user}/%{github_repo}/archive/%{github_branch}.tar.gz |
OlderNewer