Skip to content

Instantly share code, notes, and snippets.

View saumier's full-sized avatar

Gregory Saumier-Finch saumier

View GitHub Profile
@saumier
saumier / README.md
Created March 30, 2023 23:46 — forked from coderanger/README.md
My incident report template

[My company] Incidents

This repository contains incident reports for all [my company] products and services.

How to document an incident?

Copy the template.md file to a new file named YYYY-mm-dd-title-of-incident.md, eg. 2021-09-08-database-outage.md. Make sure the date is correct for UTC rather than your local time zone, for California staff this might mean the incident happened "tomorrow". Then fill in all the fields in the template and create a Pull Request. The [my team] team will review and merge it.

What counts as an incident?

@saumier
saumier / gist:2cd477ddeaf3b42d43cb
Last active September 19, 2015 15:36 — forked from skynet/gist:47d233d20f7010828d01
Detecting Ad Blockers on Your Website
<div class="afs_ads">&nbsp;</div>
<script>
(function() {
var message = "We've detected that you have an ad blocker enabled! Please turn off your ad blocker and help support our work!";
// Define a function for showing the message.
// Set a timeout of 2 seconds to give adblocker
// a chance to do its thing
var tryMessage = function() {
setTimeout(function() {