Skip to content

Instantly share code, notes, and snippets.

View rhuss's full-sized avatar

Roland Huß rhuss

View GitHub Profile
@rhuss
rhuss / migrate_influx_db.pl
Last active January 5, 2021 20:18
Migration script for migration from a very old InfluxDB installation to a recent version (e.g. 0.7.0 to 1.8.3)
use InfluxDB;
use Data::Dumper;
use REST::Client;
use strict;
# Script for migrating data from an outdated InfluxDB to one of the
# latsest version.
# Developed for migrating from an InfluxDB 0.7.0 to a 1.8.3 version in one go
# ------------------------------------------------------------------------
@rhuss
rhuss / Dockerfile
Last active June 22, 2020 21:33
Restic + Rclone for ARM
FROM golang:1.13.10-buster AS builder
ARG VERSION_RESTIC=v0.9.6
ARG VERSION_RCLONE=v1.51.0
WORKDIR /opt
RUN apt-get update \
&& apt-get install -y \
git \
@rhuss
rhuss / knative-setup.sh
Created March 8, 2020 09:08
Knative Setup Script
#!/usr/bin/env bash
set -e
# Turn colors in this script off by setting the NO_COLOR variable in your
# environment to any value:
#
# $ NO_COLOR=1 test.sh
NO_COLOR=${NO_COLOR:-""}
if [ -z "$NO_COLOR" ]; then
#!/usr/bin/env bash
set -e
# Turn colors in this script off by setting the NO_COLOR variable in your
# environment to any value:
#
# $ NO_COLOR=1 test.sh
NO_COLOR=${NO_COLOR:-""}
if [ -z "$NO_COLOR" ]; then
@rhuss
rhuss / console.md
Created April 5, 2019 21:46
CRDs with multiple version on OpenShift
$ kubectl get crd | grep crontab
crontabs.example.com                                                     2019-04-05T21:33:36Z

$ kubectl get crontab
NAME      AGE
new-tab   6m
old-tab   5m

$ kubectl get crontab old-tab -o yaml
Receiving source from STDIN as archive ...
Pulling image "docker-registry.default.svc:5000/fuse-ignite/fuse-ignite-s2i@sha256:3c9f66a53c5e2651d77bffec13ad61619a50ede99c74ba690f243568c9faef95" ...
Preparing to build proj242508/i-db2db-1:69a82d11
Copying sources from "/tmp/s2i-build157931650/upload/src" to "/tmp/s2i-build157931650/upload/src"
Clean build will be performed
Running "assemble" in "proj242508/i-db2db-1:69a82d11"
==================================================================
Starting S2I Java Build .....
S2I source build for Maven detected
Using MAVEN_OPTS '-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx310m'
Starting the Java application using /opt/run-java/run-java.sh ...
exec java -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/etc/jolokia.properties -cp . -jar /deployments/fabric8-maven-sample-custom-enricher-app-3.3-SNAPSHOT.jar
2017-04-11 10:21:03
Full thread dump OpenJDK 64-Bit Server VM (25.111-b15 mixed mode):
"server-timer" #6 daemon prio=5 os_prio=0 tid=0x00007f2ae020c000 nid=0x68 in Object.wait() [0x00007f2ac07c6000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000eb1eac68> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:552)
minishift destroy
sudo rm -rf ~/.minishift
brew uninstall xhyve
brew install --force -HEAD xhyve
brew update docker-machine
brew link --overwrite docker-machine
brew unlink docker-machine-driver-xhyve
brew install docker-machine-driver-xhyve
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
apiVersion: v1
kind: ImageStream
metadata:
name: cdi-camel