Skip to content

Instantly share code, notes, and snippets.

@herrernst
herrernst / raf.html
Last active August 11, 2023 10:00
requestAnimationFrame fps loop
<!doctype html>
<meta name="viewport" content="width=device-width">
<style>
:root {
font-family: sans-serif;
background: black;
color: white;
}
#frameInfo, #timeInfo, #fps {
font-size: 5em;
@herrernst
herrernst / checkerboard.html
Last active July 5, 2023 20:49
examples to test macOS scaling artifacts
<!doctype html>
<style>
:root {
background-color: white;
background-image:
linear-gradient(45deg, #000 25%, transparent 25%),
linear-gradient(-45deg, #000 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #000 75%),
linear-gradient(-45deg, transparent 75%, #000 75%);
background-size:2px 2px;
<!doctype html>
<meta name="viewport" content="width=device-width">
<style>
p, ul {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.condensed {
font-stretch: condensed;
background: rgba(255, 255, 0, 0.3);
@herrernst
herrernst / build.sh
Created October 7, 2021 14:07
build oci-image (for docker/podman) from rootfs
debootstrap bullseye ./debian-bullseye # download and create rootfs download
tar cf debian-bullseye.tar -C ./debian-bullseye/ . # tar
podman import debian-bullseye.tar debian-bullseye # import with name
podman run -it debian-bullseye /bin/bash # run bash in named container
@herrernst
herrernst / lip-sync.md
Last active April 30, 2021 17:12
debug lip sync and avr lag the cheap way
@herrernst
herrernst / cardigans-gran-turismo-guitar-player.md
Created February 6, 2021 23:02 — forked from oliverbaptiste/cardigans-gran-turismo-guitar-player.md
A Track-by-Track Tour of The Cardigans' Gran Turismo

A Track-by-Track Tour of The Cardigans' Gran Turismo

By Kyle Swenson
Guitar Player, January 1999

Swedish popsters the Cardigans dumped an earful of sugar on the world with their 1997 smash hit, "Lovefool." Based on the song''s sparse guitars and bubble-gum chorus, you probably wouldn''t think of the band as raving experimentalists. But the Cardigan''s fourth album, Gran Turismo [Mercury], is a revelation of strange and rather unexpected guitar sounds. For example, you might think you''re hearing a guitar synth, a harpischord, or a pedal synth, a harpischord, or a pedal steel, but you''re not. All of the album''s sounds are production tricks conjured by guitarist Peter Svensson and producer Tore Johansson.

What's more, not one guitar track on Turismo was recorded using an amp. The guitars were either recorded direct or processed through Line 6's Amp Farm plug-in for Digidesign's Pro Tools. (For a full product review on Amp Farm, see "Virtual Vintage" in the Nov. '98 GP.) And although Amp Farm can de

@herrernst
herrernst / index.html
Last active June 11, 2019 13:42
OTF vs TTF rendering darkness/boldness
<!doctype html>
<title>OTF vs TTF rendering darkness/boldness</title>
<style>
@font-face {
font-family: "SourceSansPro-Regular.otf";
src: url(https://cdn.piraten-tools.de/fonts/source-sans-pro/2.020R-ro-1.075R-it/WOFF/OTF/SourceSansPro-Regular.otf.woff)
}
@font-face {
font-family: "SourceSansPro-Regular.ttf";
src: url(https://cdn.piraten-tools.de/fonts/source-sans-pro/2.020R-ro-1.075R-it/WOFF/TTF/SourceSansPro-Regular.ttf.woff)
@herrernst
herrernst / dbgmsg
Created November 21, 2018 20:54
zfs debug
This file has been truncated, but you can view the full file.
timestamp message
1542831618 dbuf.c:2675:dbuf_findbp(): error 2
1542831618 dmu_tx.c:910:dmu_tx_try_assign(): error 85
1542831618 dbuf.c:2675:dbuf_findbp(): error 2
1542831618 dmu_tx.c:910:dmu_tx_try_assign(): error 85
1542831618 dbuf.c:2675:dbuf_findbp(): error 2
1542831618 dmu_tx.c:910:dmu_tx_try_assign(): error 85
1542831618 dbuf.c:2675:dbuf_findbp(): error 2
1542831618 dmu_tx.c:910:dmu_tx_try_assign(): error 85
1542831618 dbuf.c:2675:dbuf_findbp(): error 2
@herrernst
herrernst / http-timeout.html
Last active September 14, 2018 16:25
http timeout
<!doctype html>
<p>hello</p>
<script src="https://1.2.3.4/"></script>
<p>finish</p>
<!doctype html>
<style>
[data-oembed] iframe {
display: block;
border: 0 none;
}
</style>
<h1>oembed example</h1>
<p>WTF most oembed endpoints don't support CORS, so have to fetch from server; there are services: https://github.com/itteco/oembed-api</p>
<div data-oembed="https://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DM3r2XDceM6A&format=json"></div>