Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@hgomez
hgomez / ssl.md
Last active October 20, 2017 07:02 — forked from mxlje/ssl.md
SSL Certificate Commands

These commands are needed every time you want to generate a new certificate signing request to give to an authority in order for them to generate and sign a certificate for you.

I constantly forget how this stuff works so I collected the most important ones here for easy copy & paste.

There is good information available on https://www.h2check.org/deploy, and they also go into detail on HTTP/2.

@hgomez
hgomez / openjdk8-centos5-build-error
Created December 16, 2013 14:45
OpenJDK 8 build error on CentOS 5
Started by upstream project "openjdk8" build number 123
originally caused by:
Started by user ********
Building remotely on devops-builder-c564 in workspace /home/cijenka/workspace/openjdk8/linux/centos5-x86_64-builder
Fetching changes from the remote Git repository
Fetching upstream changes from https://github.com/********/obuildfactory.git
Checking out Revision b5e29f115a09a8b75b0e7058f2b0177349b6b0a6 (origin/master)
[centos5-x86_64-builder] $ /bin/bash /tmp/hudson4006814633557877571.sh
# Repositories: . ./corba ./hotspot ./jaxp ./jaxws ./jdk ./langtools ./nashorn
@hgomez
hgomez / upload2bintray.sh
Last active March 24, 2017 08:58
Sample script to upload RPM package to bintray
#!/bin/sh
#
# You should define BINTRAY_ACCOUNT and BINTRAY_APIKEY here or from the outside
# BINTRAY_ACCOUNT is you Bintray account and BINTRAY_APIKEY, API Key generated under your Bintray profile
# Redefine following variables to match your own usage
RPMS_DIR=RPMS/noarch
BINTRAY_ACCOUNT=hgomez
BINTRAY_REPO=devops-incubator-rpm
@hgomez
hgomez / mint16-bad-sig
Created October 27, 2013 17:00
Bad SIG in Petra (Mint 16)
Ign http://packages.linuxmint.com petra/upstream Translation-en
Ign http://packages.linuxmint.com petra/upstream Translation-fr
Fetched 171 kB in 15s (11,0 kB/s)
Reading package lists... Done
W: GPG error: http://packages.linuxmint.com petra Release: The following signatures were invalid: BADSIG 3EE67F3D0FF405B2 Clement Lefebvre (Linux Mint Package Repository v1) <root@linuxmint.com>
@hgomez
hgomez / get-jenkins-plugins.md
Last active May 5, 2016 20:32
Get Jenkins Plugin from command line
@hgomez
hgomez / openjdk8-build-failure-gcc-4.7
Created November 10, 2012 20:34
OpenJDK8 build failure with gcc 4.7
Compiling /home/hgomez/openjdkathome/sources/openjdk8/hotspot/src/share/vm/runtime/biasedLocking.cpp
Compiling /home/hgomez/openjdkathome/sources/openjdk8/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp
Compiling /home/hgomez/openjdkathome/sources/openjdk8/hotspot/src/share/vm/utilities/bitMap.cpp
/home/hgomez/openjdkathome/sources/openjdk8/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp: In instantiation of 'void AscendTreeCensusClosure<Chunk_t, FreeList_t>::do_tree(TreeList<Chunk_t, FreeList_t>*) [with Chunk_t = FreeChunk; FreeList_t = AdaptiveFreeList]':
/home/hgomez/openjdkathome/sources/openjdk8/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp:1295:21: required from here
/home/hgomez/openjdkathome/sources/openjdk8/hotspot/src/share/vm/memory/binaryTreeDictionary.cpp:943:7: error: 'do_list' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/hgomez/openjdkathome/sources/openjdk8/hotspot/src/share/vm/
@hgomez
hgomez / fontconfig-patch.md
Created January 24, 2014 09:03
fontconfig patch failure on CentOS 5

fontconfig-patch used in OBuildfactory, https://github.com/hgomez/obuildfactory/blob/master/openjdk7/linux/patches/fontfix.patch, works well for CentOS 6, Fedora 18 and openSUSE 12.2/12.3 but fail build on CentOS 5

04"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LP64=1 -I. -I/home/cijenka/workspace/openjdk7u/linux/centos5-x86_64-builder/sources/openjdk7/build/linux-amd64/tmp/sun/sun.font/fontmanager/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/font -I../../../src/solaris/native/sun/font -I/home/cijenka/OBF_DROP_DIR/freetype/include -I/home/cijenka/OBF_DROP_DIR/freetype/include/freetype2 -I../../../src/share/native/sun/font -I../../../src/share/native/sun/font/layout -I../../../src/share/native/sun/awt/image/cvutils -I../../../src/solaris/native/sun/awt -I../../../src/share/native/sun/awt/debug -I../../../src/share/native/sun/java2d/loops -I../../

@hgomez
hgomez / mavibot-tests.md
Created December 17, 2013 10:35
mavibot build tests, various JVM (Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz, 16Gb RAM, HDD 5400 RPM)

Sun/Oracle Hotspot 1.6.0-45

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.directory.mavibot.btree.InMemoryBTreeFlushTest
Written 10000 elements in : 215ms
Written 20000 elements in : 151ms
Written 30000 elements in : 119ms

Written 40000 elements in : 131ms

@hgomez
hgomez / mongodbstop
Last active December 26, 2015 03:19
Mongodb stop at init time
Mongodb start and stop at boot time :(
Oct 21 09:36:11 qaf-mysql55 kernel: [ 7.497088] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Oct 21 09:36:11 qaf-mysql55 kernel: [ 7.505886] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Oct 21 09:36:11 qaf-mysql55 kernel: [ 7.521741] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Oct 21 09:36:11 qaf-mysql55 kernel: [ 7.562705] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Oct 21 09:36:11 qaf-mysql55 systemd-logind[513]: New seat seat0.
Oct 21 09:36:11 qaf-mysql55 mongodb[529]: Starting mongodb warning: remove or comment out this line by starting it with '#', skipping now : noauth = false
Oct 21 09:36:11 qaf-mysql55 mongodb[529]: about to fork child process, waiting until server is ready for connections.
Oct 21 09:36:11 qaf-mysql55 mongodb[529]: forked process: 572
@hgomez
hgomez / lcc83.c
Created September 23, 2013 13:40
lcc83 from M. Lecharny
#include <stdio.h>
main()
{
char A[] = "Bonjour!";
printf("Je vous souhaite bien le %s\n", A);
7[A] = '?';