First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> | |
| <link rel="stylesheet" type="text/css" href="css/index.css" /> | |
| <title>Hello World</title> | |
| </head> | |
| <body> | |
| <div class="app"> |
| {"value":"3,2","__className":".value","name":".tlm.version"} | |
| {"value":0,"__className":".value","name":".tlm.meta"} | |
| {"value":1373361009100,"__className":".value","name":".tlm.date"} | |
| {"value":"11,7,700,225","__className":".value","name":".player.version"} | |
| {"value":"Plugin","__className":".value","name":".player.type"} | |
| {"value":true,"__className":".value","name":".player.debugger"} | |
| {"value":1373352885524,"__className":".value","name":".player.global.date"} | |
| {"value":56,"__className":".value","name":".player.instance"} | |
| {"value":20,"__className":".value","name":".player.scriptplayerversion"} | |
| {"value":"&M=Adobe%20Macintosh&R=1440x900&COL=color&AR=1.0&OS=Mac%20OS%2010.8.4&ARCH=x86&L=en&PR32=t&PR64=t","__className":".value","name":".platform.capabilities"} |
Before the rest of this gist is useful, you've got to get your Raspberry Pi on the network. I followed the information from the Adafruint Learning System Raspberry Pi tutorials, which can be found at http://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup.
The two files that are most important are
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
| /** | |
| * Project: ANE-Google-Analytics | |
| * | |
| * Author: Alessandro Bianco | |
| * Website: http://alessandrobianco.eu | |
| * Twitter: @alebianco | |
| * Created: 23/12/12 10.42 | |
| * | |
| * Copyright © 2013 Alessandro Bianco | |
| */ |
| <!DOCTYPE html> | |
| <!--[if IE 8]> <html lang="sv-SE" class="no-js ie8"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html lang="sv-SE" class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Breakpoint detection test</title> | |
| <style type="text/css" media="screen"> | |
| @media screen and (min-width: 320px) { | |
| #page:after { | |
| content: 'smallest'; /* represent the current width-bracket */ |
| require 'octokit' | |
| require 'csv' | |
| require 'date' | |
| # Github credentials to access your private project | |
| USERNAME="USER_NAME" | |
| PASSWORD="SEKRIT" | |
| # Project you want to export issues from | |
| USER="REPO_OWNER" | |
| PROJECT="REPO_NAME" |