[]: {{{1
File : README.md
Maintainer : Felix C. Stegerman <flx@obfusk.net>
Date : 2013-05-25
[]: }}}1
[]: {{{1
| # Usage: canonpath <path> | |
| # No physical check on the filesystem, but a logical cleanup of a | |
| # path. | |
| # Uses perl. | |
| function canonpath () | |
| { perl -MFile::Spec -e 'print File::Spec->canonpath($ARGV[0])' "$1"; } | |
| 7z a -mhe=on -p foo.7z foo/ |
| O = require 'obfusk'; U = require 'underscore' | |
| f = (x) -> O.Just x + 1 | |
| g = (x) -> O.Just x * 42 | |
| h = (x) -> O.Nothing() | |
| x = U.reduce([f,g], O.mbind, O.Just(2)) | |
| y = U.reduce([f,h,g], O.mbind, O.Just(2)) | |
| console.log O.match(x, Nothing: (-> 'too bad'), Just: ((x) -> "#{x.value}!!!")) |
| grep -R '[^"]\$@\|\$@[^"]' --exclude-dir=.git . 2>/dev/null | grep -v Binary |
| # 1 | |
| # usage: relpath <to> <from> | |
| relpath () { python -c \ | |
| 'import os.path, sys; print os.path.relpath(*sys.argv[1:])' "$@"; } | |
| # 2 | |
| rel_bin="${bin#"$PREFIX"}" |
| CFG = { | |
| test: {}, | |
| prod: {}, | |
| dev: { | |
| ... | |
| # smtp: { ... } | |
| } | |
| } |
| libav-tools | |
| libavcodec-extra-53 | |
| libavdevice-extra-53 | |
| libavfilter-extra-2 | |
| libavformat-extra-53 | |
| libpostproc-extra-52 |