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
| # | |
| # FIX for Capistrano's SSH error "Net::SSH::AuthenticationFailed error" | |
| # This is a common error that you might encounter when working with Capistrano from one environment to another, | |
| # especially if Capistrano is configured to deploy on a password-less authentication. | |
| # | |
| # The fix: specify the authentication eg. auth_methods | |
| # | |
| set :ssh_options, {:forward_agent => true, :auth_methods => 'publickey'} |
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
| sudo find / -name ".DS_Store" -depth -exec rm {} \; |
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
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Here's a little script that will extract images from MS Access DB exported as XML file. | |
| * It uses XMLReader basically to extract big XML files. Tested on 1.11GB file size | |
| */ | |
| function xmlparser($file, $saveTo = '') { | |
| $wrapperName = 'Photo'; |
NewerOlder