This gist describes how to set up a new machine running coreos.
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa_kartoza99
Get the public key:
| #!/usr/bin/python | |
| from StringIO import StringIO | |
| import paramiko | |
| class SshClient: | |
| "A wrapper of paramiko.SSHClient" | |
| TIMEOUT = 4 | |
| def __init__(self, host, port, username, password, key=None, passphrase=None): |
| sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
| sudo apt-get build-dep vim-gnome | |
| sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
| sudo rm -rf /usr/local/share/vim | |
| sudo rm /usr/bin/vim | |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| " ACEJUMP | |
| " Based on emacs' AceJump feature (http://www.emacswiki.org/emacs/AceJump). | |
| " AceJump based on these Vim plugins: | |
| " EasyMotion (http://www.vim.org/scripts/script.php?script_id=3526) | |
| " PreciseJump (http://www.vim.org/scripts/script.php?script_id=3437) | |
| " Type AJ mapping, followed by a lower or uppercase letter. | |
| " All words on the screen starting with that letter will have | |
| " their first letters replaced with a sequential character. | |
| " Type this character to jump to that word. |