Skip to content

Instantly share code, notes, and snippets.

View jmeyo's full-sized avatar
👸
Focusing

Jean-Christophe Meillaud jmeyo

👸
Focusing
View GitHub Profile
@jmeyo
jmeyo / gist:17db055a26d8490e6e194e2012d4a64c
Last active January 11, 2017 16:29
Mautic nginx conf
server {
listen 80;
server_name mautic.somedomain.com;
root /usr/share/nginx/mautic;
index index.php;
access_log /var/log/nginx/mautic.access.log;
error_log /var/log/nginx/mautic.error.log;
server {
listen 80;
server_name __project_hosts__;
root __project_path__;
index index.php;
access_log /var/log/nginx/__project_name___project_dev.access.log;
error_log /var/log/nginx/__project_name___project_dev.error.log;
@jmeyo
jmeyo / background.js
Last active March 2, 2016 02:34 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@jmeyo
jmeyo / gist:b2e2bdb24a91e957a71f
Last active August 29, 2015 14:20
Docker Server commands
PS1='${debian_chroot:+($debian_chroot)}\u@www-nginx:\w\$ '
@jmeyo
jmeyo / gist:16f1b352b3b1c8b6251d
Last active August 29, 2015 14:18
PHP oldversion compilation on ubuntu server
TMPDIR=$( mktemp -d 2>/dev/null )
cd $TMPDIR
VERSION=5.3.29 #latest php released stable version in 5.3.X
wget http://in1.php.net/distributions/php-$VERSION.tar.bz2
tar xvf php-$VERSION.tar.bz2
cd php-$VERSION
@jmeyo
jmeyo / gist:dcff1194a0a54c0c72af
Created March 23, 2015 23:52
Install imapsync debian
apt-get update && apt-get upgrade
sudo apt-get install libdate-manip-perl libterm-readkey-perl libterm-readkey-perl libdigest-hmac-perl libdigest-hmac-perl libdate-manip-perl libmail-imapclient-perl makepasswd rcs perl-doc git
cd /tmp
git clone git://github.com/imapsync/imapsync.git
cd imapsync
sh examples/install_modules_linux.sh
apt-get install build-essential
sh examples/install_modules_linux.sh
#!/bin/bash
# add vhost for a new nginx project
# use like this : do_nginx_proxy_vhost subdir.example.com http://192.168.0.20:8080
function do_nginx_new_vhost() {
[ -z $1 -o -z $2 -o "$3" ] && echo "Give name, path and hosts" && return
name=$1
path=$2
@jmeyo
jmeyo / gist:2dfe389af1ee1405d876
Created October 6, 2014 10:44
Git ignore global
git config --global core.excludesfile ~/work/.gitignore_global
Content of the .gitignore :
.idea
@jmeyo
jmeyo / symfony-frontend-design.md
Last active August 29, 2015 14:03
Symfony Frontend Design
@jmeyo
jmeyo / gist:45320821eb58f8bda6e4
Last active August 29, 2015 14:03
Symfony Database Design

Some of the links and tool we always need when doing Database Design with Symfony

Doctrine cookbook

Generating Getter and Setter

$ php app/console doctrine:generate:entities Acme/StoreBundle/Entity/Product