Skip to content

Instantly share code, notes, and snippets.

View lwneal's full-sized avatar

Lawrence Neal lwneal

View GitHub Profile
@lwneal
lwneal / bashfile
Last active January 16, 2024 22:46
#!/usr/bin/echo calm down it's just a shebang
#!/bin/bash
# ^
# There's nothing magical about shebang (#!) lines- they just tell the shell which executable should be used to run this script
# The <<EOF syntax is called a heredoc (https://en.wikipedia.org/wiki/Here_document)
# It allows us to conveniently cat a large amount of text
# Let's use a heredoc to write the Dockerfile
cat >Dockerfile <<'EOF'
# syntax = docker/dockerfile:1.4.0
@lwneal
lwneal / mkvtoolnix-install-failure-in-home-dir.txt
Created August 31, 2015 04:09
Failure of `brew install mkvtoolnix` in non-default directory
$ brew install mkvtoolnix
==> Downloading https://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-8.3.0.tar.xz
Already downloaded: /Library/Caches/Homebrew/mkvtoolnix-8.3.0.tar.xz
==> ./configure --prefix=/Users/username/homebrew/Cellar/mkvtoolnix/8.3.0 --without-curl --with-boost=/Users/username/homebrew/opt/boost --with-extra-includes=/Users/username/homebrew/opt/libogg/includ
==> ./drake -j8
#include <ebml/c/libebml_t.h>
^
AR lib/pugixml/src/libpugixml.a
RANLIB lib/pugixml/src/libpugixml.a
2 warnings and 1 error generated.