Skip to content

Instantly share code, notes, and snippets.

@mixin for-size($range) {
$phone-upper-boundary: 600px;
$tablet-portrait-upper-boundary: 900px;
$tablet-landscape-upper-boundary: 1200px;
$desktop-upper-boundary: 1800px;
@if $range == phone-only {
@media (max-width: #{$phone-upper-boundary - 1}) { @content; }
} @else if $range == tablet-portrait-up {
@media (min-width: $phone-upper-boundary) { @content; }

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 )
@naimkhalifa
naimkhalifa / index.html
Last active September 5, 2017 16:29 — forked from CodeMyUI/index.html
Title Swap
<div class="titleWrapper">
<h1 class="first">Flatking</h1> <h1 class="second">Navigation</h1>
</div>
@naimkhalifa
naimkhalifa / post-receive
Created June 12, 2017 15:57
Simple git post-receive hook for OVH shared hosting config
#!/bin/bash
working_dir_base="/homez.172/nomdutilisateur/www/_sites/monsite.git"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
echo "Starting deployment..."
GIT_WORK_TREE=$working_dir_base git checkout $branch -f