Skip to content

Instantly share code, notes, and snippets.

View michaelespinosa's full-sized avatar

Michael Espinosa michaelespinosa

View GitHub Profile
@michaelespinosa
michaelespinosa / gist:4270787
Created December 12, 2012 19:27
Shell script to download and setup a new Laravel project that you can call from a function in your .bashrc file.
#! /bin/bash
echo '\033[1;30m=========================================='
## check for a directory
if test -z "$1"; then
echo ' \033[0;31m✖ Please provide a directory name'
else
## check if directory already exist
@michaelespinosa
michaelespinosa / setuplar
Created December 6, 2012 21:24
Shell script to download and setup a new Laravel project
#! /bin/bash
echo -e '\033[1;30m=========================================='
## check for a directory
if test -z "$1"; then
echo -e ' \033[0;31m✖ Please provide a directory name'
exit
fi
@michaelespinosa
michaelespinosa / .bashrc
Created December 4, 2012 23:10
My .bashrc file
### AWS Developer Tools ###
export EC2_HOME=~/.ec2
export PATH=$PATH:$EC2_HOME/bin:/usr/local/bin
##export EC2_PRIVATE_KEY=`ls $EC2_HOME/pk-*.pem`
##export EC2_CERT=`ls $EC2_HOME/cert-*.pem`
export EC2_PRIVATE_KEY=***.pem
export EC2_CERT=***.pem
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home/
@michaelespinosa
michaelespinosa / wufoo_entries_array.php
Created November 15, 2011 00:34
Using the v3 of the Wufoo API to retrieve all entries and store in a single array ($all_results). This is necessary because of the limit 100 entries limit that Wufoo has. Also store the results to file we don't get slow responses from the api.
<?php
function wufoo_entries() {
// Setup
$account = "ACCOUNT_NAME";
$form = "FORM_NAME";
$api_key = "YOUR-API-KEY";
$offset = 0;
$limit = 100;
$check_int = 15 * 60; // 15 minutes
@michaelespinosa
michaelespinosa / All_wufoo_results.php
Created November 10, 2011 00:58
Using the v3 of the Wufoo API to retrieve all entries and store in a single array ($all_results). This is necessary because of the limit 100 entries limit that Wufoo has.
<?php
// Setup
$account = "YOUR_ACCOUNT_NAME";
$form = "FORM_ID";
$api_key = "API_KEY";
$offset = 0;
$limit = 100;
$all_results = array();
@michaelespinosa
michaelespinosa / export_mail_notes
Created April 26, 2011 21:33
Export Notes from mail to .txt files
(*
http://veritrope.com
Apple Mail -- Text File Exporter
Version 1.1
January 17, 2011
Project Status, Latest Updates, and Comments Collected at:
http://veritrope.com/code/export-apple-mail-messages-and-notes-to-text-files
Installation: Just double-click on the script!