Skip to content

Instantly share code, notes, and snippets.

kaareandana @ http://kaareandana-kaareal.rhcloud.com/ (uuid: 5240a452e0b8cdbfe800044a)
--------------------------------------------------------------------------------------
Domain: kaareal
Created: Sep 23 10:28 PM
Gears: 2 (defaults to small)
Git URL: ssh://[email protected]/~/git/kaareandana.git/
SSH: [email protected]
Aliases: www.kaareandana.com
nodejs-0.10 (Node.js 0.10)
2013-12-23 11:0:22:185 REQUEST [2013-12-23 11:0:22:185] POST /session {"desiredCapabilities":{"browser":"Firefox","browserstack.user":"kaarelarsen","browserstack.key":"9CsxeCsxcqKy4MwytNww","browserstack.tunnel":"true","browserstack.debug":"true","browserName":"chrome","platform":"WINDOWS","version":"","javascriptEnabled":true,"acceptSslCert":false}}
2013-12-23 11:0:22:185 START_SESSION
2013-12-23 11:0:22:185 REQUEST [2013-12-23 11:0:22:185] GET /session/40068191773abe0326d3af22d602f74b6fe678f9
2013-12-23 11:0:22:185 RESPONSE {"sessionId":"40068191773abe0326d3af22d602f74b6fe678f9","status":0,"value":{"platform":"XP","javascriptEnabled":true,"acceptSslCerts":false,"browserName":"firefox","rotatable":false,"locationContextEnabled":true,"webdriver.remote.sessionid":"40068191773abe0326d3af22d602f74b6fe678f9","version":"25.0","databaseEnabled":true,"cssSelectorsEnabled":true,"handlesAlerts":true,"browserConnectionEnabled":true,"webStorageEnabled":true,"nativeEvents":true,"applicationCacheEnabled":true,"takesScre
<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 [email protected] -W 10.66.10.240:22