Skip to content

Instantly share code, notes, and snippets.

View larruda's full-sized avatar

Lucas Arruda larruda

View GitHub Profile
@larruda
larruda / organizeFiles.sh
Created July 25, 2013 19:22
Shell script used to organize files by date in a directory tree. Tested and used on Mac OS X.
#!/bin/bash
function navigateRecursively {
currentDirectory=$1
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
BASEPATH=$2
i=0
#echo $currentDirectory
@larruda
larruda / settings.php
Created July 25, 2013 01:53
Drupal database settings for using on Amazon Web Services (AWS) environment with Amazon RDS and Amazon EC2.
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => $_SERVER['RDS_DB_NAME'],
'username' => $_SERVER['RDS_USERNAME'],
'password' => $_SERVER['RDS_PASSWORD'],