Create and store a 512-byte random encryption key named secret:
$ mkkey secret
Encrypt the contents of file with the secret key and write it to file.enc:
$ encrypt secret < file > file.enc
| # Makefile tutorial, through examples | |
| # This is not a makefile! I just called it as such to have vim coloring work well. | |
| ######## | |
| # This makefile will always run. The default target is some_binary, because it is first. | |
| ######## | |
| some_binary: | |
| echo "nothing" | |
| ######## |
| # Passes https://gist.github.com/mrocklin/5722155 | |
| def groupby(f, coll): | |
| """ Group elements in collection by ``f`` """ | |
| d = dict() | |
| for item in coll: | |
| key = f(item) | |
| if key not in d: | |
| d[key] = [] | |
| d[key].append(item) |
| var empty_list = function(selector) { | |
| return selector(undefined, undefined, true); | |
| }; | |
| var prepend = function(el, list) { | |
| return function(selector) { | |
| return selector(el, list, false); | |
| }; | |
| }; | |
| var head = function(list) { |
Tested against the WebKit git repo by entering the repo with 1 file dirty.
git diff --quiet --ignore-submodules HEAD # Will tell if there are any uncomitted changes, staged or not.
0.6 sec
git diff-index --quiet HEAD # Only tracked
2 sec
| " Next and Last {{{ | |
| " Motion for "next/last object". "Last" here means "previous", not "final". | |
| " Unfortunately the "p" motion was already taken for paragraphs. | |
| " | |
| " Next acts on the next object of the given type in the current line, last acts | |
| " on the previous object of the given type in the current line. | |
| " | |
| " Currently only works for (, [, {, b, r, B, ', and ". | |
| " |
| # | |
| # Python Template Markup Language | |
| # Simple Python DSL for HTML and (a little) CSS templating. | |
| # | |
| # Example: | |
| # | |
| # from ptml import * | |
| # | |
| # with html5 as out: | |
| # with head: |