Skip to content

Instantly share code, notes, and snippets.

@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)))
@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 / 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 / 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 / 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 / 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