This file contains 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 | |
// add this code to $ip/extentions/Gist/Gist.php | |
// include this in your LocalSettings.php require_once( "$IP/extensions/Gist/Gist.php" ); | |
// Usage <gist>{id}</gist> | |
$wgHooks['ParserFirstCallInit'][] = 'efGistParserInit'; | |
function efGistParserInit(&$parser) { | |
$parser->setHook( 'gist', 'efGistRender' ); |
This file contains 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 | |
class GoogleAppHelper extends AppHelper{ | |
public function __construct($options = array()){ | |
$default = array( | |
'cachePath' => dirname(dirname(dirname(__FILE__))).DS.'webroot'.DS.'img'.DS.get_class($this).DS, | |
'cacheImagePath' => '/google/img/'.get_class($this).'/' | |
); | |
$options = array_merge($default, $options); |
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule (some_folder/.*) $1 [L] # adjust the regex to what you want. | |
# normal cake rules | |
RewriteRule ^$ webroot/ [L] | |
RewriteRule (.*) webroot/$1 [L] | |
</IfModule> |
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# redirect all www traffic to non-www | |
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
# normal cakephp stuff | |
RewriteRule ^$ webroot/ [L] | |
RewriteRule (.*) webroot/$1 [L] |
This file contains 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
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
[color "diff"] |
This file contains 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
export PATH=$PATH:/var/www/frameworks/cakephp/cake/console |
This file contains 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
This file contains 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
class RandomBehavior extends ModelBehavior | |
{ | |
public $name = 'Random'; | |
This file contains 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 | |
/** | |
* A bunch of methods that can be used to aid the development and release of | |
* an Application | |
* | |
* Copyright (c) 2010 Carl Sutton ( dogmatic69 ) | |
* | |
* @filesource | |
* @copyright Copyright (c) 2010 Carl Sutton ( dogmatic69 ) | |
* @link http://www.infinitas-cms.org |
This file contains 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
/** | |
* Short Description / title. | |
* | |
* Overview of what the file does. About a paragraph or two | |
* | |
* Copyright (c) 2010 Carl Sutton ( dogmatic69 ) | |
* | |
* @copyright Copyright (c) 2010 Carl Sutton ( dogmatic69 ) | |
* @link http://www.infinitas-cms.org | |
* @package {see_below} |