Skip to content

Instantly share code, notes, and snippets.

View olivM's full-sized avatar

Olivier Mourlevat olivM

View GitHub Profile
<img src="/images/mon_image-42x32.jpg" />
#/images/.htaccess
# /images/mon_image-42x32.jpg => /images/timthumbs.php?src=/images/mon_image.jpg&w=45&h=37
RewriteEngine On
RewriteRule ^/images/(.+)-(\d+)x(\d+)\.(jpg|gif|png)$ /images/timthumb.php?src=$1&w=$2&h=$3&zc=1
<!DOCTYPE html>
<html dir="ltr" lang="fr">
<head>
<meta charset="UTF-8" />
<title>Les intitiatives de l&#8217;observatoire | Danone &#8211; Observatoire Hydratation &amp; Santé</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta name='robots' content='noindex,nofollow' />
<link rel="alternate" type="application/rss+xml" title="Danone - Observatoire Hydratation &amp; Santé &raquo; Feed" href="http://danone-hydratation-sante.localhost/feed/" />
<link rel="alternate" type="application/rss+xml" title="Danone - Observatoire Hydratation &amp; Santé &raquo; Comments Feed" href="http://danone-hydratation-sante.localhost/comments/feed/" />
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by quvi configure 0.2.0, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/quvi/0.2.0 --enable-smut --enable-broken
## --------- ##
## Platform. ##
la règle :
if ($args ~* "foo=(.*)$" ){
rewrite ^ /bar/$1/? permanent;
}
ça match bien, il chope pas la backref :
/?foo=bar => /foo//
@olivM
olivM / gist:2510319
Created April 27, 2012 15:50
mysql cli : get all tables size
SELECT TABLE_SCHEMA AS 'Database', TABLE_NAME AS 'Table',
CONCAT(ROUND(((DATA_LENGTH INDEX_LENGTH - DATA_FREE) / 1024 / 1024),2)," Mb") AS Size FROM INFORMATION_SCHEMA.TABLES ORDER BY Size ASC;
@olivM
olivM / gist:3002890
Created June 27, 2012 09:31
brew install -v node ( v0.8.0 )
==> Downloading http://nodejs.org/dist/v0.8.0/node-v0.8.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/node-0.8.0.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/node-0.8.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/node/0.8.0 --without-npm
./configure --prefix=/usr/local/Cellar/node/0.8.0 --without-npm
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
@olivM
olivM / gist:3002894
Created June 27, 2012 09:32
brew --config
HOMEBREW_VERSION: 0.9
HEAD: 131fa4e7def1a7fe1047c3610cf24a97122f5ba0
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit nehalem
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.0: N/A
GCC-4.2: build 5666
@olivM
olivM / gist:3002928
Created June 27, 2012 09:37
brew --doctor
Your system is raring to brew.
@olivM
olivM / gist:3010047
Created June 28, 2012 09:02
less /System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h
/*
File: CoreServices/CoreServices.h
Contains: Master include for CoreServices (non-UI toolbox)
Version: CoreServices-53~104
Copyright: � 1999-2008 by Apple Computer, Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
@olivM
olivM / brew upgrade php53 config.log
Created August 10, 2012 08:53
brew upgrade php53 config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:1897: checking for Cygwin environment
configure:1913: /usr/bin/clang -c -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -I/usr/local/Cellar/zlib/1.2.7/include -I/usr/local/Cellar/libxml2/2.8.0/include -I/usr/local/Cellar/icu4c/49.1.2/include -I/usr/local/Cellar/gettext/0.18.1.1/include -isystem /usr/local/include conftest.c 1>&5
configure:1909:8: error: use of undeclared identifier '__CYGWIN32__'
return __CYGWIN__;
^
configure:1907:20: note: expanded from macro '__CYGWIN__'
#define __CYGWIN__ __CYGWIN32__