Skip to content

Instantly share code, notes, and snippets.

View jeckel's full-sized avatar
🐧
Freelance (Available for new projects)

Julien Mercier-Rojas jeckel

🐧
Freelance (Available for new projects)
View GitHub Profile
@jeckel
jeckel / Locale.php
Last active October 29, 2023 14:48 — forked from heiglandreas/index.php
Locale Value Object
<?php
namespace ValueObject;
use ResourceBundle;
use Stringable;
final readonly class Locale implements Stringable
{
private function __construct(public string $locale) {}
@jeckel
jeckel / .editorconfig
Created April 11, 2019 07:45
My editor config file
# EditorConfig is a normalisation file compatible with different editors
# Find more documentation here : http://editorconfig.org/#download
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
@jeckel
jeckel / config.yml
Last active February 20, 2019 13:52
Loopback CircleCI Sample
version: 2
jobs:
# Run tests
test:
working_directory: ~/novi
docker:
- image: circleci/node:10
- image: postgres:alpine
environment:
POSTGRES_USER: root
@jeckel
jeckel / README.md
Created September 5, 2018 20:42
Migrate running Wordpress into Docker Swarm container

docker-compose.yml:

version: "3.2"
volumes:
  html:

services:
  wordpress:
    image: wordpress:latest
@jeckel
jeckel / APIDays2018-Presentations.md
Last active December 12, 2018 14:39
APIDays 2018 Presentations and Resources

Twitter LinkedIn

APIDays Logo

APIDays 2018 - Presentations and Resources

Here is a collection of links to presentations and other resources shared during the last #APIDays2018 in Paris.

If you find some mistakes, or have any links to add to this list, feel free to add some comments, or contact me on Twitter or LinkedIn

@jeckel
jeckel / .dockerignore
Last active September 4, 2018 06:34
Production ready nodejs Dockerfile sample
# Ignore all .files except .babelrc
.*
!.babelrc
# Ignore build directories and dependencies
# everything that will be re-generated by the install/build steps
lib
dist
node_modules
@jeckel
jeckel / Dockerfile
Created December 13, 2017 15:33
Portainer with NGinx
FROM nginx:alpine
MAINTAINER Julien MERCIER <devci@j3ck3l.me>
# Remove existing configuration
RUN rm -v /etc/nginx/conf.d/*
# Insert our portainer conf
COPY portainer.conf /etc/nginx/conf.d/portainer.conf
@jeckel
jeckel / common.sh
Created May 10, 2017 08:17
Common bash functions
#!/bin/bash
# ----------------------------------------------------------
# Define common colors and styles
#
readonly RED='\033[0;31m'
readonly GREEN='\033[0;32m'
readonly ORANGE='\033[0;33m'
readonly BLUE='\033[0;34m'
readonly PURPLE='\033[0;35m'
@jeckel
jeckel / docker_status.sh
Last active May 9, 2017 14:48
docker_status.sh
#!/bin/bash
function docker_status() {
local CONTAINER=$1
local RUNNING=$(docker inspect --format="{{.State.Running}}" $CONTAINER 2> /dev/null)
if [ $? -eq 1 ]; then
echo "$CONTAINER does not exist."
else
@jeckel
jeckel / Makefile
Last active January 5, 2017 16:36
Makefile for PHP project template
COMPOSER = docker run --rm -it -v `pwd`:/project jeckel/composer:alpine-php7
PHP = docker run --rm -it -v `pwd`:/project -w /project php:7-cli php
CODECEPTION = docker run --rm -it -v `pwd`:/project jeckel/codeception
.PHONY: default install update test
default: install
install:
$(COMPOSER) install --ignore-platform-reqs