Skip to content

Instantly share code, notes, and snippets.

View xyntrix's full-sized avatar
:shipit:

Mike xyntrix

:shipit:
  • Red Hat
  • USA
View GitHub Profile
@xyntrix
xyntrix / rsync_parallel.sh
Created June 14, 2018 20:46 — forked from rcoup/rsync_parallel.sh
Parallel-ise an rsync transfer when you want multiple concurrent transfers happening,
#!/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:
@xyntrix
xyntrix / tz.sh
Created April 6, 2018 21:37 — forked from chmouel/tz.sh
#!/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
@xyntrix
xyntrix / openshift-cheatsheet.md
Created January 23, 2018 08:24 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet
  • 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