- MacBook Aluminium Late 2008
This file contains hidden or 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
| #!/bin/sh | |
| SRC=/usr/src | |
| NGINX_VERSION=1.8.0 # http://nginx.org/en/download.html | |
| NPS_VERSION=1.9.32.6 # https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi |
This file contains hidden or 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
| #!/bin/bash | |
| export AnException=100 | |
| export AnotherException=101 | |
| # start with a try | |
| try | |
| ( # open a subshell !!! | |
| echo "do something" | |
| [ someErrorCondition ] && throw $AnException |
Make a directory, like ~/.h2, and put the following files in it.
~/.h2/lib/h2-*.jar: Get the latest h2-*.jar file from http://www.h2database.com/.~/.h2/bin/h2-server: org.h2.tools.Server~/.h2/bin/h2-shell: org.h2.tools.Shell~/.h2/db/: H2 data files*.mv.db
You may add the path ~/.h2/bin to your env $PATH.
Make a directory, like ~/.h2, and put the following files in it.
~/.h2/lib/h2-*.jar: Get the latest h2-*.jar file from http://www.h2database.com/.~/.h2/bin/h2-server: org.h2.tools.Server~/.h2/bin/h2-shell: org.h2.tools.Shell~/.h2/db/: H2 data files*.mv.db
You may add the path ~/.h2/bin to your env $PATH.
This file contains hidden or 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
| version: '3.3' | |
| services: | |
| keycloak: | |
| image: jboss/keycloak-mysql | |
| environment: | |
| - constraint:serverclass==gateway | |
| - PROXY_ADDRESS_FORWARDING=true | |
| - MYSQL_USER=keycloak |
This file contains hidden or 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
| mkdir Tower | |
| cd Tower/ | |
| git clone https://github.com/ansible/awx.git | |
| cd awx | |
| cd installer/ | |
| #vi inventory | |
| -# openshift_host=127.0.0.1:8443 | |
| -# awx_openshift_project=awx | |
| -# openshift_user=developer |
This file contains hidden or 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":"ImageStream", | |
| "apiVersion":"v1", | |
| "metadata":{ | |
| "name":"redhat-openjdk18-openshift" | |
| }, | |
| "spec":{ | |
| "dockerImageRepository":"registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift", | |
| "tags":[ | |
| { |
This file contains hidden or 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
| #!/usr/bin/env python3.4 | |
| """ | |
| simple server usage monitoring, writing json to stdout. depends on | |
| psutil and python3.4, but should work with any python version with | |
| minor modifications. | |
| to add usage to your log: $ nohup python3.4 usage.py 3 >> /var/log/your_normal_app_log.log & |