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
| // usage: log('inside coolFunc', this, arguments); | |
| // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
| window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; try { args.callee = f.caller } catch(e) {}; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}}; | |
| // make it safe to use console.log always | |
| (function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}}) | |
| (function(){try{console.log();return window.console;}catch(a){return (window.console={});}}()); | |
| // place any jQuery/helper plugins in here, instead of separate, slower script files. |
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
| ## | |
| # APC recipe | |
| # => convenience rules for dealing with APC in applications | |
| ## | |
| _cset(:apc_webroot) { "" } | |
| namespace :apc do | |
| desc <<-DESC | |
| Create a temporary PHP file to clear APC cache, call it (using curl) and removes it |
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
| { | |
| "name": "real34/agist", | |
| "description": "Sample composer file to proving hosting micropackages on Gists works", | |
| "license": "MIT", | |
| "autoload": { | |
| "classmap": ["."] | |
| } | |
| } |
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
| /** | |
| * Generic script for displaying a "Browser outdated" message to users | |
| * Displays an overlay and a message including the Chrome Frame | |
| * | |
| * @see http://www.browser-update.org/fr/ | |
| */ | |
| var $buoop = { | |
| reminder: 168, | |
| newwindow: true, |
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
| #!/bin/bash | |
| ### MySQL Server Login Info ### | |
| MUSER="root" | |
| MPASS="xxxx" | |
| MHOST="localhost" | |
| MYSQL="/usr/local/bin/mysql" | |
| MYSQLDUMP="/usr/local/mysql/bin/mysqldump" | |
| BACKUP_PATH="/data/backup/mysql" | |
| GZIP="/bin/gzip" |
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
| Options +FollowSymLinks | |
| RewriteEngine On | |
| RewriteBase / | |
| # RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123 # Allowed IP | |
| RewriteCond %{REQUEST_URI} !^/maintenance.php [NC] | |
| RewriteRule .* /maintenance.php [L] |
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 | |
| App::uses('ControllerTestCase', 'TestSuite'); | |
| /** | |
| * Occitech custom Test Library. | |
| * Extends core librairy to add convenience methods. | |
| */ | |
| abstract class OccitechCakeTestCase extends ControllerTestCase { | |
| protected $fixtures = array(); |
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 | |
| /** | |
| * Displays information about the current version of the application | |
| */ | |
| $basePath = ROOT . DS; | |
| $appVersion = array_fill_keys(array('version', 'revision', 'timestamp'), ''); | |
| if (file_exists($basePath . 'version.txt')) { | |
| $appVersion['timestamp'] = filemtime($basePath . 'version.txt'); | |
| $appVersion['version'] = file($basePath . 'version.txt'); |
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
| # Depends on Occitech's CakePHP capistrano recipe (see https://github.com/occitech/capistrano-recipes) | |
| server "xxxx.yyy.com", :app, :web, :db, :primary => true | |
| set :deploy_to, "/xxx/yyy" | |
| set :branch, "develop" | |
| set :url_base, "http://xxx.occi-tech.com" | |
| set :application, "Croogo" | |
| set :repository, "git@xxx/yyy.git" | |
| set :scm, :git | |
| set :git_enable_submodules, 1 |
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 | |
| App::uses('Helper', 'View/Helper'); | |
| App::uses('File', 'Utility'); | |
| class BugherdHelper extends Helper { | |
| public $helpers = array(); | |
| private $__bugherdBlacklistedLayouts = array('ajax', 'admin_popup'); |