Skip to content

Instantly share code, notes, and snippets.

View jmfayard's full-sized avatar

Jean-Michel Fayard jmfayard

View GitHub Profile

Chère madame, cher monsieur,

Je ne vous cache pas que j’ai des choses à vous dire à propos de votre site que vous pourrez trouver sur le moment assez désagréable.

Je vous contacte à la fois

  • en mon nom propre parce que je trouve sincèrement que votre site est intéressant et utile (le simple fait que je vous contacte vous parmi les 700 millions et quelques de sites en activité devrait suffir pour vous en convaincre)
  • et en tant que l'un des nombreux volontaires du site participatif tosdr.org qui s'est fixé comme objectif de synthétiser et rendre plus facile d'accès aux internautes "normaux" les termes de services qu'ils sont censés avoir "lus et approuvés".
git commit -a -m "pushing new version at $(date)"
git status
jekyll build --destination ../_site
git checkout gh-pages
rm -rf *
cp -rf ../_site/* .
git add .
git commit -a -m "pushing new version at $(date)"
# sync with GitHub.app
open -a GitHub
@jmfayard
jmfayard / vu
Last active December 22, 2015 15:49
VU ? J'avais pas VU
# J'ai su tout de suite que ça allait être pourri
> voici mon premier journal sous ce pseudo (mais j’en ai eu de nombreux auparavant vu que je fréquente linuxfr depuis dix ans)
Ben moi je fréquente linuxfr depuis 14 ans et je ne comprends pas la signification du "vu" dans ta phrase. (Bon c'est mon deuxième pseudo VU que j'ai paumé il y a fort longtemps le mot de passe du premier).
MacbookPro-JMF in ~/Downloads
○ → cp -rv fwdnotasescaneadas fwdnotasescaneadas.copie
fwdnotasescaneadas -> fwdnotasescaneadas.copie/fwdnotasescaneadas
fwdnotasescaneadas/img305.jpg -> fwdnotasescaneadas.copie/fwdnotasescaneadas/img305.jpg
fwdnotasescaneadas/img306.jpg -> fwdnotasescaneadas.copie/fwdnotasescaneadas/img306.jpg
fwdnotasescaneadas/img307.jpg -> fwdnotasescaneadas.copie/fwdnotasescaneadas/img307.jpg
fwdnotasescaneadas/img308.jpg -> fwdnotasescaneadas.copie/fwdnotasescaneadas/img308.jpg
fwdnotasescaneadas/img309.jpg -> fwdnotasescaneadas.copie/fwdnotasescaneadas/img309.jpg
fwdnotasescaneadas/img310.jpg -> fwdnotasescaneadas.copie/fwdnotasescaneadas/img310.jpg
@jmfayard
jmfayard / nginx.conf debian wheezy with php5-fpm
Last active December 26, 2015 15:19
Here is my /etc/nginx/nginx.conf on a self hosted Debian server I want to be able to use nginx+php5-fpm Even a simple php script doesn't work I want to use dokuwiki and dotclear once it works
# Sources that didn't help
# http://serverfault.com/questions/406158/nginx-php5-fpm-file-not-found
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/IfIsEvil
# https://gist.github.com/internaciulo/7172230
# http://kemovitra.blogspot.fr/2013/10/enabling-status-page-for-php5-fpm.html
user www-data;
worker_processes 2;
pid /var/run/nginx.pid;
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/usr). This prefix can be dynamicaly changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
@jmfayard
jmfayard / fastcgiparams
Created October 26, 2013 21:33
/etc/nginx/fastcgi_params
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
@jmfayard
jmfayard / gist:7175247
Created October 26, 2013 22:21
/etc/php5/fpm/pool.d/www.conf
;; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
@jmfayard
jmfayard / javascript_resources.md
Created May 9, 2014 22:35 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@jmfayard
jmfayard / rails_resources.md
Created May 9, 2014 22:35 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h