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
Neat! I posted a link to my s3backup utility to HackerNews at the announcement that codinghorror.com had lost everything. I pointed how simple it was to use my utility (or any of them) to quickly and easily backup your databases and files. | |
Using s3backup, you can tar up your entire vhosts directory, or push each database dump to s3. It's insanely cheap. You can store 30gb, upload 30gb and download 30gb a month for $10. And chances are, you won't be downloading anything, so its even less than that. | |
s3backup also requires that the database is encrypted before it will work, so you have to have gpg installed. | |
Also, ensure that the files you're pushing are marked private. This ensures they can't be publicly downloaded. | |
I noticed I had some followers now, which is pretty neat. It also opens me up to scrutiny, but thats great, it'll only make my software better. |
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/perl -w | |
use strict; | |
my $found_error = 0; | |
sub msg { | |
my $msg = shift @_; | |
print $msg . "\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
<?xml version="1.0"?> | |
<project name="IONCart" description="Advanced Shopping Cart" default="build" > | |
<target name="clean"> | |
<delete file="./lib/configure.php" /> | |
</target> | |
<target name="githooks"> | |
<exec command="ln -s ../../hooks/pre-commit" dir=".git/hooks" /> | |
</target> |
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 | |
require_once 'Artisan/Db.php'; | |
require_once 'Artisan/Exception.php'; | |
$db_config = array( | |
'server' => 'localhost', | |
'username' => 'username', | |
'password' => 'password', | |
'database' => 'dbname' |
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 | |
require_once 'Artisan/Db.php'; | |
require_once 'Artisan/Exception.php'; | |
$db_config = array( | |
'server' => 'localhost', | |
'username' => 'username', | |
'password' => 'password', | |
'database' => 'dbname' |
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 | |
require_once 'Artisan/Db.php'; | |
require_once 'Artisan/Exception.php'; | |
$db_config = array( | |
'server' => 'localhost', | |
'username' => 'username', | |
'password' => 'password', | |
'database' => 'dbname' |
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 | |
/** | |
* Example of using gettext, the GNU Project that enables easy | |
* internationalization (i18n). Please use gettext over coming up with | |
* another scheme. | |
* | |
* @author vmc <[email protected]> | |
* @date 05.28.2010 | |
*/ |
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 | |
/** | |
* ######################### | |
* DataModeler Public SQL Interface | |
* ######################### | |
*/ | |
/** | |
* SEARCHING |
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 | |
declare(encoding='UTF-8'); | |
namespace Adapter; | |
require_once 'Exception.php'; | |
class Sql { | |
private $db = NULL; | |
private $sql = NULL; |
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 | |
declare(encoding='UTF-8'); | |
namespace SqlTest; | |
use Adapter\Sql; | |
require_once 'Sql.php'; | |
class SqlTest extends \PHPUnit_Framework_TestCase { |
OlderNewer