Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
black = '#282828';
red = '#cc241d'; // red
green = '#98971a'; // green
yellow = '#d79921'; // yellow
blue = '#458588'; // blue
magenta = '#b16286'; // pink
cyan = '#689d6a'; // cyan
white = '#a89984'; // light gray
lightBlack = '#928374'; // medium gray
lightRed = '#fb4934'; // red
@shrop
shrop / usb.sh
Last active December 12, 2023 08:04
USB Gadget Raspberry Pi
#!/bin/bash
cd /sys/kernel/config/usb_gadget/
mkdir -p pi4
cd pi4
echo 0x1d6b > idVendor # Linux Foundation
echo 0x0104 > idProduct # Multifunction Composite Gadget
echo 0x0100 > bcdDevice # v1.0.0
echo 0x0200 > bcdUSB # USB2
echo 0xEF > bDeviceClass
echo 0x02 > bDeviceSubClass
import React, { Component } from 'react';
import {
Box,
Button,
Collapsible,
Grommet,
Heading,
Image,
Layer,
ResponsiveContext,
{
"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.
*/