Skip to content

Instantly share code, notes, and snippets.

Avatar

Roland Huß rhuss

View GitHub Profile
@rhuss
rhuss / migrate_influx_db.pl
Last active Jan 5, 2021
Migration script for migration from a very old InfluxDB installation to a recent version (e.g. 0.7.0 to 1.8.3)
View migrate_influx_db.pl
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 Jun 22, 2020
Restic + Rclone for ARM
View Dockerfile
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 Mar 8, 2020
Knative Setup Script
View knative-setup.sh
#!/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
View gist:bf1daf2a38c78d53e0a6b3ddd02f5a48
#!/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 Apr 5, 2019
CRDs with multiple version on OpenShift
View console.md
$ 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
View gist:7522b8ca5b17f6f0d15e972a5edfc7ff
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'
View stacktrace jolokia
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)
View gist:035f955dec3828e696112eb640be4ab4
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
View is.yml
apiVersion: v1
kind: ImageStream
metadata:
name: cdi-camel