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 | |
/** | |
* GD Watermark Lib Plugin Definition File | |
* | |
* This file contains the plugin definition for GD Watermark | |
* Usage: | |
* <?php | |
* require_once 'path/to/ThumbLib.inc.php'; | |
* $pic = PhpThumbFactory::create('path/to/pic/destination'); | |
* $watermark = PhpThumbFactory::create('path/to/watermark/destination'); |
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
# compress the code | |
php_value auto_prepend_file ./prepend.php | |
php_value auto_append_file ./append.php |
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
<VirtualHost *> | |
ServerName auth.dev | |
DocumentRoot "/var/www/auth" | |
ProxyPassMatch ^(/.*\.php)$ fcgi://127.0.0.1:9000/var/www/auth | |
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 | |
</VirtualHost> |
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->after(function (Request $request, Response $response) use ($app) { | |
if ($app['debug']) { | |
return; | |
} | |
if (0 === strpos($response->headers->get('Content-Type'), 'text/html')) { | |
$search = array('/\n/','/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'); | |
$replace = array(' ','>','<','\\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
.alert { | |
.fancybox-inner & { | |
margin-bottom: 0; | |
} | |
.media { | |
margin-top: 0; | |
//FIXED width:10000px |
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 | |
@ini_set('zlib.output_compression', 0); | |
@ini_set('output_buffering', 0); | |
@ob_end_clean(); | |
ob_implicit_flush(true); | |
for($i=0; $i<10; $i++){ | |
echo $i; |
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/sh | |
## backup each mysql db into a different file, rather than one big file | |
## as with --all-databases. This will make restores easier. | |
## To backup a single database simply add the db name as a parameter (or multiple dbs) | |
## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is | |
## Create the user and directories | |
# mkdir -p /var/backups/mysql/databases | |
# useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup | |
## Remember to make the script executable, and unreadable by others |
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/sh | |
# This script will install a Git pre-commit hook that stop accidental commits to master and develop branches. | |
# There is also a variant that includes a core.whitespace check. See pre-commit-2 below. | |
# Install in current Git repo: | |
# curl -fL https://gist.githubusercontent.com/stefansundin/9059706/raw/install-pre-commit.sh | sh | |
# Install with core.whitespace check: | |
# curl -fL https://gist.githubusercontent.com/stefansundin/9059706/raw/install-pre-commit.sh | sh -s pre-commit-2 | |
# Install with core.whitespace check and EOF-newline-check: | |
# curl -fL https://gist.githubusercontent.com/stefansundin/9059706/raw/install-pre-commit.sh | sh -s pre-commit-3 | |
# Install only core.whitespace check: |
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": "root/zend-config-operator", | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/ewake/zend-config" | |
} | |
], | |
"require": { | |
"zendframework/zend-config": "dev-master", |
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": { | |
"soundasleep/html2text": "~0.3" | |
} | |
} |
OlderNewer