Skip to content

Instantly share code, notes, and snippets.

View jathayde's full-sized avatar
🚜

John Athayde jathayde

🚜
View GitHub Profile
def days_count(adbuy)
date1 = adbuy.enddate
date2 = adbuy.startdate
"#{date1-date2} days total"
end
Soho:~ jathayde$ ssh -2 -v [email protected]
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/jathayde/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to staging.resonantvibes.com [173.45.229.49] port 22.
debug1: Connection established.
debug1: identity file /Users/jathayde/.ssh/id_rsa type 1
debug1: identity file /Users/jathayde/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
canaveral:mkm jathayde$ rake db:bootstrap --trace
(in /Users/jathayde/Sites/work/mkm)
** Invoke db:bootstrap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:bootstrap
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/access_levels.yml
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/ad_buys.yml
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/advertisers.yml
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/alerts.yml
<? echo $row['mktMarket']; ?>
<?
$strMarketDisplay .= "<a href=\"";
$strMarketDisplay .= "market_view.html?ID=" . $row['mktID'] . "&type=" . $strURLType . "&state=" . $mktStateArr[0];
$strMarketDisplay .= "\">";
$strMarketDisplay .= $row['mktMarket'];
$strMarketDisplay .= "</a>";
echo $strMarketDisplay;
?><br />
We couldn’t find that file to show.