Skip to content

Instantly share code, notes, and snippets.

View ldez's full-sized avatar

Ludovic Fernandez ldez

View GitHub Profile
@ldez
ldez / docker-compose.yml
Created May 16, 2023 13:42
Traefik v2 + Pebble (DNS challenge)
version: '3.9'
# echo {} > letsencrypt/acme.json; docker-compose up --remove-orphans
x-aliases: &aliases
aliases:
- whoami.localhost
- traefik.localhost
x-pebble: &pebble
@ldez
ldez / docker-compose.yml
Last active May 16, 2023 13:42
Traefik v2 + Pebble (TLS challenge)
version: '3.9'
# echo {} > letsencrypt/acme.json; docker-compose up --remove-orphans
x-aliases: &aliases
aliases:
- whoami.localhost
- traefik.localhost
x-pebble: &pebble
@ldez
ldez / gosec-config.json
Last active April 24, 2021 18:48
github.com/securego/gosec configuration
{
"G101": {
"pattern": "(?i)passwd|pass|password|pwd|secret|private_key|token",
"ignore_entropy": false,
"entropy_threshold": "80.0",
"per_char_threshold": "3.0",
"truncate": "32"
},
"G104": {
"io/ioutil": [
@ldez
ldez / oss-automation.md
Last active July 2, 2021 00:46
oss-automation

Bots Overview

Our bots 🤖:

@ldez
ldez / sample.json
Created November 14, 2017 12:55
Traefik raw dyn conf
{
"provider0": {
"backends": {
"provider0Backend0": {
"servers": {
"Server0": {
"url": "foobar",
"weight": 42
},
"Server1": {
@ldez
ldez / keybase.md
Created August 11, 2017 14:34
keybase.md

Keybase proof

I hereby claim:

  • I am ldez on github.
  • I am ldez (https://keybase.io/ldez) on keybase.
  • I have a public key ASDV-yUx2ThFKZGSTe8Zhc4HvhjmZ_zRzlXOuE-SNZorRwo

To claim this, I am signing this object:

@ldez
ldez / gmail-github-filters.md
Last active November 7, 2024 14:56
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@ldez
ldez / BigDecimalExpression.java
Created October 11, 2014 15:49
QueryDSL Collection util for BigDecimal divide Expression
import java.math.BigDecimal;
import java.math.RoundingMode;
import com.mysema.query.support.Expressions;
import com.mysema.query.types.ConstantImpl;
import com.mysema.query.types.Expression;
import com.mysema.query.types.expr.NumberExpression;
/**
* The Class BigDecimalExpression.
@ldez
ldez / AbstractTransientException.java
Last active August 29, 2015 13:58
JAXB error "java.lang.StackTraceElement does not have a no-arg default constructor"
package com.ldez.myapp.support.exception;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlTransient;
@XmlAccessorType(XmlAccessType.PROPERTY)
public abstract class AbstractTransientException extends Exception {
private static final long serialVersionUID = 1L;
#!/bin/sh
#
# chkconfig: 2345 96 30
# description: start and stop Tomcat server
# Script version
SCRIPT_VERSION=1.0
JAVA_HOME=/usr/local/jdk1.7.0_45