Skip to content

Instantly share code, notes, and snippets.

View magick93's full-sized avatar
💩
Focusing

magick93

💩
Focusing
View GitHub Profile
@magick93
magick93 / CFX error
Created May 13, 2018 05:18
Trying to deploy in karaf
ERROR org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to start blueprint container for bundle section6.assessment.karaf2-cxf-rest/2.0.0.SNAPSHOT
org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor <name: serviceBeans, getter: null, setter: [class org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(interface java.util.List)]
at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:963)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:929)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:910)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:844)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.aries.blueprint.di.
@magick93
magick93 / docker-clean.sh
Created October 1, 2017 06:37 — forked from mugifly/docker-clean.sh
Cleanup Script for Docker Images and Containers
#!/bin/sh
echo -e "-- Removing exited containers --\n"
docker ps --all --quiet --filter="status=exited" | xargs --no-run-if-empty docker rm --volumes
echo -e "\n\n-- Removing untagged images --\n"
docker rmi --force $(docker images | awk '/^<none>/ { print $3 }')
echo -e "\n\n-- Removing volume directories --\n"
docker volume rm $(docker volume ls --quiet --filter="dangling=true")
[OSEv3:children]
masters
nodes
etcd
[masters]
xxx.xxx.xxx.xxx openshift_ip=xxx.xxx.xxx.xxx openshift_schedulable=true
[etcd]
xxx.xxx.xxx.xxx openshift_ip=xxx.xxx.xxx.xxx
[OSEv3:children]
masters
etcd
nodes
[masters]
mydomain.com openshift_ip=xxx.xxx.xxx.xxx openshift_schedulable=true
#openshift_node_groups=[{'name': 'node-config-master', 'labels': ['node-role.kubernetes.io/master=true']}, {'name': 'node-config-infra', 'labels': ['node-role.kubernetes.io/infra=true']}, {'name': 'node-config-compute', 'labels': ['node-role.kubernetes.io/compute=false']}]
@magick93
magick93 / Approve node certificates when bootstrapping
Created March 22, 2019 00:38
Unable to install okd 3.11 due to error with Approve node certificates when bootstrapping
Using module file /home/user/git/sourcetopia/openshift-install/openshift/ansible/roles/lib_openshift/library/oc_csr_approve.py
<k8s-ctl01.dev.mydomain.com> ESTABLISH SSH CONNECTION FOR USER: deploy
<k8s-ctl01.dev.mydomain.com> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<k8s-ctl01.dev.mydomain.com> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<k8s-ctl01.dev.mydomain.com> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=deploy)
<k8s-ctl01.dev.mydomain.com> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<k8s-ctl01.dev.mydomain.com> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/user/.ansible/cp/2ea0bd867d)
<k8s-ctl01.dev.mydomain.com> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=g
@magick93
magick93 / keybase.md
Last active September 13, 2019 08:23

Keybase proof

I hereby claim:

  • I am magick93 on github.
  • I am magick93 (https://keybase.io/magick93) on keybase.
  • I have a public key ASC6lz4yIkL55VRZPNz32r2_t-ZN7qe4CXFl95qz-JVN-Ao

To claim this, I am signing this object:

[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.sample.myapp:sample >-----------------------
[INFO] Building Sample 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:2.2.5.RELEASE:run (default-cli) > test-compile @ sample >>>
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:copy-resources (default-resources) @ sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
@magick93
magick93 / OpenAPI
Created January 28, 2021 01:13
OpenAPI that caused error
openapi: 3.0.0
info:
title: NZDAX
version: 2.4.0
contact:
name: Adroit
url: 'https://adroit.ph/ccxt-rest-contact-us/'
email: hello@adroit.ph
license:
name: MIT
@magick93
magick93 / PublicationType.json.cue
Created March 21, 2023 07:11
Cue from dereferenced json
version: "4.3.0"
title: "PublicationType"
description: "Basic type that contains all properties common to publication, which could be print or electronic."
type: "object"
properties: {
id: {
name: "id"
description: "An identifier of the publication."
$schema: "http://json-schema.org/draft-04/schema#"
version: "4.3.0"
{
"version": "4.3.0",
"title": "PublicationType",
"description": "Basic type that contains all properties common to publication, which could be print or electronic.",
"type": "object",
"properties": {
"id": {
"description": "An identifier of the publication.",
"$schema": "http://json-schema.org/draft-04/schema#",
"version": "4.3.0",