- Binary Builds
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app
- Turn off/on DC triggers to do a batch of changes without spam many deployments
#!/bin/sh | |
# cmcurl: curl shell wrapper to access Arris cable modems on Cox's network | |
# author: Jan-30-2021, xyntrix@bitz.org | |
# license: Apache License, Version 2.0 | |
# license-text: https://www.apache.org/licenses/LICENSE-2.0 | |
# intent: Cox Communications installed new firmware on my CPE without notice | |
# (as usual). This broke my automated modem status gathering. Wrote | |
# this simple shell script to process curl GETS to my cable modem |
#!/bin/sh | |
DT=`date +%s` | |
#NS="quay" | |
spec="all" | |
LOGLIMIT="3000" | |
if [ ! -z "${NS}" ]; then | |
NS="-n ${NS}" | |
else |
#!/bin/sh | |
if [ -z "${PYCMD}" ]; then | |
echo "# You can set the command to run like so:" | |
echo "# export PYCMD=\"python36 example.py\"" | |
echo | |
fi | |
# where to set up the file event watch, default: present dir and | |
# recursive |
#!/bin/sh | |
## How many seconds to wait for poll | |
POLLTIME=10 | |
## How many seconds to wait between polls | |
SLEEPTIME=3 | |
## Ignore invalid tls negotiation such as invalid/expired certs | |
INSECURE="-k" | |
if [ -z "${1}" ]; then |
#!/bin/bash | |
set -e | |
# Usage: | |
# rsync_parallel.sh [--parallel=N] [rsync args...] | |
# | |
# Options: | |
# --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
# | |
# Notes: |
#!/bin/sh | |
SRC="${1}" | |
DST="${2}" | |
shopt -s dotglob | |
SRCFILES=$(ls -d ${SRC}/*) | |
/usr/bin/rsync -rlAgoDvxHX --progress ${SRCFILES} ${DST} |
#!/usr/bin/env bash | |
# you can do things like this : | |
# % tz | |
# % tz 10h30 | |
# % tz 10h30 next week | |
# % tz 11:00 next thursday | |
# | |
# and so on, | |
# | |
# This needs gnu date, on MacOSX just install gnuutils from brew |
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app
deployConfig(..): | |
... | |
env: | |
- name: DB_USER | |
value: skeletonuser | |
envFrom: | |
- secretRef: | |
name: foosecrets | |
secret(..): |