Skip to content

Instantly share code, notes, and snippets.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
</head>
<body style="width: 100%; min-width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; margin: 0; padding: 0; color: #222222; font-family: Helvetica, Arial, sans-serif; font-weight: normal; text-align: left; line-height: 19px; font-size: 14px; background: #f2f2f2;">
<table class="body" style="border-spacing: 0; border-collapse: collapse; padding: 0; vertical-align: top; text-align: left; height: 100%; width: 100%; color: #222222; font-family: Helvetica, Arial, sans-serif; font-weight: normal; margin: 0; line-height: 19px; font-size: 14px; background: #f2f2f2;">
<tr style="padding: 0; vertical-align: top; text-align: left;">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<style type="text/css">
@media only screen and (max-width: 600px) {
table[class="body"] img {
{"streamId":"52949cb79848d1c926000002","entity":{"entityType":"mentions","id":"catherineshu"},"metric":"impressions","value":3443215,"bucketTs":1395374400000,"bucketSize":3600000,"score":18.131995202083942,"createdTs":1395377985168,"metrics":[{"timestamp":1395018000000,"values":{"impressions":0}},{"timestamp":1395021600000,"values":{"impressions":0}},{"timestamp":1395025200000,"values":{"impressions":0}},{"timestamp":1395028800000,"values":{"impressions":0}},{"timestamp":1395032400000,"values":{"impressions":0}},{"timestamp":1395036000000,"values":{"impressions":0}},{"timestamp":1395039600000,"values":{"impressions":0}},{"timestamp":1395043200000,"values":{"impressions":0}},{"timestamp":1395046800000,"values":{"impressions":0}},{"timestamp":1395050400000,"values":{"impressions":0}},{"timestamp":1395054000000,"values":{"impressions":0}},{"timestamp":1395057600000,"values":{"impressions":0}},{"timestamp":1395061200000,"values":{"impressions":0}},{"timestamp":1395064800000,"values":{"impressions":0}},{"timestamp
var storage = window.localStorage;
var BrowserId = Date.now() + (Math.random() * 1000);
function get(key){
var result = storage.getItem(key);
if (result typeof undefined) return result;
@kaareal
kaareal / same-domain-post-message.js
Last active August 29, 2015 14:00
Simple cross window communication using localstorage
(function() {
var storage = window.localStorage;
var browserId = Date.now() + (Math.random() * 1000);
function get(key){
var result = storage.getItem(key);
if (typeof(result) == 'undefined') return result;
return JSON.parse(result);
}
@kaareal
kaareal / gist:a51b84a8bcf89650aec6
Created September 30, 2014 15:31
Put this in the console and hit enter
(function(){
var save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'client.json';
if(typeof data === "object"){
data = JSON.stringify(data, undefined, 4)
}
kaareal@Kaares-MacBook-Pro ~/c/ansible> make staging-nervecenter
Git codebase is up-to-date
ansible-playbook -f20 -i inventories/ec2-private --limit "tag_role_nervecenter:&tag_environment_staging" playbooks/full-stack.yml
PLAY [tag_role_redis] *********************************************************
skipping: no hosts matched
PLAY [tag_role_redis-sentinel] ************************************************
aareal@Kaares-MacBook-Pro ~/c/bottlenose> ssh -vvv 10.66.10.240
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/kaareal/.ssh/config
debug1: /Users/kaareal/.ssh/config line 29: Applying options for 10.66.*
debug1: /Users/kaareal/.ssh/config line 38: Applying options for 10.66.*
debug1: /Users/kaareal/.ssh/config line 44: Applying options for *
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec ssh -A deploy@proxy.nat.staging.iruka.io -W 10.66.10.240:22
"entity": {
"id": "Brands||Education||Collegeuniversity||Miami Universityoxford||A27665",
"entityType": "demographics-brands",
"object": {
"id": "Brands||Education||Collegeuniversity||Miami Universityoxford||A27665",
"category": "Education",
"subcategory": "Collegeuniversity",
"type": "Miami Universityoxford",
"name": ""
}
kaareal@Kaares-MacBook-Pro ~/c/ansible> make staging-nervecenter
Git codebase is up-to-date
ansible-playbook -f20 -i inventories/ec2-private --limit "tag_role_nervecenter:&tag_environment_staging" playbooks/full-stack.yml
PLAY [tag_role_redis] *********************************************************
skipping: no hosts matched
PLAY [tag_role_redis-sentinel] ************************************************
skipping: no hosts matched