Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@hgomez
hgomez / flash-esp32.md
Last active June 18, 2021 12:34
Flash ESP32
@hgomez
hgomez / dacapobench.sh
Last active July 26, 2019 12:51
dacapobench script
#!/bin/sh
#
# Purpose : launch dacapo 9.12-MR1 benchmarks
#
DACAPO_VERSION=9.12-MR1
DACAPO_DOWNLOAD_URL=https://sourceforge.net/projects/dacapobench/files/9.12-bach-MR1/dacapo-9.12-MR1-bach.jar
DACAPO_JAR=dacapo-${DACAPO_VERSION}-bach.jar
if [ ! -z "$WORKSPACE" ]; then
@hgomez
hgomez / tmux-cheatsheet.markdown
Created June 14, 2019 15:17 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@hgomez
hgomez / testhdd.sh
Last active February 6, 2019 11:09
Sample HDD test script
#!/bin/sh
#
COUNT=2048
BLOCKSIZE=1M
while getopts "c:b:" opt; do
case $opt in
c)
COUNT=$OPTARG
@hgomez
hgomez / mint141516.md
Last active October 23, 2018 14:08
Mint 14 -> Mint 15 -> Mint 16

Mint upgrade procedures

Some investigation and tests on how to upgrade Mint machine.

Tests performed on Mint Cinnamon 14/15/16, on physical machine 14->15 and VirtualBox VMs for 14->15->16 and 14->16.

As usual you could break your machine, so please do backups before and cross fingers.

Mint 14 -> Mint 15

@hgomez
hgomez / clean-up-boot-partition-ubuntu.md
Created August 25, 2018 09:45 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

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 / zabbix2-tomcat7-jmx-nossl-template.xml
Last active April 15, 2018 12:14
Zabbix 2.0 Tomcat 7 JMX Template (with and without SSL)
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2015-01-21T15:24:57Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@hgomez
hgomez / mesos-g++.md
Last active April 11, 2018 06:08
mesos-0.21.1 / 0.22.0 g++ error

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 / Dockerfile
Created November 1, 2017 16:59
Dockerfile, Sonarqube 6.6 + Latest SonarJava
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
@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.