Skip to content

Instantly share code, notes, and snippets.

Avatar
💩
Focusing

magick93

💩
Focusing
View GitHub Profile
@magick93
magick93 / OpenAPI
Created January 28, 2021 01:13
OpenAPI that caused error
View OpenAPI
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
View jhipster log
[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 / keybase.md
Last active September 13, 2019 08:23
View keybase.md

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:

@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
View 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
View gist:86fc28b8baa5994a98637832d22d460c
[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']}]
View okd-3.11-inventory
[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
@magick93
magick93 / CFX error
Created May 13, 2018 05:18
Trying to deploy in karaf
View CFX error
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 / device-information.yml
Created May 13, 2018 05:04
OpenShift template for Device Information
View device-information.yml
apiVersion: v1
kind: Template
metadata:
name: ${PROJECT_NAME}
objects:
- apiVersion: v1
kind: Project
metadata:
annotations:
openshift.io/description: ${PROJECT_DESCRIPTION}
@magick93
magick93 / remove swagger
Created May 13, 2018 01:29
Trying to solve previous CXF OSGi bug by removing dependencies, starting with swagger
View remove swagger
java.lang.IllegalArgumentException: Alias [/cxf] was never registered
at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:278)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:77)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.apache.cxf.transport.http.osgi.ServletExporter.updated(ServletExporter.java:54)[104:org.apache.cxf.cxf-rt-transports-http:3.1.5.redhat-630187]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(Configuration
View upgrading camel
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=jline-internal; type=karaf.feature; filter:="(&(osgi.identity=jline-internal)(type=karaf.feature))" -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly