Skip to content

Instantly share code, notes, and snippets.

@andydavies
andydavies / index.html
Created Nov 25, 2020 — forked from 3urdoch/index.html
TCF2.0 Compliant approach to loading Google Ad Manager, Prebid and Amazon APS tags that prevents TCV2.1a errors
View index.html
<!doctype html>
<html lang="en">
<head>
</head>
<body>
<!-- Quantcast CMP, pasted un-modified from Quantcast interface -->
<script type="text/javascript" async=true>
(function() {
var host = window.location.hostname;
View WPT Bookmarklet
javascript:(function(){hostname=document.location;window.open('http://www.webpagetest.org?url=' + hostname);})();
@andydavies
andydavies / keyworksFromUrl.js
Created Jul 27, 2020 — forked from johnmurch/keywordsFromUrl.js
Parse keywords from URL
View keyworksFromUrl.js
let url = "https://www.amazon.com/SanDisk-128GB-microSDXC-Memory-Adapter/dp/B073JYC4XM/";
let kwparse = (url.replace('https://','').replace('http://','').replace('www','').replace('com','').split('-').join().split('/').join().split('.')).join(',').replace(/^,/, '')
let kwuniq = [...new Set(kwparse.split(','))].filter(function(e){return e});
console.log(kwuniq)
View geo.vcl
sub vcl_recv {
#FASTLY recv
# We don't do other methods
if (req.method != "GET") {
return(error);
}
# Handle IPv4 or IPv6 provided in url path (nothing extraneous allowed, perform basic matching)
if (req.url.path ~ "^/([a-f0-9:.]+)$") {
set client.geo.ip_override = re.group.1;
View DatVizBooks.md

Depending on where you are on your Data Viz journey, I'd probably start with Dona Wong or Cole Knaflic, then Andy Kirk, then Kopenen & Hildén (once I've read K&H I might swap the last two around)

Cairo's books are nice interlude and Few's is quite heavy weight (in both senses) though useful for dashboard design

(Amazon links are associate ones so feel free to buy elsewhere e.g. Hive in the UK)

The Wall Street Journal Guide to Information Graphics: The Dos and Don'ts of Presenting Data, Facts, and Figures, Dona Wong Amazon.com

Storytelling with Data: A Data Visualization Guide for Business Professionals Paperback, Cole Knaflic

View Beef and Ale Stew.md

Ingredients

  • Bottle of beer - I used Abbot this time but can be Guinness, Black Sheep, what ever takes your fancy
  • Knorr beef stock pot
  • Bay leaves
  • Black pepper
  • Carrots - 1 to 1 1/5 per person depending on size
  • Large onion or a couple of medium ones
  • 3 - 4 cloves of garlic
  • Shallots (bag off)
  • Lean stewing beef - 400g ish
View gist:61b8703f0a0192e5bf173a8941ff380d
→ ssh -oKexAlgorithms=diffie-hellman-group1-sha1 -c 3des-cbc admin@192.168.1.254
http://conntrack-tools.netfilter.org/manual.html
# Commands
?
help
logout
exit
quit
@andydavies
andydavies / .block
Last active Aug 17, 2017
Sunburst Chart of Web Page composition / download size
View .block
license: cc-by-sa-4.0
@andydavies
andydavies / .block
Last active Oct 16, 2016
Treemap of BBC News Resources
View .block
license: cc-by-sa-4.0
@andydavies
andydavies / sslbookmarklet.js
Last active Jun 18, 2016
SSL Labs bookmarklet
View sslbookmarklet.js
javascript:(function(){hostname=document.location.hostname;window.open('https://www.ssllabs.com/ssltest/analyze.html?d=' + hostname + '&hideResults=on');})();
You can’t perform that action at this time.