Skip to content

Instantly share code, notes, and snippets.

@8l
8l / lisp.hs
Created March 8, 2017 13:13 — forked from pheuter/lisp.hs
Minimal Lisp in Haskell
{-# LANGUAGE OverloadedStrings #-}
{- To Run:
Load in ghci
:set -XOverloadedStrings (for convenience)
Execute repl expr -}
import Control.Applicative
import Data.Attoparsec hiding (Result)
import Data.Attoparsec.Char8 (char8, isDigit_w8, isSpace_w8)
@8l
8l / nongnu.patch
Created July 6, 2016 21:49 — forked from pwaller/nongnu.patch
Make clang sanitizers work under musl
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc
index e26b400..9618933 100644
--- a/lib/asan/asan_linux.cc
+++ b/lib/asan/asan_linux.cc
@@ -39,7 +39,7 @@
#include <sys/link_elf.h>
#endif
-#if SANITIZER_ANDROID || SANITIZER_FREEBSD
+#if SANITIZER_ANDROID || SANITIZER_FREEBSD || SANITIZER_NONGNU
@8l
8l / webm_encode.sh
Last active August 29, 2015 14:27
flv to webm convert shell script using ffmpeg ex) ./webm_encode.sh sample
#!/bin/sh
ffmpeg -i $1.flv -vcodec libvpx -acodec libvorbis $1.webm
@8l
8l / bash_shellshock_patch.sh
Last active August 29, 2015 14:07
simple bash shellshock patch
#!/bin/sh
set -e
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
tar xf bash-4.3.tar.gz
wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-0{01..42}
cd bash-4.3
for i in ../bash43-0* ; do patch -p0 < ${i}; done
./configure --prefix=/usr \
--bindir=/bin \
--docdir=/usr/share/doc/bash-4.3.42 \