I hereby claim:
- I am tomsutton1984 on github.
- I am tomsuttton (https://keybase.io/tomsuttton) on keybase.
- I have a public key ASApxJ_GZSku4BTgCQHouwgvkbvIqAIl-JI47FKesjM9Xgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <link rel="import" href="../core-icons/core-icons.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <link rel="import" href="../chart-js/chart-js.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
| var fs = require('fs'); | |
| var readline = require('readline'); | |
| var stream = require('stream'); | |
| var inputfile = "pathtofile.txt"; | |
| var outputfile = "pathtooutputfile.json"; | |
| var instream = fs.createReadStream(inputfile); | |
| var outstream = fs.createWriteStream(outputfile, {'flags': 'a'}); | |
| outstream.readable = true; |
| 10s:7d;1m:21d;10m:180d;1hr:2yr = 1.4mb per stat |
| /* http://lognormal.github.io/boomerang/doc/howtos/howto-5.html */ | |
| <script type="text/javascript"> | |
| BOOMR.init({ | |
| beacon_url: "http://yoursite.com/path/to/beacon" | |
| }); | |
| var domain = location.hostname; |
| // Assumptions | |
| // Boomerang makes beacon call to port :8080 | |
| // StatsD is running on same server (localhost) | |
| // The following NodeJS modules are installed: | |
| // https://github.com/tobie/ua-parser | |
| // https://github.com/bluesmoon/node-geoip | |
| // Boomerang is configured to send custom parameters for "domain", "page_type", "user_status", "ip" and "user_agent". | |
| // http://lognormal.github.io/boomerang/doc/howtos/howto-5.html |
| # Apply updates | |
| sudo yum update | |
| # Enable Epel Repo | |
| sudo vim /etc/yum.repos.d/epel.repo. | |
| # Under the section marked [epel], change enabled=0 to enabled=1. | |
| # Install packages |
| <script defer type="text/javascript"> | |
| //set random variable | |
| var x = Math.floor((Math.random()*100)+1); | |
| //check to see whether user has tracking cookie set | |
| if (document.cookie.search(/(^|;)perfTrack=/) > -1) { | |
| //if tracking cookie has been set, create alert with page load time |