Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@hgomez
hgomez / pom.xml
Created May 9, 2012 19:38
XTrigger Plugin pom.xml update for m2e
<build>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
@hgomez
hgomez / m2e-error-jenkins-plugin
Created May 10, 2012 08:20
m2e errors for Jenkins plugin
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: com.cloudbees:maven-license-plugin:1.3:process (execution: default, phase: compile) pom.xml /urltrigger-plugin line 4 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-enforcer-plugin:1.0:display-info (execution: default, phase: validate) pom.xml /urltrigger-plugin line 4 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:generateTestStubs (execution: test-in-groovy, phase: generate-test-sources) pom.xml /urltrigger-plugin line 4 Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:testCompile (execution: test-in-groovy, phase: test-compile) pom.xml /urltrigger-plugin line 4 Maven Project Build Lifecycle Mapping Problem
Plugin executio
@hgomez
hgomez / zabbix2-tomcat6-jmx-template.xml
Created July 30, 2012 18:58
Zabbix 2.0 Tomcat 6 JMX Template
<?xml version="1.0" encoding="UTF-8"?>
<!--
Macros to be defined
* JMX_USERNAME
* JMX_PASSWORD
* HTTP_PORT (mandatory)
* HTTPS_PORT (mandatory)
* AJP_PORT (mandatory)
@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 / rootbeeronosx
Created August 15, 2012 05:58
Initial tests of Rootbeer on OSX
mbp-rico:rootbeer1 henri$ java -Xmx4g -jar Rootbeer.jar -runtests
Initializing RootbeerScene...
Finding RunOnGpu Classes...
Loading Scene...
Loading all methods in visited classes...
Finding kernel reachable methods...
Remapping some classes to GPU versions...
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double cos(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double hypot(double,double)>
@hgomez
hgomez / gist:3362252
Created August 15, 2012 18:41
RootBeer tests on OSX
mbp-rico:rootbeer1 henri$ java -Xmx4g -jar Rootbeer.jar -runtests
Initializing RootbeerScene...
Finding RunOnGpu Classes...
Loading Scene...
Loading all methods in visited classes...
Finding kernel reachable methods...
Remapping some classes to GPU versions...
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double cos(double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double hypot(double,double)>
Failed to load body for method: <edu.syr.pcpratts.rootbeer.runtime.remap.java.lang.StrictMath: double expm1(double)>
@hgomez
hgomez / gist:3449713
Created August 24, 2012 11:47
pkgsrc and osx
export PATH=/usr/local/pkgsrc/usr/pkg/sbin:/usr/local/pkgsrc/usr/pkg/bin:$PATH
mbp-rico:pkgsrc henri$ pkg_info -K /usr/local/pkgsrc/var/db/pkg
bmake-20110606 Portable (autoconf) version of NetBSD 'make' utility
bootstrap-mk-files-20120415 *.mk files for the bootstrap bmake utility
gettext-lib-0.18.1.1 Internationalized Message Handling Library (libintl)
libarchive-2.8.4nb1 Library to read/create different archive formats
pkg_install-20120221 Package management and administration tools for pkgsrc
pkgin-0.6.0 Apt / yum like tool for managing pkgsrc binary packages
xz-5.0.3 XZ utilities
@hgomez
hgomez / gist:3549825
Created August 31, 2012 07:16
ZabbixTrigger
Alert Trigger on threshold crossing (Original) :
{Template JMX Hotspot:jmx["java.lang:type=MemoryPool,name=CMS Old Gen",Usage.committed].last(0)}={Template JMX Hotspot:jmx["java.lang:type=MemoryPool,name=CMS Old Gen",Usage.max].last(0)}
Alert Trigger after threshold has been reach and stay for 60s:
{Template JMX Hotspot:jmx["java.lang:type=MemoryPool,name=CMS Old Gen",Usage.committed].avg(60)}={Template JMX Hotspot:jmx["java.lang:type=MemoryPool,name=CMS Old Gen",Usage.max].last(0)}
@hgomez
hgomez / write_graphite_collectd_4_10.c
Created September 17, 2012 15:49
graphite_writer for collectd 4.10.x
/**
* collectd - src/write_graphite.c
* Copyright (C) 2011 Scott Sanders
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License is applicable.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@hgomez
hgomez / servlet-engines-startup-time
Created September 30, 2012 16:49
Servlet-Engines-Startup-Time
-------------------------------------
--- Tomcat 6 - Apple JDK 1.6.0-26 ---
-------------------------------------
Using CATALINA_BASE: /Users/henri/Desktop/apache-tomcat-6.0.32
Using CATALINA_HOME: /Users/henri/Desktop/apache-tomcat-6.0.32
Using CATALINA_TMPDIR: /Users/henri/Desktop/apache-tomcat-6.0.32/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
Using CLASSPATH: /Users/henri/Desktop/apache-tomcat-6.0.32/bin/bootstrap.jar
15 juil. 2011 00:03:21 org.apache.catalina.core.AprLifecycleListener init