Skip to content

Instantly share code, notes, and snippets.

@diamond-lizard
diamond-lizard / stdout.txt
Last active November 17, 2017 18:32
Contents of /usr/include/SDL2
% ls -1 /usr/include/SDL2
begin_code.h
close_code.h
SDL_assert.h
SDL_atomic.h
SDL_audio.h
SDL_bits.h
SDL_blendmode.h
SDL_clipboard.h
SDL_config.h
@diamond-lizard
diamond-lizard / stdout.txt
Created November 17, 2017 18:30
keeperrl - SDL2/SDL_image.h: No such file or directory
% make OPT=true RELEASE=true
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/5.4.0/g++
bash ./gen_version.sh
g++ -MMD -Wall -std=c++1y -Wno-sign-compare -Wno-unused-variable -Wno-shift-count-overflow -Wno-tautological-constant-out-of-range-compare -Wno-mismatched-tags -ftemplate-depth=512 -DRELEASE -O3 -I. -I./extern -c workshops.cpp -o obj-opt/workshops.o
g++ -MMD -Wall -std=c++1y -Wno-sign-compare -Wno-unused-variable -Wno-shift-count-overflow -Wno-tautological-constant-out-of-range-compare -Wno-mismatched-tags -ftemplate-depth=512 -DRELEASE -O3 -I. -I./extern -c zones.cpp -o obj-opt/zones.o
zones.cpp: In function ‘HighlightType getHighlight(ZoneId)’:
zones.cpp:45:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
@diamond-lizard
diamond-lizard / stdout.txt
Created November 17, 2017 16:45
emacs-libveterm: second (require 'vterm)
Debugger entered--Lisp error: (error "Loading file /usr/local/apps/emacs-26.0.90/share/emacs/26.0.90/lisp/help-mode.elc failed to provide feature ‘vterm-module’")
require(vterm-module)
eval-buffer(#<buffer *load*> nil "/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" nil t) ; Reading at buffer position 218
load-with-code-conversion("/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" "/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" nil t)
require(vterm)
eval-region(204 220 t #f(compiled-function (ignore) #<bytecode 0x51d357>)) ; Reading at buffer position 219
elisp--eval-defun()
eval-defun(nil)
funcall-interactively(eval-defun nil)
call-interactively(eval-defun record nil)
@diamond-lizard
diamond-lizard / stdout.txt
Created November 17, 2017 16:42
emacs-libvterm (require 'vterm)
Debugger entered--Lisp error: (error "Required feature ‘vterm-module’ was not provided")
require(vterm-module)
eval-buffer(#<buffer *load*> nil "/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" nil t) ; Reading at buffer position 218
load-with-code-conversion("/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" "/home/me/.emacs.d/dist/emacs-libvterm/vterm.el" nil t)
require(vterm)
eval-region(204 220 t #f(compiled-function (ignore) #<bytecode 0x4acfeb>)) ; Reading at buffer position 219
elisp--eval-defun()
eval-defun(nil)
funcall-interactively(eval-defun nil)
call-interactively(eval-defun record nil)
@diamond-lizard
diamond-lizard / stdout.txt
Created November 17, 2017 16:38
emacs-libvterm build with -DEMACS_SOURCE=...emacs-26.0.90
% cmake -DEMACS_SOURCE=/home/me/compilation/editors/emacs/emacs/emacs-26.0.90 ..
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
@diamond-lizard
diamond-lizard / stdout.txt
Created November 17, 2017 09:30
'make run' in libvterm
% make run
[ 8%] Performing update step for 'emacs'
Current branch master is up to date.
[ 16%] Performing configure step for 'emacs'
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)
Checking for autoconf (need at least version 2.65) ... ok
Your system has the required tools.
Running 'autoreconf -fi -I m4' ...
You can now run './configure'.
@diamond-lizard
diamond-lizard / stdout.txt
Created November 11, 2017 00:07
pew toggleglobalsitepackages
% pew new --python=python3 myproject
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr/lib/python-exec/python3.4/../../..'
New python executable in /home/me/.local/share/virtualenvs/myproject/bin/python3
Not overwriting existing python script /home/me/.local/share/virtualenvs/myproject/bin/python (you must use /home/me/.local/share/virtualenvs/myproject/bin/python3)
Installing setuptools, pip, wheel...done.
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
(myproject) >
% pew toggleglobalsitepackages
Enabled global site-packages
@diamond-lizard
diamond-lizard / pew-output.txt
Last active November 10, 2017 19:39
ld: cannot find -lboost_python
% pew new --python=python3 -i ./mididings myproject
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr/lib/python-exec/python3.4/../../..'
New python executable in /home/me/.local/share/virtualenvs/myproject/bin/python3
Not overwriting existing python script /home/me/.local/share/virtualenvs/myproject/bin/python (you must use /home/me/.local/share/virtualenvs/myproject/bin/python3)
Installing setuptools, pip, wheel...done.
Processing ./mididings
Installing collected packages: mididings
Running setup.py install for mididings ... error
Complete output from command /home/me/.local/share/virtualenvs/myproject/bin/python3 -u -c "import setuptools, tokenize;__file__='/home/me/tmp/pip-
@diamond-lizard
diamond-lizard / remove-divs-and-ids.lua
Created November 3, 2017 20:41
How to tell pandoc to remove div's and IDs from org-mode output
-- If you want pandoc to remove all divs and delete all IDs from its org-mode output,
-- use pandoc's `--lua-filter` option and pass it the following lua script.
-- For more information see https://pandoc.org/lua-filters.html
function Header (elem)
elem.identifier = ""
return elem
end
function Div (elem)
@diamond-lizard
diamond-lizard / Patched w3m-form-expand-form.el
Created November 3, 2017 19:02
Patched w3m-form-expand-form
(el-patch-defun w3m-form-expand-form ()
"Expand the form at point so as to show the contents fully.
`w3m-show-form-hint' uses this function."
(unless (get-text-property (point) 'w3m-form-expanded)
(let ((inhibit-read-only t)
(act (w3m-action))
(mod (buffer-modified-p))
value from pt to keymap)
(when (cond ((eq (car act) 'w3m-form-input)
(setq value (w3m-form-get (nth 1 act) (nth 2 act))))