Skip to content

Instantly share code, notes, and snippets.


Trey Piepmeier trey

View GitHub Profile
trey / alpine.html
Last active Dec 18, 2021
JavaScript confirmation message with Alpine.js and htmx
View alpine.html
<form x-data action="/something" @submit.prevent="if (confirm('Are you sure?')) $el.submit()" method="post">
<button aria-label="Delete this">[some icon]</button>
trey / starship.toml
Last active Dec 14, 2021
My Starship configuration
View starship.toml
# I live in `~/.config/starship.toml`.
add_newline = false
disabled = true
# Remove the default `on` before the branch name.
trey / markdown-autocomplete.js
Last active Mar 20, 2021
Autocomplete Markdown Lists in a Textarea (requires jQuery)
View markdown-autocomplete.js
const $textarea = $('textarea');
const ulRegex = /^- .+/;
const olRegex = /^\d+\. .+/;
const olNumberRegex = /^\d+/;
const emptyLiRegex = /^(-|(\d+\.)) $/;
const emptyOlLiRegex = /^\d+\. $/;
$textarea.on('keyup', e => {
const $this = $(;
trey / Safari.css
Last active Feb 27, 2021 — forked from shauninman/custom.css
Make Twitter dot com nicer.
View Safari.css
/* bye-bye brands */
/* */
div[aria-label~="Timeline"] div[role="group"] + div {
background-color: black;
position: absolute !important;
top: -24px !important;
left: -64px !important;
margin-top: 0 !important;
width: calc(100% + 64px);
height: calc(100% + 24px);
trey / remove-tumblr-cruft.css
Last active Feb 27, 2021
Remove Tumblr URL cruft.
View remove-tumblr-cruft.css
.tmblr-iframe—app-cta-button {
display: none !important;
trey / LICENSE
Last active Jan 13, 2021
Nicely Formatted Anti-Capitalist License
Copyright © 2020 Arthur L. Piepmeier III @trey
This is anti-capitalist software, released for free use by individuals and
organizations that do not operate by capitalist principles.
Permission is hereby granted, free of charge, to any person or organization
(the "User") obtaining a copy of this software and associated documentation
files (the "Software"), to use, copy, modify, merge, distribute, and/or sell
trey / .eleventy.js
Last active Oct 14, 2022
Display Image Exif Data in 11ty
View .eleventy.js
const responsiveImage = require('./src/_includes/shortcodes/responsive-image');
const exifData = require('./src/_includes/shortcodes/exif-data');
// …
module.exports = function(eleventyConfig) {
// …
eleventyConfig.addShortcode('responsiveImage', responsiveImage);
trey /
Last active Jan 7, 2022
VS Code settings 2021

Trey’s VS Code Settings

trey /
Last active Dec 30, 2019
A list of all the songs in A Tribe Called Quest Samples playlist on Spotify
trey /
Last active Jan 17, 2020
Cheat Sheet: J Dilla

I love this playlist so much and I would be sad if it went away. Now I’ll have the track names in any case.

27 hours and 3 minutes of shuffle-friendly goodness.


  1. In Spotify: select all tracks, copy, then paste them into a text file.
  2. Run shell script (which uses my url script).

Shell script: