Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.0 Safari/537.36",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.0 Safari/537.36",
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.0 Safari/537.36",
"benchmarkIndex": 1274
},
"lighthouseVersion": "3.2.1",
"fetchTime": "2018-11-06T02:24:41.239Z",
"requestedUrl": "https://ofro.pwc.com/ecosystems/digital-risk-solutions",
@shrop
shrop / gist:0988cc876dcaf6e65d6e4cb8e0fe4bec
Last active November 5, 2018 23:09
PWC OFRO Performance Test 2018-11-05 (Desktop)
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.0 Safari/537.36",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.0 Safari/537.36",
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.0 Safari/537.36",
"benchmarkIndex": 1294
},
"lighthouseVersion": "3.2.1",
"fetchTime": "2018-11-05T23:07:19.929Z",
"requestedUrl": "https://ofro.pwc.com/",
@shrop
shrop / moralcode.js
Created November 1, 2018 13:24
Tshirt "Moral Code"
// Moral Code
var command = 'Love one another';
console.log(command);
@shrop
shrop / mobile.json
Created September 24, 2018 14:47
Chrome Lighthouse Report for manh.com (mobile)
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3559.0 Safari/537.36","lighthouseVersion":"3.0.3","fetchTime":"2018-09-24T13:42:44.786Z","requestedUrl":"https://www.manh.com/","finalUrl":"https://www.manh.com/","runWarnings":[],"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/https).","score":1,"scoreDisplayMode":"binary","rawValue":true,"displayValue":"","details":{"type":"table","headings":[],"items":[]}},"redirects-http":{"id":"redirects-http","title":"Redirects HTTP traffic to HTTPS","description":"If you've already set up HTTPS, make sure that you redirect all HTTP tra
@shrop
shrop / desktop.json
Created September 24, 2018 14:46
Chrome Lighthouse Report for manh.com (desktop)
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3559.0 Safari/537.36","lighthouseVersion":"3.0.3","fetchTime":"2018-09-24T14:24:57.185Z","requestedUrl":"https://www.manh.com/","finalUrl":"https://www.manh.com/","runWarnings":[],"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/https).","score":1,"scoreDisplayMode":"binary","rawValue":true,"displayValue":"","details":{"type":"table","headings":[],"items":[]}},"redirects-http":{"id":"redirects-http","title":"Redirects HTTP traffic to HTTPS","description":"If you've already set up HTTPS, make sure that you redirect all HTTP tra
@shrop
shrop / settings.local.php
Created July 5, 2018 02:20
Stockwatch Contenta Demo Support Files
<?php
/**
* @file
* Settings for local development.
*/
/**
* Change location of oauth keys for local development.
*/
@shrop
shrop / gist:cd214ee3ac2533ebb484cf6e1a0a5ca4
Created November 4, 2017 16:11
drupal4docker docker-compose up -d error
docker-compose up -d
Creating network "drupal8_default" with the default driver
Creating drupal8_traefik_1 ...
Creating drupal8_mailhog_1 ...
Creating drupal8_portainer_1 ...
Creating drupal8_mariadb_1 ...
Creating drupal8_php_1 ...
Creating drupal8_mariadb_1
Creating drupal8_traefik_1
Creating drupal8_php_1
@shrop
shrop / send_drupal_pw_reset.php
Created February 6, 2017 21:57
Send Drupal 7 Password Reset Email
<?php
// Array of user IDs to email.
$uids = array('1');
// Loop through array of uids and attempt to send password reset emails.
foreach ($uids as $uid) {
// Load a user.
$account = user_load($uid);
// Invoke the email. It will be queued along with other system mail to be sent during cron
@shrop
shrop / policy.drush.inc
Created April 8, 2016 15:51
Sample Drush policy file
<?php
/**
* @file
* Drush policies to restrict what is allowed for certain drush commands.
*/
/**
* Prevent production databases from being overwritten using drush sql-sync.
*/
@shrop
shrop / clamav-mac.md
Created September 28, 2016 20:50 — forked from Uchean/clamav-mac.md
Get ClamAV running on Mac OS X (using Homebrew)

Get ClamAV running on Mac OS X (using Homebrew)

The easiest way to get the ClamAV package is using Homebrew

$ brew install clamav

Before trying to start the clamd process, you'll need a copy of the ClamAV databases.

Create a freshclam.conf file and configure as so