Skip to content

Instantly share code, notes, and snippets.

View tobek's full-sized avatar

Toby Fox tobek

View GitHub Profile
@tobek
tobek / fadeshow.php
Created July 26, 2015 05:21
fadeshow
<?php
$image_dir = '/wp-content/uploads/fadeshow/';
$images = array(
'pillow-pile.jpg',
'gold-couch.jpg',
'shade-and-swag.jpg',
'barrel-chair.jpg',
'roman-shades.jpg',
'blue-sofa.jpg',
@tobek
tobek / gist:9edceef229e5ad5e7ed1
Last active August 29, 2015 14:06
Unfurler QS blacklist checker
LEGEND:
= Match
_ No canonical URL found in either
~ Both requests failed
X Mismatch
========================================================================X=XXXX====================== ✔ {"domain":"www.marketwatch.com"}
======_===============~===========================================_=====_=~_=================_=====X ✔ {"domain":"nymag.com"}
____________________________________________________________________________________________________ ✖ {"domain":"luufy.com"}
===__________=====X====_===========___==============_====_______===__===============_=____=_======== ✔ {"domain":"www.zazzle.com"}
@tobek
tobek / get-image-urls.js
Last active April 9, 2024 16:05
Save images from chrome inspector/dev tools network tab
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/