This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined | |
| LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined | |
| LogFormat "%h %l %u %t \"%r\" %>s %b" common | |
| LogFormat "%{Referer}i -> %U" referer | |
| LogFormat "%{User-agent}i" agent | |
| # | |
| # Define an access log for VirtualHosts that don't define their own logfile | |
| CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Télécharger Drush & décompresser drush ;-) (le répertoire doit s'appeler 'drush') | |
| 2. Ouvrir le terminal | |
| 3. Taper : open /usr/local | |
| 4. Glisser/déposer le répertoire 'drush' dans la fenêtre finder qui vient de s'ouvrir (Taper son mot de passe quand OS X le demande) | |
| 5. Dans le terminal taper: sudo chmod u+x /usr/local/drush/drush | |
| 6. Dans le terminal taper: sudo ln -s /usr/local/drush/drush /usr/bin/drush | |
| 7. Taper son mot de passe OS X | |
| 8. Tester la commande 'drush' depuis un répertoire drupal | |
| Utiliser PHP5 de MAMP (optionnel) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // #Lighter r,g,b,a #Darker r,g,b,a | |
| #define MAIN_COLOR_COMPONENTS { 0.153, 0.306, 0.553, 1.0, 0.122, 0.247, 0.482, 1.0 } | |
| #define LIGHT_COLOR_COMPONENTS { 0.478, 0.573, 0.725, 1.0, 0.216, 0.357, 0.584, 1.0 } | |
| @implementation UINavigationBar (UINavigationBarCategory) | |
| - (void)drawRect:(CGRect)rect { | |
| if (imageReady) { | |
| UIImage *img = [UIImage imageNamed: @"navigation_background.png"]; | |
| [img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSError* error; | |
| if(![context save:&error]) { | |
| NSLog(@"Failed to save to data store: %@", [error localizedDescription]); | |
| NSArray* detailedErrors = [[error userInfo] objectForKey:NSDetailedErrorsKey]; | |
| if(detailedErrors != nil && [detailedErrors count] > 0) { | |
| for(NSError* detailedError in detailedErrors) { | |
| NSLog(@" DetailedError: %@", [detailedError userInfo]); | |
| } | |
| } | |
| else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/ruby | |
| # | |
| # This script helps us make doxygen comments in obj-c files in Xcode | |
| # | |
| # Created by Fred McCann on 03/16/2010. | |
| # http://www.duckrowing.com | |
| # | |
| module Duckrowing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Process: My Memory [773] | |
| Path: /Applications/My Memory.app/Contents/MacOS/My Memory | |
| Identifier: fr.breek.My-Memory | |
| Version: 1.0 (1) | |
| Code Type: X86 (Native) | |
| Parent Process: launchd [89] | |
| Date/Time: 2011-01-05 14:50:29.751 +0100 | |
| OS Version: Mac OS X 10.6.5 (10H574) | |
| Report Version: 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSLocale *local = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; | |
| formatter = [[NSNumberFormatter alloc] init]; | |
| [formatter setFormatterBehavior:NSNumberFormatterBehavior10_4]; | |
| [formatter setLocale:local]; | |
| [local release]; | |
| [formatter setNumberStyle:NSNumberFormatterDecimalStyle]; | |
| [formatter setAlwaysShowsDecimalSeparator:YES]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Country list ISO-3166-1 (ALPHA 2) in french | |
| */ | |
| function countries() { | |
| $countries = array( | |
| 'AF' => 'Afghanistan', | |
| 'ZA' => 'Afrique Du Sud', | |
| 'AX' => 'Åland, Îles', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dscacheutil -flushcache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mina/git' | |
| # Basic settings: | |
| # domain - The hostname to SSH to. | |
| # deploy_to - Path to deploy into. | |
| # repository - Git repo to clone from. (needed by mina/git) | |
| # branch - Branch name to deploy. (needed by mina/git) | |
| case ENV['to'] | |
| when 'production' | |
| set :domain, 'www.foo.bar' |
OlderNewer