Skip to content

Instantly share code, notes, and snippets.

View bensojona's full-sized avatar

Jon Benson bensojona

  • HashiCorp
  • San Francisco, CA
View GitHub Profile
/*
Do not modify this version of the file. It will be copied over when any of the project's targets are built.
If you wish to modify mraid.js, modify the version located at mopub-sdk-common/mraid/mraid.js.
*/
(function() {
var isIOS = (/iphone|ipad|ipod/i).test(window.navigator.userAgent.toLowerCase());
if (isIOS) {
console = {};
console.log = function(log) {
var iframe = document.createElement('iframe');
<script src="mraid.js"></script>
<div class="celtra-ad-v3">
<img src="data:image/png,celtra" style="display: none" onerror="
(function(img) {
var params = {'clickUrl':'','clickEvent':'advertiser','externalAdServer':'Custom'};
var req = document.createElement('script');
req.id = params.scriptId = 'celtra-script-' + (window.celtraScriptIndex = (window.celtraScriptIndex||0)+1);
params.clientTimestamp = new Date/1000;
var src = (window.location.protocol == 'https:' ? 'https' : 'http') + '://ads.celtra.com/91b95315/mraid-ad.js?';
for (var k in params) {
<script src="mraid.js"></script>
<div class="celtra-ad-v3">
<img src="data:image/png,celtra" style="display: none" onerror="
(function(img) {
var params = {'clickUrl':'','clickEvent':'advertiser','externalAdServer':'Custom'};
var req = document.createElement('script');
req.id = params.scriptId = 'celtra-script-' + (window.celtraScriptIndex = (window.celtraScriptIndex||0)+1);
params.clientTimestamp = new Date/1000;
var src = (window.location.protocol == 'https:' ? 'https' : 'http') + '://ads.celtra.com/de46502e/mraid-ad.js?';
for (var k in params) {
<AdResponse><Ads number="1"><Ad type="rm" width="300" height="250"><![CDATA[<html><head><title></title><meta name="viewport" content="user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/><style type="text/css">body {margin: 0px; overflow: hidden;} </style></head><body><meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<div id="xad">
<style>#xad .zero{} body {margin:0; }</style>
<img src="http://ec2-54-227-234-211.compute-1.amazonaws.com:8085/rest/notify?t=imp&l_id=hkjAC0H4BXCxafp-0&aid=763744&k=jXQ31-W7CD1unsPd-7Zljb14vLBhFPlrt_-wCdrlbo4.&co=US&uid=63c8ac9d0029440bfc812c68d60bd432&crid=78.196.0&lpid=null.null.0&appid=00000000-000b-79e2-0005-10e5d8207743_IAB24&v=1.1" class="zero" />
<AdResponse><Ads number="1"><Ad type="rm" width="300" height="250"><![CDATA[<html><head><title></title><meta name="viewport" content="user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/><style type="text/css">body {margin: 0px; overflow: hidden;} </style></head><body><a href='http://54.164.151.50/oapi/clickAd;jsessionid=C1367AD26DB57C09459AF94D9EA4C897.soma-i-32b9e0c2' onclick="document.getElementById('click').src='http://c2.w.inmobi.com/c.asm/C/b/e1gic3awqr/v6t/i/2m/ba/M/0/8qm/0/eyJVTTUiOiI2M2M4YWM5ZDAwMjk0NDBiZmM4MTJjNjhkNjBiZDQzMiIsIklVRFMxIjoiY2IxM2MzZDBmODA4NDA0NzFlZDBmMGNhZGYwOWY5ODNkYmRjNDYwZiIsIklEViI6InJlYWwtZGV2aWNlLXV1aWQiLCJJREEiOiJyZWFsLWRldmljZS11dWlkIn0~/3996dab9-014c-1000-cf8a-3ebf29b500c4/-1/0/-1/1/0/37.8975,-122.112/0/nw/101/1/1/432d9e19';" target="_blank" style="text-decoration: none"><img src='http://54.164.151.50/oapi/getAd;jsessionid=C1367AD26DB57C09459AF94D9EA4C897.soma-i-32b9e0c2' /></a><img src='http://c2.w.inmobi.com/c.asm/C/b/e1gic3awqr/v6t/i/2m/ba/M/0/8qm/0/eyJVTTUiOiI2M2M4YWM
<?xml version="1.0" encoding="utf-8"?>
<VAST version="2.0"> <Ad id="229">
<InLine>
<AdSystem version="4.11.1-2+pl3">LiveRail</AdSystem>
<AdTitle><![CDATA[LiveRail creative 1]]></AdTitle>
<Description><![CDATA[]]></Description>
<Error><![CDATA[http://t4.liverail.com/?metric=error&erc=[ERRORCODE]&pos=0&coid=135&pid=1331&nid=1331&oid=229&olid=2291331&cid=331&tpcid=&vid=&amid=&cc=default&pp=&vi=0&vv=&sg=&tsg=&pmu=0&pau=0&psz=0&ctx=&tctx=&coty=7&adt=0&did=&buid=&scen=&mca=&mma=&mct=0&url=http%3A%2F%2Fwww.iab.net%2Fiab_products_and_industry_services%2F508676%2Fdigitalvideo%2Fvast%2Fvast_xml_samples&trid=545a98be4001b1.46560337&bidf=0.10000&bids=0.00000&bidt=1&bidh=0&bidlaf=0&sdk=0&cb=3014.199.21.86.54.0&ver=1&w=&wy=&x=&y=&xy=&redirect=]]></Error>
<Impression id="LR"><![CDATA[http://t4.liverail.com/?metric=impression&cofl=0&flid=0&pos=0&coid=135&pid=1331&nid=1331&oid=229&olid=2291331&cid=331&tpcid=&vid=&amid=&cc=default&pp=&vi=0&vv=&
@bensojona
bensojona / metamon_fail
Created April 1, 2015 18:09
Copied the metamon files into my root project directory, vagrant up'd, ran the deploy_dev.sh script and got the below debug output. Seems to be an issue SSH'ing into the Vagrant box but I can't figure out where the problem is.
PLAY [configuration check] ****************************************************
GATHERING FACTS ***************************************************************
<192.168.50.10> ESTABLISH CONNECTION FOR USER: vagrant
<192.168.50.10> REMOTE_MODULE setup
<192.168.50.10> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o', 'IdentityFile="keys/vagrant"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', '192.168.50.10', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1427908374.01-9008411623083 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1427908374.01-9008411623083 && echo $HOME/.ansible/tmp/ansible-tmp-1427908374.01-9008411623083'"]
fatal: [dev] => SSH encountered an unknown error. The output was:
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/jb/.ssh/config
debug1: Reading configuration data /etc/ssh_c
@bensojona
bensojona / metamon_fail_remove_ip_from_known_hosts
Created April 1, 2015 18:45
Removed the IP entry from ~/.ssh/known_hosts, still no luck
PLAY [configuration check] ****************************************************
GATHERING FACTS ***************************************************************
<192.168.50.10> ESTABLISH CONNECTION FOR USER: vagrant
<192.168.50.10> REMOTE_MODULE setup
<192.168.50.10> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o', 'IdentityFile="keys/vagrant"', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', '192.168.50.10', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1427913818.29-1089497436650 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1427913818.29-1089497436650 && echo $HOME/.ansible/tmp/ansible-tmp-1427913818.29-1089497436650'"]
The authenticity of host '192.168.50.10 (192.168.50.10)' can't be established.
RSA key fingerprint is fd:f9:01:f8:c0:36:0f:23:d0:22:46:6a:7c:95:9e:74.
Are you sure you want to continue connecting (yes/no)? yes
~/projects/hashicorp/atlas-examples/metamon 🚧 master 😎 › vagrant up --provider=virtualbox
Bringing machine 'dev' up with 'virtualbox' provider...
==> dev: Box 'trusty64' could not be found. Attempting to find and install...
dev: Box Provider: virtualbox
dev: Box Version: >= 0
==> dev: Adding box 'trusty64' (v0) for provider: virtualbox
dev: Downloading: http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
==> dev: Successfully added box 'trusty64' (v0) for 'virtualbox'!
==> dev: Importing base box 'trusty64'...
==> dev: Matching MAC address for NAT networking...
# -*- mode: ruby -*-
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "trusty64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.ssh.forward_agent = true
config.ssh.private_key_path = "deploy/keys/vagrant"