Skip to content

Instantly share code, notes, and snippets.

View jbfarez's full-sized avatar

Jean-Baptiste Farez jbfarez

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jbfarez on github.
  • I am jibek (https://keybase.io/jibek) on keybase.
  • I have a public key ASBPyy0iMJ095_s0dXLe6E8GtsWdY_1MvsnVwFCu1aByxAo

To claim this, I am signing this object:

/var/lib/docker/containers/*/*.log {
rotate 3
daily
compress
size=10M
missingok
delaycompress
copytruncate
}
@jbfarez
jbfarez / 15-acme-operations.tf
Created July 17, 2018 14:47 — forked from QuingKhaos/15-acme-operations.tf
Terraform initialization of AWS sub account
// Configure AWS provider
variable "acme_operations" {
default = "ACCOUNTID"
}
provider "aws" {
alias = "acme_operations"
profile = "acme_operations"
region = "${var.aws_default_region}"
shared_credentials_file = "./credentials"
@jbfarez
jbfarez / log.sh
Created May 4, 2021 08:01
Bash simple log function
logMe() {
local LIGHT_RED="\033[1;31m"
local LIGHT_GREEN="\033[1;32m"
local YELLOW="\033[0;33m"
local DELIM="\033[00m"
local LEVEL=$1
local MSG=$2
case ${LEVEL} in
package simple-updater
import (
"fmt"
"io"
"io/ioutil"
"os"
"runtime"
"strconv"
"strings"
@jbfarez
jbfarez / .gitconfig
Created October 24, 2022 12:33
Gitconfig
[user]
name = {{FULL_NAME}}
email = {{EMAIL}}@ankorstore.com
signingkey = {{GPG_KEY}}
[core]
excludesfile = ~/.gitignore
[branch]
autosetuprebase = always