Skip to content

Instantly share code, notes, and snippets.

Guillaume J. Charmes creack

Block or report user

Report or block creack

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@creack
creack / main.go
Created Jan 7, 2018 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"
View keybase.io
### Keybase proof
I hereby claim:
* I am creack on github.
* I am creack (https://keybase.io/creack) on keybase.
* I have a public key whose fingerprint is 5B43 4F04 CDCA AEB9 C758 EE49 B33E 4642 CB6E 3FF3
To claim this, I am signing this object:
View dial_from_iface.go
package main
import (
"fmt"
"log"
"net"
"time"
)
// Dialer .
@creack
creack / bench_test.go
Created Oct 1, 2014
gobrake slice pointer vs non pointer
View bench_test.go
package gobrake
import "testing"
func BenchmarkSlicePtr(b *testing.B) {
var (
file = "file.go"
funcName = "func() error { return nil; }"
line = 42
)
View gist:8231109
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFHkTBIBCAC44rjXDaIH0OeBdke1Sbowxse/4b9n/bLPAfY14jYOS7CEYQan
Ia5KeIzONsKzNXfyFBkx8wQ+3plB8zMQvf6xXqFsR2AalXpBUf/02fGebDPmGgRZ
ghl8gVVXlanYxxlC6GMt0QZy/6vbCrXYliE9kAhhLKZ8RlNT4xYDYjJahEAEM+fc
dXcjXp7znKRzVVkcgNDiOExiYiJNYRqF39mnLswl0IVHo9uRzE+Eu1QOIBoyq6v3
ZSyH3wGpHTfiW3ywZbHDbQRCLwSOKJDKjGosI4VDrIJZGPFiCDin2i4q58ddd0pe
xIH0pWshHHXotJFRJjaSWI1S9zi/5eH4Au+/ABEBAAG0M0d1aWxsYXVtZSBKLiBD
aGFybWVzIDxndWlsbGF1bWUuY2hhcm1lc0Bkb2NrZXIuY29tPokBOAQTAQIAIgUC
Upi/wgIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQsz5GQstuP/MwFgf/
View gist:7952170
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCTRpitHLsmeDCT7N7ZJWh+EjDAFdsy9i7a7A32hPBmMFUBgzkj/Dtaivx75RUQGkGKoR0DH1NGYWY0G5sTI1QLCw4rrcfOfFUvDtfkPF2qibecLj5x3DRtwikqjJNNj/3DsWBDZzJZ0nQDixn73G55Dy2QEGTT4ok3MgbWQaWjbfYz2kNsP6F20JkKbz+Z3V8QLXdTtFg0Cnh7Zme3N6RA38lWX2/njT+B2X7Gbhb7LQlzNWf4RSAvokYcpMs/F50dW1E+DFAAgdsjjEMN/uVaI9eVlQytS6R9oUqo867WtLOzq77KIFrRcJRm0U4M+Z4OHQBikkQJ8+TNb/gHeiDf guillaume.charmes
View gist:7952163
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFHkTBIBCAC44rjXDaIH0OeBdke1Sbowxse/4b9n/bLPAfY14jYOS7CEYQan
Ia5KeIzONsKzNXfyFBkx8wQ+3plB8zMQvf6xXqFsR2AalXpBUf/02fGebDPmGgRZ
ghl8gVVXlanYxxlC6GMt0QZy/6vbCrXYliE9kAhhLKZ8RlNT4xYDYjJahEAEM+fc
dXcjXp7znKRzVVkcgNDiOExiYiJNYRqF39mnLswl0IVHo9uRzE+Eu1QOIBoyq6v3
ZSyH3wGpHTfiW3ywZbHDbQRCLwSOKJDKjGosI4VDrIJZGPFiCDin2i4q58ddd0pe
xIH0pWshHHXotJFRJjaSWI1S9zi/5eH4Au+/ABEBAAG0M0d1aWxsYXVtZSBKLiBD
aGFybWVzIDxndWlsbGF1bWUuY2hhcm1lc0Bkb2NrZXIuY29tPokBOAQTAQIAIgUC
Upi/wgIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQsz5GQstuP/MwFgf/
@creack
creack / Dockerfile
Created Jun 19, 2013
Dockerfile for prestashop/lamp
View Dockerfile
# PrestaShop
#
# VERSION 0.1
# DOCKER-VERSION 0.2
from ubuntu:12.04
# make sure the package repository is up to date
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
@creack
creack / prestashop.sh
Created Jun 19, 2013
prestasthop orchestration for docker
View prestashop.sh
#!/bin/sh
# Set conveniance variables0
PS_PATH=/var/www/prestashop
PS_SETTINGS_FILE=$PS_PATH/config/settings.inc.php
PS_SETTINGS_TEMPLATE=$PS_PATH/config/settings.inc.php.template
# Build the base PrestaShop image from the Dockerfile
IMAGE_ID=$(cat Dockerfile | docker build - | tail -1)
View getnaked.sh
#!/bin/sh
rm -rf rootfs
mkdir rootfs
cd rootfs
mkdir -p bin etc dev dev/pts lib proc sys tmp usr var/run
touch etc/resolv.conf
cat /etc/passwd | head -1 > etc/passwd
cat /etc/group | head -1 > etc/group
ln -s lib lib64
ln -s bin sbin
You can’t perform that action at this time.