Skip to content

Instantly share code, notes, and snippets.

View shoaibjdev's full-sized avatar

Shoaib R Khan shoaibjdev

View GitHub Profile
Create a new project
The last operation resulted in the following error:
Error 500 Server Error
HTTP ERROR 500
Problem accessing /api/forge/command/execute/project-new. Reason:
Server Error
Caused by:
[root@oshiftfab01 spring-boot-camel-xml-master]# mvn clean install -DskipTests -X
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T19:41:47+03:00)
Maven home: /home/skhan/dev_home/apache-maven-3.3.9
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: /home/skhan/dev_home/jdk1.8.0_111/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.10.0-327.el7.x86_64", arch: "amd64", family: "unix"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core
@shoaibjdev
shoaibjdev / pods-description
Created April 6, 2017 14:53
pod description
[shoaibjdev@srkplanet k8s]$ kubectl describe pod message-broker-2584397006-3z8z6
Name: message-broker-2584397006-3z8z6
Namespace: default
Node: minikube/192.168.99.100
Start Time: Wed, 05 Apr 2017 10:39:48 +0300
Labels: group=io.fabric8.ipaas.apps
pod-template-hash=2584397006
project=message-broker
provider=fabric8
version=2.2.168
$ node socketQueue.js --upstreamHost=10.180.90.29 --upstreamPort=12103 --listenPort=2014 --vv --logFile=log.txt --dangerous --listenHttpPort=9090
2017-06-27 15:04:57 - info: Important: starting...
2017-06-27 15:04:57 - info: Remote host configuration name: smartVista
2017-06-27 15:04:57 - info: Connecting to upstream server 10.180.90.29:12103
2017-06-27 15:04:57 - info: Relay raw ISO-8583 server is now running on port 2014
2017-06-27 15:04:57 - info: Relay HTTP server is now running on port 9090
2017-06-27 15:04:57 - info: Connected to upstream 10.180.90.29:12103!
2017-06-27 15:04:57 - info: Processing queue [pending 0 / total 0]
2017-06-27 15:04:57 - info: The queue is empty
2017-06-27 15:05:03 - info: Client ::ffff:10.137.160.59:52666 connected
node socketQueue.js --upstreamHost=localhost --upstreamPort=1337 --listenPort=2014 --vv --logFile=log.txt --dangerous
2017-06-30 16:35:17 - info: Important: starting...
2017-06-30 16:35:17 - info: Remote host configuration name: smartVista
2017-06-30 16:35:17 - info: Connecting to upstream server localhost:1337
2017-06-30 16:35:17 - info: Relay raw ISO-8583 server is now running on port 2014
2017-06-30 16:35:17 - info: Connected to upstream 127.0.0.1:1337!
2017-06-30 16:35:17 - info: Processing queue [pending 0 / total 0]
2017-06-30 16:35:17 - info: The queue is empty
2017-06-30 16:35:19 - info: Client ::1:52898 connected
2017-06-30 16:35:19 - info: Client ::1:52898 sent data (212b)
create VMs
git clone https://github.com/kubernetes-incubator/kargo.git
cd kargo
cp ~/inventory.cfg inventory/.
vi inventory.cfg
(copy IPs and save)
date
ansible-playbook -u centos -b -i inventory/inventory.cfg cluster.yml
date (show elapsed time)
[etcd]
10.42.10.206
[kube-master]
10.42.10.206
[kube-node]
10.42.10.221
10.42.10.223
@shoaibjdev
shoaibjdev / openssl.md
Created April 28, 2018 17:14 — forked from NoMan2000/openssl.md
Common OpenSSL Commands with Keys and Certificates

Common OpenSSL Commands with Keys and Certificates

SSL Info

Generate RSA private key with certificate in a single command

openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar

Generate Certificate Signing Request (CSR) from private key with passphrase

openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar

@shoaibjdev
shoaibjdev / bigdashboard_output.pdf
Created February 13, 2019 20:49 — forked from svet-b/bigdashboard_output.pdf
PDF export of Grafana dashboard using puppeteer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shoaibjdev
shoaibjdev / how-to-install-wkhtmltox-on-centos.md
Created March 6, 2019 11:37
How to install `wkhtmltopdf` & `wkhtmltoimage` on Centos

Install wkhtmltopdf & wkhtmltoimage

wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine.

  1. Get the latest version of the RPM directly from the homepage.
    wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
  2. Install RPM.