Skip to content

Instantly share code, notes, and snippets.

View rixrix's full-sized avatar
👋
hi!

Richard Sentino rixrix

👋
hi!
  • Auckland, New Zealand
  • 10:00 (UTC -12:00)
View GitHub Profile
@rixrix
rixrix / deploy.rb
Created April 29, 2013 11:56
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.
#
# 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'}
@rixrix
rixrix / .DS_Store destroyer
Created April 24, 2013 23:55
.DS_Store destroyer
sudo find / -name ".DS_Store" -depth -exec rm {} \;
@rixrix
rixrix / MS Access image extractor
Last active December 14, 2015 07:48
A simple script that will extract image(s) from MS Access DB exported as XML file. It uses XMLReader basically to extrac big XML files. Tested on 1.11GB file size
#!/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';