Skip to content

Instantly share code, notes, and snippets.

View benscabbia's full-sized avatar

Ben Scabbia benscabbia

View GitHub Profile
@benscabbia
benscabbia / x-ray.js
Created April 24, 2017 17:04
x-ray is a visual debugger for your HTML, executable via a bookmark!
javascript: (
function () {
var elements = document.body.getElementsByTagName("*");
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf("background:#000!important;color:#0f0!important;outline:solid #f00 1px!important;") != -1) {
items.push(elements[i]);
}
}
@benscabbia
benscabbia / Instructions
Created March 3, 2017 21:23
Cloudflare + Dynamic DNS (ddclient) = Super Awesome
# This guide will show you how to configure ddclient to dynamically update your DNS at Cloudflare.
# This cookbook makes use of a number of online guides - all of which I will reference at the end.
# Cloudflare requires ddclient to be version 3.8.2 or you will get a 'cloudflare protocol didn't exist'.
# Unfortunately, the package manager at this time makes use of 3.8.1
# My suggestion is to follow the semi-autonomous process, by downloading the out of date package
# and then manually update a few files. If you prefer, you can go down the fully manual route manual route.
# Installation - Manual (Not Tested: https://www.cloudflare.com/technical-resources/#ddclient)
# Installation - Semi-Autonomous (Recommended, follow below)
@benscabbia
benscabbia / cloudSettings
Last active September 26, 2016 06:17
Visual Studio Code Sync Settings GIST
{"lastUpload":"2016-09-26T06:17:01.489Z"}