Skip to content

Instantly share code, notes, and snippets.

View pmauduit's full-sized avatar

Pierre Mauduit pmauduit

View GitHub Profile
@pmauduit
pmauduit / collectd.conf
Last active September 18, 2025 20:15
[tomcat monitoring] JMX + collectd + logstash configuration
# add the following block:
<Plugin network>
Server "127.0.0.1"
</Plugin>
@pmauduit
pmauduit / mfapp.patch
Created September 21, 2015 14:03
patch mfapp - logging issue when uploading
diff --git a/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java b/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java
index 4f011b7..1cacf7f 100644
--- a/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java
+++ b/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java
@@ -374,18 +374,10 @@ public class UpLoadFileManagement {
fjson.setEncodeFeatureCollectionCRS(true);
fjson.writeFeatureCollection(featureCollection, writer);
-
- } catch (ProjectionException e) {
@pmauduit
pmauduit / gist:cdd819a85d566dd11df9
Last active September 24, 2015 13:27
JPS / Jstat - JVM heap memory monitoring pour les pauvres
watch -n1 "jstat -gc <PID> | awk '{if (NR !=1) {print \$7 - \$8}}'"
@pmauduit
pmauduit / default.pp
Last active January 7, 2016 09:49
geOrchestra VM - manifest/default.pp provisionner
include ::apt
include ::sudo
include ::collectd
collectd::plugin { ['cpu', 'memory', 'disk']: } ->
# see below why this ...
exec { 'ensures jmx_memory is defined in collectd conf files':
command => "echo 'jmx_memory value:GAUGE:0:U' >> /etc/collectd/custom-types.db",
unless => "test $(grep jmx_memory /etc/collectd/custom-types.db | wc -l) -gt 0",
provider => "shell",
@pmauduit
pmauduit / keybase.md
Created November 15, 2015 15:12
keybase verification

Keybase proof

I hereby claim:

  • I am pmauduit on github.
  • I am pmauduit (https://keybase.io/pmauduit) on keybase.
  • I have a public key whose fingerprint is 9193 DA20 F60A 9801 13DF 21A8 6F11 9B4E 77C8 965E

To claim this, I am signing this object:

@pmauduit
pmauduit / gist:66402712bb5fa1a8b3e4
Created November 27, 2015 11:37 — forked from chiquitinxx/gist:e0c561547e0e1b690767
My trait approach to an angular.js controller
//Grooscript Angular.js TODO example from https://angularjs.org/
//You need next release of grooscript to run it (1.0.1)
class TodoController implements AngularController {
def todos = [
[text:'learn angular', done: true],
[text:'build an angular app', done: false]
]
def addTodo() {
scope.todos << [text: scope.todoText, done: false]
scope.todoText = ''
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {
@pmauduit
pmauduit / jessie.yml
Created February 4, 2016 14:04
docker-compose with a debian jessie
blah:
image: debian:jessie
ports:
- "2222:22"
entrypoint: /bin/bash
tty: true
@pmauduit
pmauduit / distributions
Last active February 21, 2016 17:49
reprepro configuration for geOr
Origin: geOrchestra
Label: geOrchestra
Codename: 15.12
Architectures: i386 amd64
Components: main
Description: Apt repository for geOrchestra 15.12
Origin: geOrchestra
Label: geOrchestra
Codename: master
@pmauduit
pmauduit / chuck.MD
Created March 16, 2016 20:02
First steps with ChucK

some chuck notes (no pun intended)

Launch a jack daemon along with pulseaudio:

sudo pasuspender -- jackd -d alsa -d hw:1

Launch an example: