Skip to content

Instantly share code, notes, and snippets.

View pnathan's full-sized avatar
⚒️
worker

Paul Nathan pnathan

⚒️
worker
View GitHub Profile
@pnathan
pnathan / inotify_exec_on_file_change.sh
Created December 16, 2017 07:42 — forked from gwpl/inotify_exec_on_file_change.sh
inotifywait to exec specified command on each file change -> e.g. run "make", "pdflatex", or any other compile/upload or other command of choice! (Thanks https://superuser.com/a/181543/81861 ! )
#!/bin/bash
# Example usecase:
# inotify_exec_on_file_change.sh /path/phd paper.tex pdflatex paper.tex
dirn="$1"
filen="$2"
shift 2
echo "Watching directory $dirn for changes of file $filen . Watching directory insteaf of file to overcome behaviour of many text editors that replace file - Thanks to Giles and see his answer https://superuser.com/a/181543/81861 for more details. In case of matching even I execute:" $@

Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

# additional information: http://stackoverflow.com/questions/19162072/installing-raspberry-pi-cross-compiler/19269715#19269715
sudo apt-get install git build-essential
test `uname -m` = x86_64 && sudo apt-get install ia32-libs
git clone https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone http://github.com/mozilla/rust.git
cd rust

./configure --target=arm-unknown-linux-gnueabihf

(require 'sb-introspect)
(defun curry-helper (paramlist args function-name)
(if (= (length paramlist) (length args))
(apply function-name args)
(lambda (&rest more-args)
(let ((args (append args more-args)))
(assert (>= (length paramlist) (length args)))
(curry-helper paramlist args function-name)))))
@pnathan
pnathan / cyberpunk-theme.el
Created September 20, 2012 05:55 — forked from bo0ts/cyberpunk-theme.el
Fork so I can find it again. :-)
;; Cyberpunk Colour Theme
;;
;; "and he'd still see the matrix in his sleep, bright lattices of logic
;; unfolding across that colorless void..."
;; William Gibson, Neuromancer.
(deftheme cyberpunk
"")
(custom-theme-set-faces