All posts
Moving files between git repositories, preserving history
I needed to copy a directory between two git
repositories while preserving its history. I found some good instructions at http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/, which got me started, but I figured out a way to avoid having to move all the files into their directory again (lines 5-6 in Greg’s instructions) by reversing the filter to remove everything I don’t want instead of only including the directory I want. Here are the steps (the idea is the same as in Greg’s post, so please read that to get the explanation, I’m only listing the commands here for reference):

The First Apple Homepage
via http://kfury.com/the-first-apple-homepage
Three levels of GIT config
via http://www.codinginahurry.com/2011/02/05/three-levels-of-git-config/
git
config; project, global and system.-
-
- project: Project configs are only available for the current project and stored in
.git/config
in the project's directory. - global: Global configs are available for all projects for the current user and stored in
~/.gitconfig
. - system: System configs are available for all the users/projects and stored in
/etc/gitconfig
.
- project: Project configs are only available for the current project and stored in
-
git config user.name "John Doe"
git config --global user.name "John Doe"
git config --system user.name "John Doe"
Watching for changes (Polling notifications) in Evernote
via https://dev.evernote.com/doc/articles/polling_notification.php
Polling
If your app wants to know about changes in a user's Evernote account, you'll probably consider calling the NoteStore.findNotesMetadata function periodically to search for new notes. findNotes is incredibly powerful, but it's also expensive for our servers - we need to load the user's Lucene index, perform the search across all of their notes, hit the database to pull out the results, and send those results over the network to your app. If you're building a web application, you should use webhooks instead of polling. If you have to poll, you should follow the guidelines below.
How to create a new KVM VM using command line tools
Find all single-note tags in Evernote
You’re probably using the wrong dictionary
Mac keyboard shortcuts by Matt Gemmell
How to solve truncated docker output in Mac OS X using boot2docker
If you are using docker on Mac OS X using boot2docker (http://docs.docker.io/installation/mac/), you may see truncated output from docker run
, and also may have noticed that docker attach
does not work properly, producing only some output and then exiting. This bug is documented here: https://github.com/boot2docker/boot2docker/issues/150, where I also found the following workaround. Documenting it here in case anyone finds it useful:
Instead of using the default value of DOCKER_HOST
provided by boot2docker up
, establish the docker connection through an ssh tunnel: