Skip to content

Instantly share code, notes, and snippets.

View jbfarez's full-sized avatar

Jean-Baptiste Farez jbfarez

View GitHub Profile
@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
package simple-updater
import (
"fmt"
"io"
"io/ioutil"
"os"
"runtime"
"strconv"
"strings"
@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
@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"
/var/lib/docker/containers/*/*.log {
rotate 3
daily
compress
size=10M
missingok
delaycompress
copytruncate
}

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:

@jbfarez
jbfarez / xcxt-mn.md
Last active December 29, 2017 21:35
XCXT Masternode setup

CoinonatX masternode setup

Summary

This document is a guide to setup a CoinonatX masternode on a Debian server, created at Scaleway, and it assume you’re running Windows or Mac. Requirements:

  • A server running Linux
require "language/go"
class Packer < Formula
desc "Tool for creating identical machine images for multiple platforms"
homepage "https://packer.io"
url "https://github.com/hashicorp/packer.git",
:tag => "v1.0.2",
:revision => "84b9b07901fabfeab1325eb2d8d207aeefa944c7"
head "https://github.com/hashicorp/packer.git"
127.0.0.1
@jbfarez
jbfarez / default.conf
Last active June 21, 2017 16:10
upKVmyjrBtqtfa3
server {
listen 15999;
location / {
proxy_pass http://$http_host;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Via "Admin_Lobby_Proxy";