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
#!/bin/bash | |
# Simple MySQL dump script which dumps each database to a compressed | |
# file with the date included in the file name | |
MYSQL='/usr/bin/mysql' | |
MYSQLDUMP='/usr/bin/mysqldump' | |
DUMPOPTS='--opt --hex-blob --skip-extended-insert' |
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
#!/usr/bin/php | |
<?php | |
// Install these with PEAR | |
require_once 'Console/CommandLine.php'; | |
require_once 'Console/Color.php'; | |
require_once 'Console/ProgressBar.php'; | |
define('NL', "\n"); |
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
#!/usr/bin/php | |
<?php | |
define('PHPFARM_BIN_PATH', '/home/dprevite/phpfarm/inst/bin/'); // WITH trailing slash | |
define('NL', "\n"); | |
/** | |
* undocumented function | |
* |
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
find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \; |
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
@charset "utf-8"; | |
#main-table { | |
background-image: none !important; | |
} |
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 | |
/** | |
* Set a flash message to be displayed | |
* | |
* @param string $type The type of message, used for styling (error|success|warning|information) | |
* @param string $message The message to be displayed | |
* | |
* @return void |
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
function simplexml_to_array($simplexml_object) { | |
$array = array(); | |
$children = $simplexml_object->children(); | |
$executed = false; | |
foreach ($children as $elementName => $node) { | |
if ($array[$elementName] != null) { | |
if ($array[$elementName][0] !== null) { | |
$i = count($array[$elementName]); | |
simplexml_to_array($node, $array[$elementName][$i]); | |
} else { |
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
#!/usr/bin/php | |
<?php | |
// Constants we need to do things | |
define('WEB_ROOT', '/var/www/branches.projectdomain.com/'); // Requires trailing slash! | |
define('GIT', '/usr/bin/git'); | |
define('GIT_REPO', WEB_ROOT . '__base__/'); // Requires trailing slash! | |
define('GIT_DIR', GIT_REPO . '.git'); | |
define('GIT_CMD', GIT . ' --git-dir=' . GIT_DIR . ' '); |
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
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |
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
[program:laravel_app] | |
command=/usr/bin/php /var/www/production/api.thing.com/artisan queue:listen -vvv --queue=App --env=production | |
directory=/var/www/production/api.thing.com | |
stdout_logfile=/var/www/production/api.thing.com/app/storage/logs/app_supervisord.log | |
redirect_stderr=true |
OlderNewer