Skip to content

Instantly share code, notes, and snippets.

View loranger's full-sized avatar

Laurent Goussard loranger

View GitHub Profile
@loranger
loranger / Full command
Created April 2, 2015 10:20
Output of brew install -v php56.rb
brew install -v /usr/local/Library/Taps/josegonzalez/homebrew-php/Formula/php56.rb --with-mssql, --with-homebrew-curl, --with-imap, --without-pear, --with-phpdbg, --with-thread-safety, --with-homebrew-libxslt, --with-tidy
@loranger
loranger / main.yaml
Created February 10, 2015 13:52
Ansible mysql slave playbook sample
- name: generate server-id
shell: hostname -I | sed -e 's/ \+\([a-z0-9]\+\:\)\+[a-z0-9]\+//' | sed -e 's/ /\n/' | grep -v '^$' | tail -1 | awk -F. '{print $3 * 256 + $4}'
register: mysql_server_id
- name: check replication slave status
mysql_replication: mode=getslave
ignore_errors: true
register: slave
[{"name":"Machines","color":"Red","position":{"x":660,"y":223},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"IPV4","type":"string","length":"15","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c23","order":0},{"name":"IPV6","type":"string","length":"39","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":true,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c31","order":1},{"name":"country_id","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c64","order":2},{"name":"provider_id","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":fal
Verifying that +loranger is my Bitcoin username. You can send me #bitcoin here: https://onename.io/loranger
@loranger
loranger / gist:a45a219c402380983e75
Created July 14, 2014 08:41
Confide install failed
$ composer require "zizaco/confide:3.2.*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- zizaco/confide 3.2.3 requires laravelbook/ardent dev-master -> no matching package found.
- zizaco/confide 3.2.2 requires laravelbook/ardent dev-master -> no matching package found.
- zizaco/confide 3.2.1 requires laravelbook/ardent dev-master -> no matching package found.
@loranger
loranger / gist:9663744
Created March 20, 2014 13:31
Log from launchrocket 0.6 with php-fpm
20/03/2014 14:28:49,017 System Preferences[61661]: Initialzing LaunchRocket
20/03/2014 14:28:49,017 System Preferences[61661]: Initializing service mananger
20/03/2014 14:28:49,019 System Preferences[61661]: Attempting to load services from plist
20/03/2014 14:28:49,025 System Preferences[61661]: Initializing service homebrew.mxcl.dnsmasq
20/03/2014 14:28:49,025 System Preferences[61661]: Executing command: /bin/launchctl list | grep homebrew.mxcl.dnsmasq
20/03/2014 14:28:49,432 System Preferences[61661]: Result of `/bin/launchctl list | grep homebrew.mxcl.dnsmasq` was
20/03/2014 14:28:49,434 System Preferences[61661]: Initializing service homebrew.mxcl.mysql
20/03/2014 14:28:49,434 System Preferences[61661]: Executing command: /bin/launchctl list | grep homebrew.mxcl.mysql
20/03/2014 14:28:49,455 System Preferences[61661]: Result of `/bin/launchctl list | grep homebrew.mxcl.mysql` was 14777 - homebrew.mxcl.mysql
20/03/2014 14:28:49,457 System Preferences[61661]: Initializing service homebrew.mxcl.redis
@loranger
loranger / gist:9003874
Last active August 29, 2015 13:56
Pourquoi je reste sous MacOSX

EDIT : Suite à mon gist, le post de Seb a disparu. Ça n'était vraiment pas l'effet escompté. Je tiens donc à présenter mes plus plates excuses à Seb pour l'offense et à l'Internet pour la disparition d'une ressource :/


Aujourd'hui c'est dredi. Jour cool s'il en est. Déjà, on déploie pas, en plus c'est “le jour de la bière” et puis pour rendre tout ça encore plus drôle, on peut troller en toute impunité. Et c'est ce qui s'est passé : Vers 11h, on m'a fait parvenir cet article de Seb sur son “unswitch”.

Sans rentrer dans les détails, et sans compter quelques incursions sous TOS, j'ai passé la moitié de ma vie numérique sous Windows (3.1, 95, [2000](http://fr.wikipedia.

@loranger
loranger / Helpers.php
Last active January 8, 2022 17:24
My casual helpers
<?php
/**
* Toolbox
* A pool of useful functions
*
* @author loranger
*/
/**
@loranger
loranger / git.sh
Created January 19, 2014 12:43 — forked from dpaluy/git.sh
# Git repository-specific solution
# Source: http://unix.stackexchange.com/questions/36233/how-to-skip-file-in-sed-if-it-contains-regex/36240#36240
git grep -I --name-only -z -e '' | xargs -0 sed -i -e 's/[ \t]\+\(\r\?\)$/\1/'
@loranger
loranger / bower update jquery log
Created February 8, 2013 17:55
bower update jquery log
loranger@Merlin:~/my/project/ $ bower list
bower discover Please wait while newer package versions are being discovered
/Users/loranger/my/project/
├── project#
├── jQuery-Parallax#bdcb08f5b6936d1920146ba7973112c3341eba8c
├── jquery#1.8.3 (1.9.1 now available)
├── jquery-scrollspy#2edc2d98e0256cb79cecce61e8c17f2a0a3b8952
├─┬ jquery.localScroll#50a228350f9d769548c83b2e295d952a4e96ae8f
│ ├── jquery#1.8.3 (1.9.1 now available)
│ └─┬ jquery.scrollTo#1.4.4