Skip to content

Instantly share code, notes, and snippets.

View benjohnson77's full-sized avatar

Ben Johnson benjohnson77

View GitHub Profile
set :stages, %w(qa staging production)
require 'capistrano/ext/multistage'
require 'config/sitemap_tasks'
require 'cap_recipes/tasks/passenger'
namespace :deploy do
set(:scm_username) { Capistrano::CLI.ui.ask("SVN User name: ") }
set(:scm_password) { Capistrano::CLI.password_prompt("SVN Password: ") }
set(:scm_release_path) { Capistrano::CLI.ui.ask("svn release ex tags/letsgo_2.x.x: ") }
set :repository, "https://svn.traveladnetwork.com/letsgo/#{scm_release_path}"
@benjohnson77
benjohnson77 / cd.html
Created September 26, 2012 23:17
Content Discovery Widget Tag
<script type="text/javascript" src="http://cdn.investingchannel.com/contentdiscovery/cd.js?s=evilspeculator"></script>
@benjohnson77
benjohnson77 / yb.html
Created October 1, 2012 14:32
testing of yield bot
h1.this is with yield bot working and passing the parameters
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=38957865363465;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;ybot_ad=y;ybot_slot=728x90;tkr=;tile=1;sz=728x90;viewcount=2;is_search=false;ord=85411350133481?" type="text/javascript"></script>
h2. this is without it passing when the user has not been selected bu YB to provide an ad.
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=29035804607997;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;tkr=;tile=1;sz=728x90;viewcount=01;is_search=false;ord=53567345274474?" type="text/javascript">
@benjohnson77
benjohnson77 / yb.html
Created October 1, 2012 14:34
testing of yield bot
this is with yield bot working and passing the parameters
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=38957865363465;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;ybot_ad=y;ybot_slot=728x90;tkr=;tile=1;sz=728x90;viewcount=2;is_search=false;ord=85411350133481?" type="text/javascript"></script>
this is without it passing when the user has not been selected bu YB to provide an ad.
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=29035804607997;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;tkr=;tile=1;sz=728x90;viewcount=01;is_search=false;ord=53567345274474?" type="text/javascript">
You will notice these kvals added to the double click request.
@benjohnson77
benjohnson77 / ga.html
Created October 15, 2012 17:27
ga for multiple domain landing pages
This should go at the top of the landing page!!!
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-648272-12']);
_gaq.push(['_setDomainName', 'investingchannel.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
@benjohnson77
benjohnson77 / cd.js
Created October 15, 2012 19:07
Content Discovery Widget Tag
var IC_permalink = document.location.href
document.write('<div style="width:800px;" >');
document.write('<div class="OUTBRAIN" data-src="'+IC_permalink+'" data-widget-id="AR_2" data-ob-template="investing" ></div><script type="text/javascript" src="http://widgets.outbrain.com/outbrain.js"></scr'+'ipt></div>');
document.write('<div class="OUTBRAIN" data-src="'+IC_permalink+'" data-widget-id="AR_3" data-ob-template="investing" ></div><script type="text/javascript" src="http://widgets.outbrain.com/outbrain.js"></scr'+'ipt></div>');
document.write('</div>');
@benjohnson77
benjohnson77 / uservoice.html
Created November 8, 2012 21:06
user voice code.
<script type="text/javascript">
var uvOptions = {};
(function() {
var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/phVmFIbfN3vLTIz9tLhjA.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
})();
</script>
<div class="OUTBRAIN" data-src="http://evilspeculator.com/?p=31069" data-widget-id="AR_2" data-ob-template="investing" ></div>
<script type="text/javascript" async="async" src="http://widgets.outbrain.com/outbrain.js"></script>
<div class="OUTBRAIN" data-src="http://evilspeculator.com/?p=31069" data-widget-id="AR_3" data-ob-template="investing" ></div>
<script type="text/javascript" async="async" src="http://widgets.outbrain.com/outbrain.js"></script>
deploy@ip-10-141-132-122 /data/synapi/current $ RAILS_ENV=production rake sunspot:reindex
Error - RSolr::Error::Http - 500 Internal Server Error - retrying...
Error - RSolr::Error::Http - 500 Internal Server Error - ignoring...
Error - RSolr::Error::Http - 500 Internal Server Error - retrying...
Error - RSolr::Error::Http - 500 Internal Server Error - ignoring...
[# ] [ 50/122310] [ 0.04%] [00:04] [03:00:00] [ 11.32/s]Error - RSolr::Error::Http - 500 Internal Server Error - retrying...
Error - RSolr::Error::Http - 500 Internal Server Error - ignoring...
[# ] [ 100/122310] [ 0.08%] [00:06] [02:15:56] [ 14.98/s]Error - RSolr::Error::Http - 500 Internal Server Error - retrying...
Error - RSolr::Error::Http - 500 Internal Server Error - ignoring...
[# ] [ 150/122310] [ 0.12%] [00:08] [02:00:32] [ 16.89/s]Error - RSolr::Error::Http - 500 Internal Server Error - retrying...
@benjohnson77
benjohnson77 / gist:5643632
Last active December 17, 2015 17:09
git bisect results to determine what commit caused the problem.
d207ae769f84463a5d250508bf8156cfbd6752a9 --- good
a866352a56260e911f92148b4c650dcfdadea782 - poop revert
2f7de4787ef5b5f258a30067635a7baf36eea9c1 - poop revert
07d24daed3e07fe02bb8a81ef63179cd00528624 - poop revert
d56cf5d98f5dcc6aaf3319041942714ac172028b - poop
f4953f1051519e541fcbae7ebcb1bc3d9b2dd6a8 - poop
c1bb68525b5e8d9c76fc896f2f10814457850973 - poop
2a82d1170208d7450dfd07655673d03f4e65c5e4 --- good
ada68714a442a286521e559d51dd4377ef880434 --- good
72b929cb0072d5117f3282b5dcca825b150d04a9 --- good