pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
| @mixin browser-ie11 { | |
| @media (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
| @content; | |
| } | |
| } | |
| @mixin browser-edge { | |
| @supports (-ms-user-select: none) { | |
| @content; | |
| } |
| from selenium import webdriver | |
| import sys, getopt, time, subprocess, shlex | |
| from xvfbwrapper import Xvfb | |
| def run(): | |
| print('Sreencast website animation') | |
| xvfb = Xvfb(width=1280, height=720, colordepth=24) | |
| xvfb.start() |
| # see https://github.com/cmaessen/docker-php-sendmail for more information | |
| FROM php:5-fpm | |
| RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
| RUN docker-php-ext-install mysql mysqli sysvsem | |
| RUN pecl install xdebug-2.5.5 \ | |
| && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ |
Un guide bienveillant pour les propriétaires de chien : des parcours d'apprentissage, des guides pratiques, des fiches de races et un assistant qui répond à vos questions en s'appuyant uniquement sur ces guides.
Sweet Dog est un « concierge du canon » : son assistant ne répond qu'à partir des guides publiés ci-dessous et ne contredit jamais un guide. Édition française (langue de référence) ; l'édition anglaise suit, après le séparateur.
- Sweet Dog — poser une question: La page d'accueil EST l'assistant : posez une question, il répond à partir des guides.
- Apprendre: Le catalogue des parcours et des guides.
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi | |
| apt-get update | |
| apt-get install -y git-core autoconf bison libxml2-dev libbz2-dev libmcrypt-dev libcurl4-openssl-dev libltdl-dev libpng-dev libpspell-dev libreadline-dev make | |
| mkdir -p /etc/php7/conf.d | |
| mkdir -p /etc/php7/cli/conf.d | |
| mkdir /usr/local/php7 |
| // Run this from the commandline: | |
| // phantomjs runner.js | ffmpeg -y -c:v png -f image2pipe -r 24 -t 10 -i - -c:v libx264 -pix_fmt yuv420p -movflags +faststart output.mp4 | |
| var page = require('webpage').create(), | |
| address = 'http://s.codepen.io/phanan/fullembedgrid/YPLewm?type=embed&safe=true&_t=1424767252279', | |
| duration = 3, // duration of the video, in seconds | |
| framerate = 24, // number of frames per second. 24 is a good value. | |
| counter = 0, | |
| width = 500, | |
| height = 500; |
| Use phantomjs. Start it: | |
| $ phantomjs --webdriver=127.0.0.1:8910 | |
| Use: | |
| require_once('lib/__init__.php'); | |
| $host = '127.0.0.1:8910'; | |
| $capabilities = array( | |
| WebDriverCapabilityType::BROWSER_NAME => 'phantomjs', |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
| #! /bin/sh | |
| # Installation | |
| # - Move this to /etc/init.d/myservice | |
| # - chmod +x this | |
| # | |
| # Starting and stopping | |
| # - Start: `service myservice start` or `/etc/init.d/myservice start` | |
| # - Stop: `service myservice stop` or `/etc/init.d/myservice stop` |