Skip to content

Instantly share code, notes, and snippets.

@mistergraphx
mistergraphx / MySQL_macOS_Sierra.md
Last active May 1, 2018 09:51 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

# http://robots-txt.com/
# Outil de test du robot.txt
# https://technicalseo.com/seo-tools/robots-txt/
# User-agents, cibler certains robots d'indexation
# User-agent: Googlebot
User-agent: *
# Ne rien indexer
Disallow: /
# https://git-scm.com/docs/gitignore
# https://www.gitignore.io/
# Sass
.sass-cache/
*.css.map
#SCM
.svn/
.card-grid
.card
.card-media
img(src="https://images.unsplash.com/photo-1465414829459-d228b58caf6e")
.card-content
.title
| Titre de la card
.subtitle
| some sub informations
.description
@mistergraphx
mistergraphx / SassMeister-input.scss
Last active January 27, 2018 16:09
Nested selectors test : selector_nest()
// ----
// libsass (v3.5.0.beta.2)
// ----
// Nested selectors test
$modifiers: '.footer','.header', '.main-heading' ;
$modified: '.logo','.title','.sub-title';
$selectors: ();
@function ns($map, $path) {
$keys: ();
$separator: '.';
$index : str-index($path, $separator);
@while $index != null {
$item: str-slice($path, 1, $index - 1);
$keys: append($keys, $item);
$path: str-slice($path, $index + 1);
$index : str-index($path, $separator);
@mistergraphx
mistergraphx / SassMeister-input-HTML.html
Last active January 19, 2018 06:30
Track informations about font in use
<div class="wrapper">
<form class="side-by-side">
<div class="form-group">
<label>Label</label>
<input type="text" value="text"/>
</div>
<div class="form-group">
<label>Label</label>
<input class="error" type="text" value="text"/>

Commands and Keybindings

Command Selector Description Keybinding (Linux) Keybinding (macOS) Keybinding (Windows)
link:open atom-text-editor Opens the http(s) link under the cursor ctrl-shift-o
platformio-ide-terminal:insert-selected-text Run in terminal selection or commands by line ctrl-shift-o
@mistergraphx
mistergraphx / inc-dateur.html
Created January 8, 2018 14:33
Spip - Dateur : exclure des jours et les WE du datepicker
<script type='text/javascript'>/*<![CDATA[*/
function date_picker_options(){
return {
buttonText: '<:afficher_calendrier|texte_script:>',
buttonImage: '#CHEMIN_IMAGE{calendrier-16.png}',
buttonImageOnly: true,
closeText: '<:bouton_fermer|texte_script:>',
prevText: '<:precedent|texte_script:>',
nextText: '<:suivant|texte_script:>',
currentText: '<:date_aujourdhui|texte_script:>',
@mistergraphx
mistergraphx / box.php
Last active February 8, 2018 13:16
SPIP Déclarer une nouvelle wheel à TextWheel
<?php
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
// @see http://zone.spip.org/trac/spip-zone/browser/_plugins_/todo/trunk/wheels/todo.php
// test : http://lumadis.be/regex/test_regex.php?id=3254
// Extraction de lignes du texte
// La wheel renvoie un tableau à cette callback qui est le résultat d'un preg_match_all.