Tivoli Scratch
Tags : Scratch
Created 24/11-2015 by Michael Bornholdt Nielsen
Script to uninstall java-1.7.0-openjdk

#!/bin/bash
#title                 :uninstall-java.sh
#description   :The script to uninstall java-1.7.0-openjdk from CentOs 7 (Gnome Desktop)
#author            :Michael Bornholdt Nielsen
#date               :20151013
#usage           :/bin/bash uninstall-java.sh

rpm -e unoconv-0.6-7.el7

rpm -e libreoffice-calc
libreoffice-core
libreoffice-draw
libreoffice-graphicfilter
libreoffice-impress
libreoffice-langpack-en
libreoffice-opensymbol-fonts
libreoffice-pdfimport
libreoffice-pyuno
libreoffice-ure
libreoffice-writer

rpm -e jline-1.0-8.el7
rhino-1.7R4-5.el7
icedtea-web-1.5.2-0.el7

rpm -e java-1.7.0-openjdk java-1.7.0-openjdk-headless
 

Tags : Java
Created 13/10-2015 by Michael Bornholdt Nielsen
Managing JBoss/WildFly

Managing JBossAS7 with HTTP-JSON APIs using wget

Get messaging-activemq resource:
http://localhost:9990/management/subsystem/messaging-activemq/server/default/:read-resource
http://localhost:9990/management/subsystem/messaging-activemq/server/default?operation=resource&recursive&json.pretty

Tags : WildFly
Created 07/10-2015 by Michael Bornholdt Nielsen
Java Code Coverage

Getting Started with Code Coverage by Jacoco

<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <version>0.7.5.201505241946</version>
  <executions>
  <execution>
      <goals>
        <goal>prepare-agent</goal>
      </goals>
    </execution>
    <execution>
      <id>report</id>
      <phase>prepare-package</phase>
      <goals>
        <goal>report</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Tags : Java Jacoco
Created 15/09-2015 by Michael Bornholdt Nielsen
Apache Lucene
Tags : Lucene
Created 01/09-2015 by Michael Bornholdt Nielsen
Search with Apache Lucene
Tags : Java Lucene
Created 06/08-2014 by Michael Bornholdt Nielsen
Updated 01/09-2015 by Michael Bornholdt Nielsen
Curl and pretty json

Prints header and json as one long string

curl -u <username>:<password> -i -H "Accept: application/json" http://localhost:28080/dff/resources/meddelelser/tds2/a3c2c038-7b70-4059-8721-389831736089

Prints no header but json in pretty format

curl -u <username>:<password> -H "Accept: application/json" http://localhost:28080/dff/resources/meddelelser/tds2/a3c2c038-7b70-4059-8721-389831736089 | python -m json.tool

Tags : Curl
Created 28/04-2015 by Michael Bornholdt Nielsen
Java and Nashorn
Tags : Java Nashorn
Created 26/03-2015 by Michael Bornholdt Nielsen
first page - previous page - next page
About
This site is used as a place to dump my ideas, links and other stuff I normaly forget.

Made by Michael Bornholdt Nielsen => Jarry.dk