Skip to content

Instantly share code, notes, and snippets.

Henri Gomez hgomez

Block or report user

Report or block hgomez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@hgomez
hgomez / clean-up-boot-partition-ubuntu.md
Created Aug 25, 2018 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64
View clean-up-boot-partition-ubuntu.md

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@hgomez
hgomez / Dockerfile
Created Nov 1, 2017
Dockerfile, Sonarqube 6.6 + Latest SonarJava
View Dockerfile
FROM sonarqube:6.6
RUN rm -f /opt/sonarqube/extensions/plugins/sonar-java-plugin*.jar && \
wget -O /opt/sonarqube/extensions/plugins/sonar-java-plugin-4.15.0.12310.jar https://github.com/SonarSource/sonar-java/releases/download/4.15-RC1/sonar-java-plugin-4.15.0.12310.jar
View docker-centos7-info
Containers: 1
Images: 50
Storage Driver: devicemapper
Pool Name: docker-8:17-788702-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 1.268 GB
Data Space Total: 107.4 GB
@hgomez
hgomez / ssl.md
Last active Oct 20, 2017 — forked from mxlje/ssl.md
SSL Certificate Commands
View ssl.md

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 / docker-registry-2.0-logs
Last active Aug 29, 2015
docker-registry-2.0-logs
View docker-registry-2.0-logs
# access log
1.2.3.203 - - [21/Apr/2015:10:35:02 +0200] "GET /v2/ HTTP/1.1" 401 1233 "-" "docker/1.6.0 go/go1.4.2 git-commit/4749651 kernel/3.13.0-37-generic os/linux arch/amd64"
1.2.3.203 - - [21/Apr/2015:10:35:02 +0200] "GET /v1/_ping HTTP/1.1" 200 1541 "-" "docker/1.6.0 go/go1.4.2 git-commit/4749651 kernel/3.13.0-37-generic os/linux arch/amd64"
1.2.3.203 - - [21/Apr/2015:10:35:02 +0200] "POST /v1/users/ HTTP/1.1" 401 1239 "-" "Go 1.1 package http"
1.2.3.203 - my-deployer [21/Apr/2015:10:35:02 +0200] "GET /v1/users/ HTTP/1.1" 200 4 "-" "docker/1.6.0 go/go1.4.2 git-commit/4749651 kernel/3.13.0-37-generic os/linux arch/amd64"
1.2.3.203 - - [21/Apr/2015:10:35:07 +0200] "GET /v2/ HTTP/1.1" 401 1233 "-" "docker/1.6.0 go/go1.4.2 git-commit/4749651 kernel/3.13.0-37-generic os/linux arch/amd64"
1.2.3.203 - - [21/Apr/2015:10:35:07 +0200] "GET /v1/_ping HTTP/1.1" 200 1541 "-" "docker/1.6.0 go/go1.4.2 git-commit/4749651 kernel/3.13.0-37-generic os/linux arch/amd64"
1.2.3.203 - - [21/Apr/2015:10:35:07 +0200] "GET /v1
View lskeys
#!/bin/bash
#: Title : lskeys
#: Date Created : Thu Oct 27 22:44:20 PDT 2011
#: Last Edit : Fri Nov 18 23:17:02 PST 2011
#: Author : Agnelo de la Crotche (please_try_again) / Henri Gomez
#: Version : 2.0
#: Description : lists, exports, deletes RPM GPG keys
#: Syntax : lskeys [option]
#: Options : -e --export : exports selected key
#: : -d --delete : erases selected key
@hgomez
hgomez / gitlab-hook.adoc
Last active Aug 29, 2015
Gitlab Hook Post
View gitlab-hook.adoc
@hgomez
hgomez / mesos-g++.md
Last active Apr 11, 2018
mesos-0.21.1 / 0.22.0 g++ error
View mesos-g++.md

Mesos 0.21.1 / 0.22.0 build failure on openSUSE 13.2

  • kernel 3.16.7-7-default
  • gcc/g++ version 4.8.3 20140627 (gcc-4_8-branch revision 212064) (SUSE Linux)

Build failure

libtool: compile:  g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"0.21.1\" "-DPACKAGE_STRING=\"mesos 0.21.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.21.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_APR_POOLS_H=1 -DHAVE_LIBAPR_1=1 -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBSASL2=1 -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" -DMESOS_HAS_PYTHON=1 -I. -I../../src -Wall -Werror -DLIBDIR=\"/usr/local/lib64\" -DPKGLIBEXECDIR=\"/usr/local/lib/mesos\" -DPKGDATADIR=\"/usr/loca
@hgomez
hgomez / gist:0ee49652f992b02b6819
Last active Aug 29, 2015
gitlab 7.7.0 install error on openSUSE 12.3 - ruby 1.9.3p392
View gist:0ee49652f992b02b6819
+ bundle exec rake assets:precompile RAILS_ENV=production
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
rake aborted!
SyntaxError: /home/cijenka/builder21/workspace/cigitlab/noarch/devops-builder-os12364/BUILDROOT/cigitlab-7.7.0-1.x86_64/var/lib/mycorp/cigitlab/gitlab/lib/api/api_guard.rb:42: syntax error, unexpected tLABEL, expecting ')'
def doorkeeper_guard!(scopes: [])
^
/home/cijenka/builder21/workspace/cigitlab/noarch/devops-builder-os12364/BUILDROOT/cigitlab-7.7.0-1.x86_64/var/lib/mycorp/cigitlab/gitlab/lib/api/api_guard.rb:64: syntax error, unexpected tLABEL, expecting ')'
def doorkeeper_guard(scopes: [])
^
/home/cijenka/builder21/workspace/cigitlab/noarch/devops-builder-os12364/BUILDROOT/cigitlab-7.7.0-1.x86_64/var/lib/mycorp/cigitlab/gitlab/lib/api/api_guard.rb:98: syntax error, unexpected keyword_end, expecting $end
You can’t perform that action at this time.