Skip to content

Instantly share code, notes, and snippets.

PHP-CLI (PHP en ligne de commande) sur les hébergements mutualisés OVH

(cli)

/usr/local/php5.3/bin/php  =>  PHP 5.3.29 (cli) (built: Mar  4 2016 09:03:42)
/usr/local/php5.4/bin/php  =>  PHP 5.4.45 (cli) (built: Apr 11 2016 06:20:17)
/usr/local/php5.5/bin/php  =>  PHP 5.5.35 (cli) (built: May  2 2016 07:16:01)
/usr/local/php5.6/bin/php  =>  PHP 5.6.21 (cli) (built: Apr 29 2016 07:02:48)
/usr/local/php7.0/bin/php => PHP 7.0.6 (cli) (built: Apr 29 2016 07:02:25) ( NTS )

PHP-CLI (PHP en ligne de commande) sur les hébergements mutualisés OVH

(cli)

/usr/local/php5.3/bin/php  =>  PHP 5.3.29 (cli) (built: Mar  4 2016 09:03:42)
/usr/local/php5.4/bin/php  =>  PHP 5.4.45 (cli) (built: Apr 11 2016 06:20:17)
/usr/local/php5.5/bin/php  =>  PHP 5.5.35 (cli) (built: May  2 2016 07:16:01)
/usr/local/php5.6/bin/php  =>  PHP 5.6.21 (cli) (built: Apr 29 2016 07:02:48)
/usr/local/php7.0/bin/php => PHP 7.0.6 (cli) (built: Apr 29 2016 07:02:25) ( NTS )
@Jmoati
Jmoati / docker-compose-install.sh
Created August 19, 2016 07:14 — forked from marszall87/docker-compose-install.sh
Simple script for installing latest Docker Compose on CoreOS >= 717.0.0
#!/bin/bash
mkdir -p /opt/bin
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
@Jmoati
Jmoati / alpine-install.sh
Created July 22, 2016 21:12 — forked from thde/alpine-install.sh
A script to install alpine linux. Tested on Hetzner, Kimsufi / OVH
#!/bin/sh
set -ex
PATH=/bin:/sbin:/usr/bin:/usr/sbin
KEYMAP="us us"
HOST=alpine
USER=anon
ROOT_FS=ext4
BOOT_FS=ext4
#!/bin/bash
#
# This script will mount /Users in the boot2docker VM using NFS (instead of the
# default vboxsf). It's probably not a good idea to run it while there are
# Docker containers running in boot2docker.
#
# Usage: sudo ./boot2docker-use-nfs.shz
#

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
<?php
// ...
class AbstractInvoiceLineType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
// ...