Skip to content

Instantly share code, notes, and snippets.

View patrickhlauke's full-sized avatar
:shipit:
In your base, killing your bugs...

Patrick H. Lauke patrickhlauke

:shipit:
In your base, killing your bugs...
View GitHub Profile
@patrickhlauke
patrickhlauke / scrollwrapper.js
Last active March 9, 2026 14:47
Scrollable containers
(function () {
/* Scroll wrapper
Finds all `.scroll-wrapper` elements, adds a `role="region"` and `aria-label="Scrollable content"` attribute,
and sets up a resize observer to add a `tabindex="0"` attribute if the table is scrollable.
Note: Chrome and Firefox now automatically make elements with `overflow` keyboard-focusable, so the script
here is mostly redundant (though it does add nice `role` and `aria-label`); Safari, however, does not,
so it's still needed.
@patrickhlauke
patrickhlauke / eleventy.js
Last active June 26, 2022 14:44
Fragment for `.eleventy.js` for a slightly modified svg shortcode
const fs = require('fs');
module.exports = config => {
/*
Custom svg shortcode to more cleanly include svgs.
Based on https://dev.to/extrabright/11ty-inject-svg-code-using-shortcodes-3l4m but extended to support additional attributes.
Takes file path, and optionally any additional attributes to be output as part of the <svg> opening tag
Basic example:
@patrickhlauke
patrickhlauke / README.md
Created July 20, 2021 19:36 — forked from seignovert/README.md
Enable RSync with Synology DSM 6.0 without RSA SSH-key

Enable RSync with Synology DSM 6.0 without RSA SSH-key

##Enable user home service Open the Control panel, in the User section go to Advanced tab and in the section User Home:

  • Enable user home service Click Apply

##Enable SSH Go to Terminal & SNMP section and:

  • Enable SSH service
@patrickhlauke
patrickhlauke / profile.json
Last active July 21, 2020 16:04
Windows Terminal Preview profile
// This file was initially generated by Windows Terminal Preview 1.1.1812.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",