Skip to content

Instantly share code, notes, and snippets.

@tedtop
tedtop / dumper.pl
Last active December 20, 2015 14:09 — forked from erincerys/dumper.pl
mysqldump filter -- Removes or replaces the DEFINER clauses from a dump (bug fix on line 32)
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long qw(:config no_ignore_case );
my $replace = undef;
my $delete = undef;
my $help = 0;
GetOptions (
@tedtop
tedtop / cakegittmpdirs
Last active December 27, 2015 21:59 — forked from tijmenb/cakegittmpdirs
# Based on: http://stackoverflow.com/questions/2218075/using-git-with-your-cakephp-project
# Procedure:
# 1. Remove tmp/ from .gitignore
# 2. touch tmp/.keep
# 3. git add tmp/.keep
# 4. git commit
# 5. Add tmp/ to .gitignore
# Clean tmpfiles and delete .gitignore