composer require vich/uploader-bundle
<?php
class AppKernel extends Kernel
{
public function registerBundles()
{pacin php php-apcu php-gd php-intl php-ldap php-mcrypt php-tidy xdebugwget -qO- https://raw.githubusercontent.com/CHH/phpenv/master/bin/phpenv-install.sh | shgit clone git://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-buildphpenv rehash| # Filename : logoff.ps1 | |
| # Date : January 18, 2016 | |
| # Author : Nicolas JOUBERT | |
| # Description: Logoff script | |
| # ***************************** | |
| $strName = $env:username | |
| $strProfile = $env:userprofile | |
| $srvName = "srvweb" | |
| $atomProcess = Get-Process atom -ErrorAction SilentlyContinue |
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
| #Creation d'un gist |
| <?php | |
| $this->get('session')->getFlashBag()->add( | |
| 'notice', | |
| array( | |
| 'type' => 'info', | |
| 'class' => 'alert alert-info fade in', | |
| 'title' => 'Message flash :', | |
| 'dismissible' => 'alert-dismissible', | |
| 'buttonClose' => '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>', | |
| 'message' => 'La page de contact n\'est pas encore disponible, merci de revenir plus tard.' |
| # installer les paquets suivants | |
| pacin php php-apcu php-gd php-intl php-ldap php-mcrypt php-pear xdebug | |
| # Modifier le fichier /etc/php/php.ini | |
| sudo vim /etc/php/php.ini | |
| ## Definir votre timezone | |
| date.timezone = Europe/Paris | |
| ## Modifier la variable open_basedir | |
| open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/bin/php:/dev/null:/usr/local/bin/ | |
| ## Activer les extensions suivantes | |
| extension=exif.so |
| ######################### | |
| # Autoinstall script using chocolatey | |
| ######################### | |
| function Download-File { | |
| param ( | |
| [string]$url, | |
| [string]$file | |
| ) | |
| Write-Host "Downloading $url to $file" -ForegroundColor Yellow; |
| # Faire un update de babun | |
| babun update | |
| # installation de ruby rubygems rubygems-doc | |
| pact install ruby rubygems rubygems-doc | |
| # On verifie les versions des divers outils | |
| git --version |
| #!/usr/bin/ruby | |
| require 'rubygems' | |
| require 'cgi' | |
| require 'csv' | |
| require 'json' | |
| require 'pp' | |
| # colors | |
| BOLD = "\e[1;39m" | |
| RESET = "\e[0m" |