This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Parent { | |
public static final Level1 l1 = new Level1(); | |
public static class Level1 { | |
public final Level2 l2 = new Level2(); | |
} | |
public static class Level2 { | |
public final String helloWorld = "Hello World"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# java | |
function setJdk { | |
JAVA_HOME=`/usr/libexec/java_home -v "$1"` ; | |
if [ $? -eq 0 ]; then | |
export JAVA_HOME ; | |
java -version 2>&1 ; | |
fi | |
} | |
export -f setJdk ; | |
setJdk 1.8 1>/dev/null ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bringing machine 'ansible-apt-module' up with 'virtualbox' provider... | |
==> ansible-apt-module: Importing base box 'ubuntu/bionic64'... | |
[KProgress: 10% | |
[KProgress: 90% | |
[K==> 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... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pom.xml extract | |
<repositories> | |
<repository> | |
<id>my-internal-site</id> | |
<url>http://myserver/repo</url> | |
</repository> | |
</repositories> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |