Skip to content

Instantly share code, notes, and snippets.

@nhojpatrick
nhojpatrick / pom.xml
Last active March 20, 2022 11:04
Maven Surefire and JUnit v5
<?xml version="1.0" encoding="UTF-8"?>
<project ...
...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
@nhojpatrick
nhojpatrick / jenkins_listView.groovy
Created February 21, 2021 14:14
Jenkins create listView with CodeCoverage and Regex pattern
listView('release job view') {
recurse()
jobs {
regex('.*_release')
}
columns {
status()
weather()
buildButton()
name()
@nhojpatrick
nhojpatrick / install_jenkins_plugin.sh
Last active February 21, 2021 14:09 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
@nhojpatrick
nhojpatrick / Vagrantfile
Last active February 16, 2021 23:30
MacOS Vagrant VirtualBox centos/7 2020/11/23
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vb|
vb.gui = false
vb.customize ["modifyvm", :id, "--memory", "384"]
vb.customize ["modifyvm", :id, "--audio", "none"]
end
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
public class Example {
public static void main(final String[] args)
throws Exception {
$ cat file1
a d
$ java -jar tika-app-1.24.jar file1
Sep 04, 2020 7:37:28 PM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
WARNING: J2KImageReader not loaded. JPEG2000 files will not be processed.
See https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io
for optional dependencies.
Sep 04, 2020 7:37:28 PM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
WARNING: org.xerial's sqlite-jdbc is not loaded.
@nhojpatrick
nhojpatrick / gist:82b9d8c4ea417e0a223d1d9680f8b148
Created September 4, 2020 18:26
not owasp issue pure maven issue
pom.xml extract
<repositories>
<repository>
<id>my-internal-site</id>
<url>http://myserver/repo</url>
</repository>
</repositories>
@nhojpatrick
nhojpatrick / packer v1.4.1 output
Last active September 25, 2019 20:03
packer.io template.json
PROMPT $ export PACKER_LOG=1
PROMPT $ ./packer-1.4.1/packer version
2019/09/25 20:55:43 [INFO] Packer version: 1.4.1
2019/09/25 20:55:43 Packer Target OS/Arch: darwin amd64
2019/09/25 20:55:43 Built with Go Version: go1.12.5
2019/09/25 20:55:43 Detected home directory from env var: /Users/john
2019/09/25 20:55:43 Using internal plugin for alicloud-ecs
2019/09/25 20:55:43 Using internal plugin for amazon-ebs
2019/09/25 20:55:43 Using internal plugin for profitbricks
2019/09/25 20:55:43 Using internal plugin for proxmox
@nhojpatrick
nhojpatrick / vagrant-debug.log
Created January 4, 2019 19:14
vagrant #10559
$ vagrant up centos-7 --debug
INFO global: Vagrant version: 2.2.2
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
@nhojpatrick
nhojpatrick / ansible-apt-issue.bionic64.log
Created September 24, 2018 20:28
ansible-apt-issue.bionic64.log
Bringing machine 'ansible-apt-module' up with 'virtualbox' provider...
==> ansible-apt-module: Importing base box 'ubuntu/bionic64'...
Progress: 10%
Progress: 90%
==> ansible-apt-module: Matching MAC address for NAT networking...
==> ansible-apt-module: Checking if box 'ubuntu/bionic64' is up to date...
==> ansible-apt-module: Setting the name of the VM: ansible-apt-issue_ansible-apt-module_1537820556365_40464
==> ansible-apt-module: Fixed port collision for 22 => 2222. Now on port 2200.
==> ansible-apt-module: Clearing any previously set network interfaces...
==> ansible-apt-module: Preparing network interfaces based on configuration...