import code; code.interact(local=locals())IPython with embed()
| ssh-keygen -y -f private_key1.pem > public_key1.pub |
| git diff -p \ | |
| | grep -E '^(diff|old mode|new mode)' \ | |
| | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \ | |
| | git apply |
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the active virtualenv | |
| # * the branch of the current git/mercurial repository | |
| # * the return value of the previous command | |
| # * the fact you just came from Windows and are used to having newlines in | |
| # your prompts. |
| That’s one of the real strengths of Docker: the ability to go back to a previous commit. The secret is simply to docker tag the image you want. | |
| Here’s an example. In this example, I first installed ping, then committed, then installed curl, and committed that. Then I rolled back the image to contain only ping: | |
| $ docker history imagename | |
| IMAGE CREATED CREATED BY SIZE | |
| f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB | |
| 28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB | |
| 8dbd9e392a96 7 months ago 131.5 MB |
(NOTE: Current and future versions of this and any other Advantage 2-related things I post will be at https://github.com/nicholasknight/adv2keyboard)
I received my Advantage 2 today. There's no full manual yet, even though keyboards are apparently arriving (hint, hint, Kinesis). The quick start guide leaves out the "power user mode", and there are some other quirks.
Update: A manual has been posted at http://www.kinesis-ergo.com/advantage2-resources/
It includes a dictionary for the key maps, but I know it leaves at least one possible key undocumented: it does not list f14, but I have successfully mapped my scrollock to f14 regardless.
It also mentions a firmware version (1.0.18) that doesn't seem to be available yet, with a new feature (status report playback speed).