Skip to content

Instantly share code, notes, and snippets.


Jacques-Etienne Beaudet jebeaudet

  • Coveo
  • Quebec, Canada
View GitHub Profile
View gist:127e6fb0b59e06c0642d2f362eac8d73
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
public class Controller
public String foo(Pojo pojo)
return pojo.toString();
View gist:3868624abc308498b15db980b31435bf
FROM adoptopenjdk/maven-openjdk11:latest
RUN addgroup --gid 1001 jenkins
RUN adduser --uid 1001 --gid 1001 --disabled-password --gecos '' jenkins
RUN mkdir -p /usr/share/maven/lib/ext/redisson/
RUN sed -i '/.*${maven.conf}\/logging/a load ${maven.home}/lib/ext/redisson/*.jar' usr/share/maven/bin/m2.conf
RUN apt update
RUN apt install wget
View gist:0f9a4ce31a155e6cfb50681205d2a9b2
cat /usr/share/maven/bin/m2.conf
main is org.apache.maven.cli.MavenCli from plexus.core
set maven.conf default ${maven.home}/conf
load ${maven.conf}/logging
load ${maven.home}/lib/ext/redisson/*.jar
optionally ${maven.home}/lib/ext/*.jar
load ${maven.home}/lib/*.jar
View gist:545306ccb51a99fe225cc9b471b4edb9
├── README.txt
├── bin
│   ├── m2.conf
│   ├── mvn
│   ├── mvn.cmd
│   ├── mvnDebug
View gist:c4cbd4638167614ecbc2a7d2afb10e0a
mvn compile -Dsisu.debug
TRACE: Sisu - Add publisher:
-----[explicit bindings]-------------------------------------------------------
0. InstanceBinding{key=Key[, annotation=[none]], source=[unknown source], instance=DEVELOPMENT}
1. ProviderInstanceBinding{key=Key[, annotation=[none]], source=[unknown source], scope=Scopes.NO_SCOPE, provider=Provider<Injector>}
2. ProviderInstanceBinding{key=Key[type=java.util.logging.Logger, annotation=[none]], source=[unknown source], scope=Scopes.NO_SCOPE, provider=Provider<Logger>}
3. InstanceBinding{key=Key[type=org.codehaus.plexus.context.Context, annotation=[none]], source=org.codehaus.plexus.DefaultPlexusContainer$ContainerModule.configure(, instance={plexus=org.codehaus.plexus.DefaultPlexusContainer@7c1e2a2d}}
4. InstanceBinding{key=Key[type=org.eclipse.sisu.inject.MutableBeanLocator, annotation=[none]], source=org.codehaus.plex
View gist:e3a6a2fdd3dca770afe51d6c071219dc
FROM maven:3.8.1-openjdk-11-slim
RUN addgroup --gid 1001 jenkins
RUN adduser --uid 1001 --gid 1001 --disabled-password --gecos '' jenkins
RUN mkdir -p /usr/share/maven/lib/ext/redisson/
RUN sed -i '/.*${maven.conf}\/logging/a load ${maven.home}/lib/ext/redisson/*.jar' usr/share/maven/bin/m2.conf
RUN apt update
RUN apt install -y wget
jebeaudet / gist:e7fedbf1aa3f0b8f5c17f7a739a75526
Last active Aug 28, 2020
kubectl list all resources in the current namespace [k8s] [kubernetes]
View gist:e7fedbf1aa3f0b8f5c17f7a739a75526
kubectl api-resources -o name | xargs -I {} kubectl get {} --show-kind --ignore-not-found
jebeaudet / messageTray.js
Last active Aug 19, 2020
dismiss notification on right click linux mint
View messageTray.js
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter =;
const GLib =;
const Gio =;
const Gtk =;
const Atk =;
const Lang = imports.lang;
View gist:de5eec5c5ff996d84c184167c47283c3
from PIL import Image
import sys
import requests
from bs4 import BeautifulSoup
if len(sys.argv) <= 3:
print "Please provide the filename of the picture as first argument and the cookie of slack as second argument and the prefix"
max_width_or_height = 3840
jebeaudet /
Created Jan 14, 2020
Form resubmission bug in chrome part 2
import http.server
import socketserver
PORT = 8000
auto_submit_html = """
<html xmlns="" xml:lang="en">
<body onload="document.forms[0].submit()">