Skip to content

Instantly share code, notes, and snippets.

View mRoca's full-sized avatar
:octocat:
wip

Michel Roca mRoca

:octocat:
wip
  • Freelance
  • Paris
View GitHub Profile
@mRoca
mRoca / gist:2a9a63e6212fd969fdff
Last active December 19, 2015 22:29 — forked from cyrosy/gist:031becaba4a4f239ad47
Convert CRLF to LF in files under cwd
for file in $(find '.' -type f); do sed 's/^M//' -i $file; done
@mRoca
mRoca / config
Created August 20, 2013 13:42
Git config : CRLF & File permissions Windows / Linux
[core]
autocrlf = false
filemode = false
@mRoca
mRoca / PhpStorm Regex Replace
Last active August 29, 2015 14:16
xliff ids generator
<trans-unit id="([\w\.]*)">(\s*)<source>([\w\.]*)</source>
<trans-unit id="$3">$2<source>$3</source>
@mRoca
mRoca / gist:522573f9ebf76d6976c5
Last active August 29, 2015 14:18
Ubuntu 14.04 - network applet reinstall
sudo apt-get install --reinstall network-manager
sudo apt-get install --reinstall network-manager-gnome
sudo apt-get install --reinstall libappindicator3-1 libappindicator1
@mRoca
mRoca / git_flow.md
Last active November 6, 2020 17:10
Git flow

Naming convention

Item Name
Release branch release/v2.0.1
Feature branch feature/my_feature_name
Feature branch feature/2234_my_feature_name
Hotfix branch hotfix/my_hotfix_name
Commit Add my news
Tag v2.0.1
@mRoca
mRoca / 1-docker-redmine.md
Last active April 27, 2016 09:00
Redmine docker
@mRoca
mRoca / 1-docker-gitlab.md
Last active August 29, 2015 14:21
Gitlab docker

Gitlab image and doc : https://github.com/sameersbn/docker-gitlab

Install

Create containers

mkdir -p /srv/docker/images/gitlab/
cat docker-compose.yml > /srv/docker/images/gitlab/docker-compose.yml
# Edit the docker-compose.yml file
@mRoca
mRoca / phpstorm_replace.md
Last active August 29, 2015 14:23
Doctrine mapping convert Regex corrector
app/console doctrine:mapping:convert annotation src/Xxxx/XxxxxBundle/Entity --from-database
# Regex replace
@ORM\\Index\(
\n@ORM\\\\Index\(
# String replace
@mRoca
mRoca / Dockerfile
Created July 10, 2015 12:32
docker-nginx-php
# Source : https://github.com/mbentley/docker-nginx-php5
FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y \
php5-fpm \
php5-curl \
php5-intl \