Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@hgomez
hgomez / docker-artifactory-jk-rewrite.md
Last active August 29, 2015 14:08
Using Apache HTTPd with mod_jk and mod_rewrite in front of artifactory 3.4.x for docker hosting
@hgomez
hgomez / gist:e74a77682834be69aa2a
Last active August 29, 2015 14:08
myjenkins-lts
rpm -qpi myjenkins-lts-1.580.1-18.1.noarch.rpm
Name : myjenkins-lts
Version : 1.580.1
Release : 18.1
Architecture: noarch
Install Date: (not installed)
Group : Development/Tools/Building
Size : 76099126
License : MIT
@hgomez
hgomez / keybase.md
Created October 21, 2014 12:16
keybase.md

Keybase proof

I hereby claim:

  • I am hgomez on github.
  • I am hgomez (https://keybase.io/hgomez) on keybase.
  • I have a public key whose fingerprint is 1473 7EB2 565F E85D B941 6210 42AE CE61 BD0A 8037

To claim this, I am signing this object:

@hgomez
hgomez / jcerror.md
Last active August 29, 2015 14:07
Weird SSL error when using Unlimited Crypto

Weird error in SSL negociation when using Unlimited Crypto in Java 7 :

Sample Java Test program :

import java.io.BufferedReader;  
import java.io.InputStreamReader;  
  
  
import java.net.URL;  
import java.net.URLConnection; 
@hgomez
hgomez / gist:8fdd059d36b63daa19f7
Created September 15, 2014 15:51
Java 8 - LDD
ldd -v ./amd64/*.so
....
ie:
libawt.so:
linux-vdso.so.1 => (0x00007fff1a9de000)
libjvm.so => not found
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7c7a7e1000)
@hgomez
hgomez / openjdk-7-build-failure.md
Last active August 29, 2015 14:04
openjdk-7-build-failure

CentOS / RHEL 7 (64bits)

00:32:35.270     gcc -m64 -Xlinker -O1 -Wl,--hash-style=both  -Xlinker -z -Xlinker noexecstack -shared                                 \
00:32:35.271 -Xlinker --version-script=mapfile_reorder -Xlinker -soname=libjvm.so -static-libgcc -o libjvm.so abstractCompiler.o accessFlags.o ad_x86_64.o ad_x86_64_clone.o ad_x86_64_expand.o ad_x86_64_format.o ad_x86_64_gen.o ad_x86_64_misc.o ad_x86_64_peephole.o ad_x86_64_pipeline.o adaptiveSizePolicy.o addnode.o adjoiningGenerations.o adjoiningVirtualSpaces.o advancedThresholdPolicy.o ageTable.o allocTracer.o allocation.o allocationStats.o altHashing.o aprofiler.o arguments.o array.o arrayKlass.o arrayKlassKlass.o arrayOop.o asPSOldGen.o asPSYoungGen.o asParNewGeneration.o assembler.o assembler_linux_x86.o assembler_x86.o atomic.o attachListener.o attachListener_linux.o barrierSet.o basicLock.o bcEscapeAnalyzer.o biasedLocking.o binaryTreeDictionary.o bitMap.o block.o blockOffsetTable.o buildOopMap.o bytecode.o bytecodeHistogram.o b
@hgomez
hgomez / dacapobench-of-fresh-java.md
Last active September 26, 2015 02:35
dacapobench-of-fresh-java

System

  • Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
  • 16 GB RAM DDR3-1600
  • 256 GB SSD (Vertex4)
  • Linux Mint 17

Dacapobench 9.12 - bench

Script used, dacapobench.sh

@hgomez
hgomez / jcmd-local-failure
Created July 23, 2014 10:27
jcmd local failure
jcmd 21958 JFR.start duration=60s filename=myrecording.jfr
21958:
com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:106)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:213)
at sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:140)
at sun.tools.jcmd.JCmd.main(JCmd.java:129)
@hgomez
hgomez / gist:f4ebbfd7afec0b5409e2
Created July 22, 2014 15:56
Flight Recorder error
java.lang.RuntimeException: Could not register the Mission Control MBean in the MBeanServer.
at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:109)
at com.jrockit.mc.browser.views.JVMBrowserView$1.run(JVMBrowserView.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
@hgomez
hgomez / jenkins-plugins-batch-install.md
Last active January 26, 2025 14:45
Mass install/update of Jenkins Plugins

Scripted Jenkins Plugins install

Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI. BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.

Hopefully, mass installation (or update) could be easy using a simple bash script (curl/python required) :

Create a file containing plugins to be installed (or updated), ie iplugins :