Skip to content

Instantly share code, notes, and snippets.

🐧
Freelance (Available for new projects)

Julien Mercier jeckel

🐧
Freelance (Available for new projects)
Block or report user

Report or block jeckel

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
@jeckel
jeckel / .screenrc
Created Aug 25, 2016
Screen configuration file
View .screenrc
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
View ZSH Theme.md

This is my theme for oh-my-zsh.

It's a fork from the clean theme with some personnal modifications

@jeckel
jeckel / Makefile
Last active Jan 5, 2017
Makefile for PHP project template
View Makefile
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
View aliases.sh
#!/bin/bash
#########################################################
# docker
# Stop all running container
alias dstopall="if [ \$(docker ps -q | wc -l) -gt 0 ] ; then docker stop \$(docker ps -q); fi"
# Remove all container's instance
alias drmall="if [ \$(docker ps -aq | wc -l) -gt 0 ] ; then docker rm \$(docker ps -aq); fi"
# Remove all untagged / unfinished images
alias drminone="if [ \$(docker images -q --filter dangling=true | wc -l) -gt 0 ] ; then ; docker rmi -f \$(docker images -q --filter dangling=true) ; fi"
@jeckel
jeckel / docker_status.sh
Last active May 9, 2017
docker_status.sh
View 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 / Dockerfile
Created Dec 13, 2017
Portainer with NGinx
View Dockerfile
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
Common bash functions
View common.sh
#!/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 / .dockerignore
Last active Sep 4, 2018
Production ready nodejs Dockerfile sample
View .dockerignore
# 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 / README.md
Created Sep 5, 2018
Migrate running Wordpress into Docker Swarm container
View README.md

docker-compose.yml:

version: "3.2"
volumes:
  html:

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

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

You can’t perform that action at this time.