Skip to content

Instantly share code, notes, and snippets.

View jeantil's full-sized avatar
✔️

Jean Helou jeantil

✔️
View GitHub Profile
@jeantil
jeantil / openpgp.md
Last active November 7, 2022 21:38
keyoxide proof and verification

This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs

[Verifying my OpenPGP key: openpgp4fpr:CCD2779377C35AF94D66D27A9B47CB45459CCAC1]

package dojo.kata;
public class RLE {
public static String encode(String chaine) {
if (chaine == null || chaine.isEmpty())
return "";
if(chaine.length()==1)return encodeUnit(chaine);
@jeantil
jeantil / gist:e635f3bc34f1dd5f2708
Created July 2, 2014 09:37
Google experiments
googleplay-support@google.com
11:20 AM (16 minutes ago)
to me
Hello Jean,
Thank you for contacting Google. I understand you are having difficulties transferring "Implementing Domain-Driven Design" to your Kobo due to an error message you are receiving. I apologize for the disruption this has caused in your reading experience.
We have noted that some users experience device limit errors when using multiple devices or reset their device firmware. I've asked our technical specialists to remove this limit, and you should be able to access your book through your device within a day or so.
@jeantil
jeantil / tf.log
Last active January 6, 2021 16:50
tf trace for baremetal creation at scaleway
> terraform apply
2021/01/06 17:49:40 [INFO] Terraform version: 0.14.3
2021/01/06 17:49:40 [INFO] Go runtime version: go1.15.2
2021/01/06 17:49:40 [INFO] CLI args: []string{"/usr/bin/terraform", "apply"}
2021/01/06 17:49:40 [DEBUG] Attempting to open CLI config file: /home/jean/.terraformrc
2021/01/06 17:49:40 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021/01/06 17:49:40 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/01/06 17:49:40 [DEBUG] ignoring non-existing provider search directory /home/jean/.terraform.d/plugins
2021/01/06 17:49:40 [DEBUG] ignoring non-existing provider search directory /home/jean/.local/share/terraform/plugins
2021/01/06 17:49:40 [DEBUG] ignoring non-existing provider search directory /usr/share/ubuntu/terraform/plugins
set JAVA_OPTS="%JAVA_OPTS%
-Dhttp.proxyHost=yourserver
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=yourserver
-Dhttps.proxyPort=8080"
foo
@jeantil
jeantil / algorithm.sql
Last active May 26, 2020 20:37
Code source d’Admission post-bac
--
-- le code ci-dessous a a été fortement amélioré par un effor collaboratif sur
-- https://github.com/jeantil/admission_post_bac
-- Pull requests, issues et contributions wiki sont les bienvenues.
-- Une partie du code a été rétro analysé a partir de diverses sources cf https://github.com/jeantil/admission_post_bac/wiki
--
FUNCTION gen class alea V1 relatif grp(
o_g_ea_cod_ins IN VARCHAR2,
o_g_ti_cod IN NUMBER,
@jeantil
jeantil / subgit_post.groovy
Created March 8, 2012 11:16
gitblit hooks to sync with subgit
/*
* Copyright 2011 Jean Helou.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
package dojo.kata;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import sun.swing.MenuItemLayoutHelper.ColumnAlignment;
@jeantil
jeantil / eclipse.template
Created February 7, 2019 08:36
eclipse code template for immutable java messages (akka)
akkam
${is:importStatic(com.google.common.base.Preconditions.checkNotNull)}
public static final class ${messageName}{
private final ${type} ${name:newName(type)};
${cursor}
${messageName}(${type} ${name}){
checkNotNull(${name}, "${name} cannot be null");
this.${name}=${name};
}
public ${type} get${name}(){