This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN apk --no-cache add tmux sudo vim less | |
RUN echo 'ALL ALL=NOPASSWD: ALL' | tee /etc/sudoers.d/house-is-a-rockin | |
WORKDIR /usr/local/src | |
RUN apk --no-cache add build-base git | |
RUN git clone https://github.com/dirtbags/fluffy | |
RUN make -C fluffy install DESTDIR=/usr/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# while await-change *.c; do make && ./run; done | |
await_change () { | |
ts=/tmp/await-change.$$ | |
: >$ts | |
while sleep 0.3; do | |
for fn in "$@"; do | |
if [ $fn -nt $ts ]; then | |
rm -f $ts | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// I just found out that we have a bunch of NSFW emoji in our bulk-imported set of >4000 emoji. | |
// Rather than weed them out, I want to start with a blank slate. This code does that. | |
// | |
// Navigate to your "Custom Emoji" page, the one with all the delete buttons. | |
// Delete one of them and acknowledge that it's going away forever. | |
// Then open the JavaScript console and paste this in. | |
// | |
// At some point your JavaScript console will start spewing errors. | |
// Reload the Emoji page, delete one emoji by hand again, and paste this in again to resume. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 default_server ssl http2; | |
// server_name if you need it | |
// don't forget your SSL configuration | |
location ~ ^/([^/]+)/ { | |
resolver 127.0.0.11; | |
proxy_pass http://$1/; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Starship Engine Noise</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script> | |
function whiteNoise(audioCtx) { | |
var bufferSize = 17 * audioCtx.sampleRate, | |
noiseBuffer = audioCtx.createBuffer(1, bufferSize, audioCtx.sampleRate), | |
output = noiseBuffer.getChannelData(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Web MIDI explorer</title> | |
<style> | |
.message span { | |
padding: 0.5em; | |
} | |
.message .type { | |
font-weight: bold; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM bugroger/coreos-developer:${COREOS_VERSION} as BUILD | |
ENV R750_VERSION=v1.2.10.1-17_01_23 | |
RUN emerge-gitclone | |
RUN . /usr/share/coreos/release && \ | |
git -C /var/lib/portage/coreos-overlay checkout build-${COREOS_RELEASE_VERSION%%.*} | |
RUN emerge -gKv coreos-sources > /dev/null | |
RUN cp /usr/lib64/modules/*/build/.config /usr/src/linux/ | |
RUN make -C /usr/src/linux modules_prepare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# If you have more than 50 chapters, you'll need to bump this value up. | |
# It doesn't hurt anything to have the number too high, though. | |
for i in $(seq -w 1 50); do | |
echo "== Chapter $i" | |
HandBrakeCLI \ | |
--input /mnt/chromeos/removable/No\ Label/ \ | |
--crop 0,0,0,0 \ | |
--chapters $i \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ord(c) { | |
for (i = 0; i < 256; i += 1) { | |
if (sprintf("%c", i) == c) { | |
return i | |
} | |
} | |
return 256 | |
} | |
function hash(str) { |