Skip to content

Instantly share code, notes, and snippets.

View andyfitz's full-sized avatar
🦎

Andy Fitzsimon andyfitz

🦎
View GitHub Profile
@andyfitz
andyfitz / ignore.txt
Created November 7, 2022 01:50
Subdomain Enumeration Ignore List
^imap\.
^staging\.
^get\.
^secure\.
^dev\.
^www\.
^api\.
^develop\.
^en\.
^es\.
@andyfitz
andyfitz / hexToRGB.js
Created November 1, 2021 13:00
Creating Duotone Filter SVG images
function hexToRgb(hex) {
// Expand shorthand form (e.g. "FA7") to full form (e.g. "FFAA77")
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex = hex.replace(shorthandRegex, function (m, r, g, b) {
return r + r + g + g + b + b;
});
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ?{
r: parseInt(result[1], 16),
// this takes all <img src=".svg">
// and makes it inline <svg ...</svg>
// so that custom CSS can be applied
var Ajax = {
get: function (url, onsuccess, onerror) {
var xhr = new XMLHttpRequest();
xhr.onload = function () {
@andyfitz
andyfitz / code.gs
Last active June 25, 2019 13:35
GSApp doc to jive
//
function onOpen(){
var ui = DocumentApp.getUi();
ui.createMenu('🔥AOT Tools 🔥')
.addItem('⚓️ Sidebar 🧰', 'showSidebar')
// .addItem("html 2 drive", "exportAsHTML")
.addItem("➡ Post to Jive", "postToMojo")
.addToUi()
.showSidebar(); }
@andyfitz
andyfitz / home-assistant-loading-animation.markdown
Created April 22, 2019 10:58
home-assistant loading animation
Verifying my Blockstack ID is secured with the address 1FtWSk8dskB43Wnudnq63MiGKuGqKp1eX https://explorer.blockstack.org/address/1FtWSk8dskB43Wnudnq63MiGKuGqKp1eX
@andyfitz
andyfitz / index.html
Created October 3, 2012 02:17
using neighbour selectors to style and adjust e-reader preferences
<article class="book-reader">
<input type="checkbox" id="fullscreen">
<label for="fullscreen"></label>
<input type="checkbox" id="invert">
<label for="invert"></label>
%header#header
.wrapper
%h1
%a{:href => "#"}
Converge
%abbr UI
%a.settings{:href => "#"} settings
#notifications
#indicator
@andyfitz
andyfitz / index.haml
Created September 7, 2012 06:56
just change the font-size in the body and you're sweet
%header
.wrapper
%h1
Converge
%abbr UI
example
%a.settings{:href => "#"} settings
#notifications
#indicator
%span notifications
<header>
<div class="wrapper">
<h1>Converge</h1>
<a href="#" class="settings">settings</a>
<div id="notifications">
<div id="indicator">
<span>notifications</span>
<a href="#" class="important count">4</a>
<em> of </em>