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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyfitz
andyfitz / svg-dots.html
Created July 8, 2014 19:06
Dots using SVG path
<html>
<head>
<style>
path{
stroke:#d3d6d9;
transition:stroke-width .6s cubic-bezier(0,.72,.25,1.25) ;
stroke-width:3px;
stroke-linecap:round;}
@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