Skip to content

Instantly share code, notes, and snippets.

View derekr's full-sized avatar
💭
Chillin'

Derek Reynolds derekr

💭
Chillin'
View GitHub Profile
\b(?i:(SELECT\s+DISTINCT|SELECT|UPDATE|VALUES|INSERT\s+INTO|IN|FROM|WHERE|AND|OR|NOT|LIKE|GROUP\s+BY|UPDATE|SET|DELETE\s+FROM|ORDER\s+BY|LEFT\s+JOIN|RIGHT\s+JOIN|FULL\s+JOIN|CREATE|ALTER|DROP|TABLE|DATABASE|VIEW|TRIGGER|INDEX|USER|USE|ENGINE|CHARSET|AGGREGATE|CONVERSION|DOMAIN|FUNCTION|GROUP|LANGUAGE|OPERATOR|RULE|SCHEMA|SEQUENCE|TABLESPACE|TYPE|CASCADE|RESTRICT|DESC|ASC|AS|IS|ON|REFERENCES|TEMP|TEMPORARY|MATCH|DEFERRABLE|INITIALLY|DEFERRED|IMMEDIATE|ANALYZE|ATTACH))\b
Hey I didn't I could do this!
echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Applications/MAMP/bin/php5/bin/pear
/Users/Derek/.bash_history:export PATH=/usr/local/bin:$PATH
/Users/Derek/.bash_history:export LD_LIBRARY_PATH=/opt/subversion/lib/:$LD_LIBRARY_PATH
/Users/Derek/.bash_history:/Applications/MAMP/bin/php5/bin/php which pear echo $PATH
/Users/Derek/.bash_history:/Applications/MAMP/bin/php5/bin/php which pear; echo $PATH;
/Users/Derek/.bash_history:/Applications/MAMP/bin/php5/bin/php echo $PATH
/Users/Derek/.bash_history:echo $PATH
/Users/Derek/.bash_history:export PATH="$MAGICK_HOME/bin:$PATH"
/Users/Derek/.bash_history:export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
/Users/Derek/.bash_history:export PATH=/opt/local/bin:/opt/local/share:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Applications/MAMP:$PATH
/Users/Derek/.bash_history:echo $PATH
RewriteEngine On
RewriteOptions MaxRedirects=50
LimitInternalRecursion
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]
[Mon Dec 08 10:53:44 2008] [error] [client 208.74.121.102] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://example.com/
[Mon Dec 08 10:53:44 2008] [error] [client 208.74.121.102] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://example.com/
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4168 bytes) in /var/www/includes/Zend/Tool/Framework/Loader/IncludePathLoader.php on line 36
((?x)((\$+)this))((->)([a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*?))*\b
// want to match $this->var1->var2
// matches broken down ($this)(->(var1))(->(var2))
<?php
class Model_Form_Login extends Zend_Form
{
protected $_actionUrl;
public function __construct($actionUrl = null, $options=null)
{
parent::__construct($options);
$this->setActionUrl($actionUrl);
$this->init();
array
0 => string 'Data field one' (length=14)
1 => string 'Data field two' (length=14)
2 => string 'data field three' (length=16)
array
0 => string 'Escaped data field one' (length=22)
1 => string 'Escaped data field two' (length=22)
2 => string 'data field three' (length=16)
array
0 => string 'Data field one' (length=14)