Skip to content

Instantly share code, notes, and snippets.

View whaze's full-sized avatar

Jerome B. whaze

  • Whodunit
  • Brignoles
View GitHub Profile
@whaze
whaze / .php-cs-fixer.php
Last active June 13, 2025 09:24
Whodunit php-cs-fixer ruleset
<?php
$finder = PhpCsFixer\Finder::create()
->in( __DIR__ )
->name( '*.php' )
->notName( '*.cache.php' )
->ignoreDotFiles( true )
->ignoreVCS( true )
->exclude( [
'node_modules',
@whaze
whaze / reset-rems
Created January 31, 2019 15:11 — forked from mrwweb/reset-rems
"Sanity-ize" REMs by setting them to 10px-baseline aka "Tiny Happy Pixels Dancing."
/* this is the "root" in "root em." */
html {
font-size: 62.5%; /* Now 10px = 1rem! */
}
body {
font-size: 16px; /* px fallback */
font-size: 1.6rem; /* default font-size for document */
line-height: 1.5; /* a nice line-height */
}
@whaze
whaze / wp_auto_install.sh
Created October 2, 2017 07:06 — forked from nicomollet/wp_auto_install.sh
WP-CLI auto install script
#!/bin/bash
# Default options
LOCALE="fr_FR"
DB_HOST='localhost'
VIRUSTOTAL_KEY='YOUR_KEY'
printf "Name of the project? cf My Project: "
read PROJECT_NAME