Skip to content

Instantly share code, notes, and snippets.

View greut's full-sized avatar
:shipit:
available for hire

Yoan Blanc greut

:shipit:
available for hire
View GitHub Profile
package main
import (
"fmt"
"github.com/sirupsen/logrus"
"github.com/hashicorp/go-retryablehttp"
)
type LeveledLogrus struct {
*logrus.Logger
@greut
greut / keybase.md
Created September 22, 2020 09:56
keybase.md

Keybase proof

I hereby claim:

  • I am greut on github.
  • I am yblanc (https://keybase.io/yblanc) on keybase.
  • I have a public key whose fingerprint is A2A7 E23A 88A2 1EA5 561E 581F 068A F996 C3F7 2ADA

To claim this, I am signing this object:

Sourdough oatmeal chocolate chip cookies
1/2 cup discard sourdough
1/2 cup softened butter
1 egg
1/2 cup dark brown sugar
@greut
greut / vpn.sh
Created February 20, 2020 11:31
connecting to HE-Arc vpn
#!/bin/bash
USERNAME=yoan.blanc
PASSWORD="..."
GID=100
DIRS="ORG"
PID=openconnect.pid
echo "Welcome to HE-ARC"
echo ""

Keybase proof

I hereby claim:

  • I am greut on github.
  • I am greut (https://keybase.io/greut) on keybase.
  • I have a public key whose fingerprint is 9E2D 407E AFEE 5086 3F42 B9D1 6058 CF45 7429 8812

To claim this, I am signing this object:

(ns aleph.examples.server
(:require
[compojure.core :as compojure :refer [GET]]
[aleph.http :as http]))
(defn hello-handler
[req]
{:status 200
:headers {"content-type" "text/plain"}
:body "hello\n"})
@greut
greut / template.class.php
Last active April 8, 2018 12:45
Oldest running code from @batiste
<?php
/**
Gestion des templates avec remplacement iteratif, récursif et alternatif
@author : Batiste Bieler
@company : http://dosimple.ch
@version : 0.3
Copyright (C) 2004 Bieler Batiste
@greut
greut / clic-et-tax.txt
Created April 3, 2018 20:44
l'enfer des déclarations
bcmail-jdk15on-1.55.jar
bcpkix-jdk15on-1.55.jar
bcprov-jdk15on-1.55.jar
commons-beanutils-1.8.0.jar
commons-codec-1.10.jar
commons-collections-3.2.2.jar
commons-csv-1.3.jar
commons-digester-1.7.jar
commons-lang-2.6.jar
commons-logging-1.1.1.jar
import subprocess
with open("foo.py.gz", "wb") as f:
q = subprocess.Popen(["gzip"], stdout=f, stdin=subprocess.PIPE)
p = subprocess.Popen(["more", "foo.py"], stdout=q.stdin)
q.communicate()
p.wait()
package main
import (
"context"
"fmt"
"net/http"
"time"
)
func test(a, b, c int) {