October 2012
1 post
3 tags
Creating a LocalTunnel on dotCloud
tl;dr If you want to install LocalTunnel on dotCloud, use this repo: https://github.com/cyounkins/tunnel-on-dotcloud If you participate in a lot of hackathons or just want to expose a certain port on a development box to theInterwebs™, there’s a really useful app that performs all the ssh magic from one of the Twilio engineers, http://progrium.com/localtunnel/ . Installing this rubygem...
Oct 22nd
May 2012
2 posts
2 tags
Ignoring changes in git submodules
For those Vimmers using Pathogen to manage your runtime path, you’ll find that Pathogen creates tags files in the bundle’s doc folder. Thanks to this Stack Overflow post, all you need is Git 1.7.2 and the following command: for s in `git submodule --quiet foreach 'echo $name'`; do git config submodule.$s.ignore untracked; done Happy Vimming!
May 20th
4 tags
Avoiding the ESC key in Vim (and Readline)
It’s probably safe to say that I should’ve changed this (ugh) habit years ago, but I just never got around to it. Thanks to Stephen, I’ve finally updated my .vimrc to exit insert mode using: inoremap jk <ESC> Yay! More importantly, if you tend to set vi editing mode in readline, you definitely want to change its bindings as well. I found this gem hidden deep in the...
May 6th
April 2012
1 post
1 tag
Where did all my disk space go?
— Update Thanks to @pgr0ss for the tip, you can use -k instead of —block-size! On my cloud servers, I’m always asking myself: Where the !@#$% did all my disk space go? And I know somewhere, sometime down the road, future self will be thanking present self for blogging this as a reminder. To get the top <n> offending directories on your filesystem...
Apr 17th
February 2012
2 posts
3 tags
Access to OS X pasteboard in tmux/screen
If you’re having trouble accessing pbcopy/pbpaste from tmux and/or an unpatched screen, check out https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard.git tl;dr Clone repo Run makefile Add to path (or add symlink on path) Add set-option -g default-command “reattach-to-user-namespace -l zsh” or whatever your favorite shell is in your .tmux.conf code!
Feb 9th
1 note
4 tags
Getting uWSGI + init.d playing nicely on Ubuntu...
A few weeks ago, I wanted to install uWSGI on my Ubuntu 11.10 box for http://allb.us.  After having gone through the standard aptitude/pip installs to get uwsgi installed, I noticed after running the init.d scripts, absolutely nothing would happen.  zip. nada. zilch. No log file + no uwsgi process == a lot of sad pandas. After having searched stackoverflow, it was quite apparent that I...
Feb 7th
January 2012
1 post
2 tags
Passing in a custom port to ssh-copy-id
Thank you, #lazyweb. After years of using ssh-copy-id to drop public keys into a remote machine’s authorized keys, I finally found a post showing how to use the script to connect to a remote machine running on a custom port. http://it-ride.blogspot.com/2009/11/use-ssh-copy-id-on-different-port.html Note: This would’ve been apparent if I had just cat the script… but man, am I...
Jan 30th