Useful alias to add to your .zshrc or .bashrc or .profile or whatever.
1 2 |
|
Useful alias to add to your .zshrc or .bashrc or .profile or whatever.
1 2 |
|
When you paste in vim, if the indents look funny, then before you paste, run:
1
|
|
make sure you’re in insert mode, do paste, then
1
|
|
and continue editing.
Run as root:
1
|
|
And restart your redis-server process.
1
|
|
Add a tag:
1
|
|
Push tags to GitHub:
1
|
|
Delete tag locally:
1
|
|
Push to GitHub:
1
|
|
Rinse.
Repeat.
Getting vagrant installed on ubuntu isn’t as easy as it should be (as of v1.0.5 on 12.10). Here are a few solutions to make your life easier:
Bug 1:
I noticed that ruby + gems didn’t exist on a vanilla 12.10 install and that installing the official .deb from vagrantup.com resulted in a vagrant not found error.
Fix 1:
1 2 |
|
Bug 2:
After running my first vagrant up with a precise64 base box, I noticed that the guest VM was having trouble with resolving domain names. Peeking at the /etc/hosts file, I saw an entry that read:127.0.1.1 precise64
After correcting this to 127.0.0.1 precise64, it still froze when pip installing some python modules. This was strange considering the guest was configured to run in bridge mode.
Fix 2: The following settings cured it:
1 2 |
|
Here, myvagrantbox_23901293 is the name assigned to the guest in virtualbox by vagrant and can be found via the virtualbox UI.
This requires Joda-Time.
You need to
1
|
|
For those times when you need to checkout a branch locally and set it up to track a remote branch that already exists on GitHub:
1
|
|