Skip to content

Instantly share code, notes, and snippets.

@vxe
vxe / gist:6811891
Created October 3, 2013 15:37
compile tricked out vim from source
#!/bin/bash
# get dependencies
sudo apt-get build-dep vim
sudo apt-get build-dep perl
sudo apt-get build-dep python2.7
sudo apt-get build-dep ruby1.9.1
sudo apt-get build-dep racket
sudo apt-get build-dep lua
sudo apt-get install mercurial
@vxe
vxe / ansible-install-roles
Last active September 6, 2018 10:15
PHP hip-hop, will install and create in a directory called "dev". Actual executable is called hhvm and is located in dev/hiphop-php/hphp/hhvm
ansible-galaxy install -p ./roles -r roles.yml
@vxe
vxe / anonymous-gist.
Created May 2, 2016 21:17
guile command line arg fail
#!/usr/local/bin/guile \
-e main -s
!#
(define (main args)
(map (lambda (arg) (display arg) (display " "))
(cdr args))
(newline))
@vxe
vxe / anonymous-gist.
Created May 2, 2016 21:20
janky guile command line parsing
#!/usr/local/bin/guile \
-e main -s
!#
(define (main args)
(map (lambda (arg) (display arg) (display " "))
(cdr args))
(newline))
(define (caddddr list)
(car (cdr (cdr (cdr (cdr list))))))
@vxe
vxe / install-stump-steps.org
Last active June 15, 2016 14:49
install stumpwm
  • Install zsh
  • Install Pacakge Manager version to install package manager
  • Get slime working
  • change prefix key to C-’
  • install sbcl
  • install quicklisp packages
  • compile stumpwm
  • create .xinitrc to point to new install
  • reboot
  • profit
@vxe
vxe / .emacs-min
Created July 29, 2016 13:57
minimalistic emacs config
(keyboard-translate ?\C-t ?\C-x)
(global-set-key (kbd "C-x x") 'execute-extended-command)
(global-set-key (kbd "C-x C-x") 'execute-extended-command)
(global-set-key (kbd "C-x RET") 'list-buffers)
(global-set-key (kbd "C-x 7") 'winner-undo)
(fset 'yes-or-no-p 'y-or-n-p)
(setq winner-mode t)
(org-babel-do-load-languages 'org-babel-load-languages
'((sh . t)))
[340/352] Linking build/boehm/iclasp-boehm
[341/352] Processing link_bitcode - linking all object(bitcode) files.
/Users/vedwin/src/externals-clasp/build/release/bin/llvm-ar: creating /Users/vedwin/Downloads/tm
p/home/clasp/build/boehm/fasl/boehm-all-cxx.a
clang version 4.0.0 (http://llvm.org/git/clang.git 715c2ef7122c091bc6f5899a6120deb5390a6fac) (ht
tp://llvm.org/git/llvm.git c54021df3fd4d71d822b3112cba4e43d94927378)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
[342/352] Processing dsymutil: build/boehm/iclasp-boehm build/boehm/iclasp-boehm.lto.o -> build/
boehm/iclasp-boehm.dSYM/Contents/Info.plist build/boehm/iclasp-boehm.dSYM/Contents/Resources/DWA
RF/iclasp-boehm
cmd: dsymutil /Users/vedwin/Downloads/tmp/home/clasp/build/boehm/iclasp-boehm
warning: (x86_64) /Users/vedwin/Downloads/tmp/home/clasp/build/boehm/iclasp-boehm.lto.o unable t
o open object file: Is a directory
warning: no debug symbols in executable (-arch x86_64)
[343/352] Compile aclasp using... compile_aclasp
In compile_aclasp /Users/vedwin/Downloads/tmp/home/clasp/build/boehm/iclasp-boehm -> /Users/vedw
@vxe
vxe / Dockerfile.clasp
Created June 29, 2017 04:29
rather ugly docker image for running clasp
FROM ubuntu:xenial
MAINTAINER Vijay Edwin
WORKDIR /root
# add LLVM repo
RUN apt-get -y update && apt-get -y install wget && apt-get clean
RUN wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add -
RUN echo 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main'\
>/etc/apt/sources.list.d/llvm4.list
;;; org-mime.el --- org html export for text/html MIME emails
;; Copyright (C) 2010-2015 Eric Schulte
;; Author: Eric Schulte
;; Keywords: mime, mail, email, html
;; Homepage: http://orgmode.org/worg/org-contrib/org-mime.php
;; Version: 0.01
;; This file is not part of GNU Emacs.