Skip to content

Instantly share code, notes, and snippets.

View romainPrignon's full-sized avatar

Romain Prignon romainPrignon

View GitHub Profile
@romainPrignon
romainPrignon / readme.md
Last active March 3, 2019 16:57 — forked from jakewtaylor/readme.md
VS Code CSS addition to increase readability on file tree.
  • Add the following CSS into /usr/share/coderesources/app/out/vs/workbench/workbench.main.css
@romainPrignon
romainPrignon / multi-php.sh
Last active October 17, 2016 11:33 — forked from shoaibali/gist:1ba410bb42d8d9cff160635f7ad79efa
multiple versions of php on Ubuntu Xenial 16.04 down grade to php5.6 from php7
# reference1: https://by-example.org/ubuntu-16-04-xenial-downgrade-php-7-to-php-5-6/
# reference2: https://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04/761735
# reference2 (recommended)
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0 php5.6
@romainPrignon
romainPrignon / tmux.conf
Created February 7, 2016 08:32 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
<?php
// Snippet for Symfony 2 application that uses Doctrine 2 to handle transactions
// It uses the names of the objects/doctrine repositories from the Beta 4 Manual of Symfony 2.
// Get the entity manager
$em = $this->getDoctrine()->getEntityManager();
// suspend auto-commit
$em->getConnection()->beginTransaction();