Code Snippet

Just another Code Snippet site

Random Post :




Push the oracle alert.log and listener.log into Elasticsearch and analyze/visualize their content with Kibana – bdt’s blog

Introduction The oracle alert.log and listener.log contain useful information to provide answer to questions like: When did the Instance start? When has the Instance been shutdown? When did ORA- oc…

Source: Push the oracle alert.log and listener.log into Elasticsearch and analyze/visualize their content with Kibana – bdt’s blog

, , , , , , , ,

[ESX] How-To

Connect to ESX using SSH:
create folder & file :

/etc/ssh/keys-<ESX_USERNAME>/authorized_keys

Copy/Paste the public key of the remote used.


List all VMs:

vim-cmd vmsvc/getallvms

List all snapshot for a VM :

vim-cmd vmsvc/snapshot.get <VM_ID>

Restore a snapshot :

vim-cmd vmsvc/snapshot.revert <VM_ID> <SNAPSHOT_ID> 0

Jenkins & Docker

DOCKER & JENKINS: DATA THAT PERSISTS :
https://engineering.riotgames.com/news/docker-jenkins-data-persists

DevOps Continuous Delivery Pipeline with Docker, Jenkins, GitLab and Snap Creator :
https://blog.netapp.com/blogs/devops-continuous-delivery-pipeline-with-docker-jenkins-gitlab-and-snap-creator/

Migrate Jenkins to a Docker Service
https://mmorejon.github.io/en/blog/migrate-jenkins-to-a-docker-container/

https://github.com/bitnami/bitnami-docker-jenkins
https://github.com/vfarcic/jenkins-cm/blob/master/docker/docker-compose.yml

, ,

[Sonar] Retrieve metrics using API / URL

http://<SONAR_URL>/sonar/api/resources?metrics=<LIST_OF_METRICS>&resource=<PROJECT_ID>&includetrends=<TRUE|FALSE>

=> only 10 metrics per URL

Example:

http://<SONAR_URL>/sonar/api/resources?metrics=complexity,class_complexity,file_complexity,function_complexity,comment_lines_density,public_documented_api_density,public_documented_api_density,duplicated_lines_density&resource=<PROJECT_ID>&includetrends=true

Previous Posts Next posts