Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@hgomez
hgomez / gitlab-subgit-1
Created June 27, 2014 13:15
gitlab-subgit-1
No newline at end of file
commit 70c293a31f8ea81c7049cac9915c6b31dc343456
Author: Gomez Henri <hgomez@mycorp.com>
Date: Wed Jan 4 10:50:15 2012 +0000
Initial import.
commit 8a2cadbbe8dcd33ad06c6535e88c23d69b4a4a04
Author: Gomez Henri <hgomez@mycorp.com>
@hgomez
hgomez / owasp-dc.md
Last active August 29, 2015 13:59
OWASP Dependency Check
@hgomez
hgomez / centos-lxc-under-openSUSE.md
Last active August 29, 2015 13:58
Create CentOS LXC under openSUSE

Avoid unicode problems (yum UnicodeDecodeError)

export LANG=C

Install yum

sudo zypper install yum

Patch /etc/yum/yum.conf

@hgomez
hgomez / gitlab-sidekiq-error.md
Last active August 29, 2015 13:57
gitlab-sidekiq-error

Error at server start

Starting the GitLab Unicorn web server...
Starting the GitLab Sidekiq event dispatcher...
rake aborted!
SIGTERM
/var/lib/mycorp/gitlab/gitlab/lib/tasks/sidekiq.rake:9:in `system'
/var/lib/mycorp/gitlab/gitlab/lib/tasks/sidekiq.rake:9:in `block (2 levels) in <top (required)>'
Tasks: TOP => sidekiq:start

(See full trace by running task with --trace)

@hgomez
hgomez / docker-on-mint-16.md
Last active August 29, 2015 13:57
docker-debug

docker infos :

>docker version
Client version: 0.9.0
Go version (client): go1.2.1
Git commit (client): 2b3fdf2
Server version: 0.9.0
Git commit (server): 2b3fdf2
Go version (server): go1.2.1

Last stable version: 0.9.0

@hgomez
hgomez / download-java8.sh
Created March 19, 2014 20:39
wget to download Java 8
wget --continue --no-check-certificate -O jdk-8-linux-x64.tar.gz --header Cookie: oraclelicense=a http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz
@hgomez
hgomez / gist:9368032
Created March 5, 2014 14:19
maven.glassfish.org is not maven.java.net
Downloading: http://maven.glassfish.org/content/groups/public/org/kohsuke/stapler/stapler/maven-metadata.xml
[WARNING] Could not transfer metadata org.kohsuke.stapler:stapler/maven-metadata.xml from/to m.g.o-public (http://maven.glassfish.org/content/groups/public/): hostname in certificate didn't match: <maven.glassfish.org> != <maven.java.net> OR <maven.java.net>
[WARNING] Failure to transfer org.kohsuke.stapler:stapler/maven-metadata.xml from http://maven.glassfish.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of m.g.o-public has elapsed or updates are forced. Original error: Could not transfer metadata org.kohsuke.stapler:stapler/maven-metadata.xml from/to m.g.o-public (http://maven.glassfish.org/content/groups/public/): hostname in certificate didn't match: <maven.glassfish.org> != <maven.java.net> OR <maven.java.net>
[WARNING] Failure to transfer org.kohsuke.stapler:stapler/maven-metadata.xml from http://maven.glassfish.org/co
@hgomez
hgomez / gencert.sh
Created February 28, 2014 12:22 — forked from bradland/gencert.sh
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27
@hgomez
hgomez / g644-error
Last active August 29, 2015 13:56
Update to gitlab 6.6.4 worked but system didn't start
Starting the GitLab Unicorn web server...
Starting the GitLab Sidekiq event dispatcher...
** Invoke sidekiq:start (first_time)
** Execute sidekiq:start
rake aborted!
SIGTERM
/var/lib/mycorp/gitlab/gitlab/lib/tasks/sidekiq.rake:9:in `system'
/var/lib/mycorp/gitlab/gitlab/lib/tasks/sidekiq.rake:9:in `block (2 levels) in <top (required)>'
/var/lib/mycorp/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
/var/lib/mycorp/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'
@hgomez
hgomez / eclipse-mat-131-mint16-fail
Last active August 29, 2015 13:56
Eclipse MAT 1.3.1 failure on Mint 16 ;(
MemoryAnalyzer-1.3.1.20140107-linux.gtk.x86_64.zip on Mint 16 (64bits) :
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f6fe5f501d1, pid=15660, tid=140120617559808
#
# JRE version: 6.0_45-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame: