Skip to content

Instantly share code, notes, and snippets.

herrernst

  • Vienna
Block or report user

Report or block herrernst

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@herrernst
herrernst / index.html
Last active Jun 11, 2019
OTF vs TTF rendering darkness/boldness
View index.html
<!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)
View dbgmsg
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
View http-timeout.html
<!doctype html>
<p>hello</p>
<script src="https://1.2.3.4/"></script>
<p>finish</p>
View oembed.html
<!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>
@herrernst
herrernst / asound.conf
Created Mar 4, 2018
alsa dmix raspberry pi hifiberry
View asound.conf
pcm.hifiberry {
type hw card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
View firefox-not_secure.html
<!doctype html>
<body>
<blockquote class="twitter-tweet" data-lang="de"><p lang="en" dir="ltr">Mm just saw the new Snapchat.. I don’t know how i feel about it! What do you guys think?</p>&mdash; Kylie Jenner (@KylieJenner) <a href="https://twitter.com/KylieJenner/status/962048891485999105?ref_src=twsrc%5Etfw">9. Februar 2018</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</body>
@herrernst
herrernst / touchmove-prevent.html
Created Sep 6, 2017
safari touchmove event preventDefault
View touchmove-prevent.html
<!doctype html>
<meta name="viewport" content="initial-scale=1">
<h1>safari touchmove event preventDefault</h1>
<div style="width: 300px; height: 300px; background: green"></div>
<h2>works</h2>
<pre>
document.addEventListener("touchmove", (e) => e.preventDefault())
</pre>
<h2>works</h2>
<pre>
View web-embed.html
<!doctype html>
<title>Web embeds</title>
<h2>Youtube</h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
<h2>Twitter</h2>
<blockquote class="twitter-tweet" data-cards="hidden" data-lang="en"><p lang="en" dir="ltr">&quot;No one is born hating another person because of the color of his skin or his background or his religion...&quot; <a href="https://t.co/InZ58zkoAm">pic.twitter.com/InZ58zkoAm</a></p>&mdash; Barack Obama (@BarackObama) <a href="https://twitter.com/BarackObama/status/896523232098078720">August 13, 2017</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
@herrernst
herrernst / browser-standby.md
Last active Feb 3, 2017
Browser behavior on computer standby
View browser-standby.md

Windows 10, Ethernet DHCP

IE11

offline/online events: yes

expired timers: fire immediately

active timers: fire on time

Firefox 50

@herrernst
herrernst / Dockerfile
Last active Dec 20, 2016
Dockerfile to build librespot on Ubuntu Trusty
View Dockerfile
FROM ubuntu:trusty
RUN dpkg --add-architecture armhf
RUN sed -i 's/deb /deb [arch=amd64,i386] /g' /etc/apt/sources.list
RUN sed -i 's/deb-src /#deb-src /g' /etc/apt/sources.list
RUN echo "deb [arch=armhf] http://ports.ubuntu.com/ trusty main" >> /etc/apt/sources.list
RUN echo "deb [arch=armhf] http://ports.ubuntu.com/ trusty-security main" >> /etc/apt/sources.list
RUN echo "deb [arch=armhf] http://ports.ubuntu.com/ trusty-updates main" >> /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get install -y gcc-arm-linux-gnueabihf libasound2:armhf libasound2-dev:armhf
RUN apt-get install -y gcc g++ git curl pkg-config libprotoc-dev file
You can’t perform that action at this time.