2010
01.17

In my spare time, I like to write code snippets and samples. I like to test an idea here and there without writing something all the way to fruition. It gives me the freedom to tinker and and let my imagination wander. Once I start working through a complete solution that will eventually need support for a growing community, I start to lose interest. It’s the act of discovery that is what entertains me.

So I’ve collected some useful snippets and some garbage snippets. I’ve never bothered to put them in a repository because they were just small bits of code that were not intended to retain a long lifespan. When I got my Dell Mini10, I started writing snippets on that machine as well. Since I did this away from home, I couldn’t rely on my fileserver to be always available. I needed an easy way to organize my codebits so that I can see them on multiple machines.

I decided it was time to set up a repository, which will go nicely with my new domain. I set out to setup a server similar to GitHub but found that wasn’t as straight-forward as I had hoped. I asked a few questions in #git (irc.freenode.net) and received a few mixed answers. I ultimately was getting the following error:

Initialized empty Git repository in /tmp/test/.git/
Enter passphrase for key ‘/home/s1n/.ssh/id_rsa’:
fatal: ‘/test.git’ does not appear to be a git repository
fatal: The remote end hung up unexpectedly

No matter what I tried, I always ended up with an error along those lines. Then I found this guide, which has a great rundown for “impatient” users. Turns out, that path after git’s ssh:// URL is the path. That is ssh://someuser@server/path/to/repo.git has the repo.git in the /path/to/ folder on the server hostname available as someuser. I made a symlink in / to the repository folder and everything was ready to go.

Now I should be able to run my own git-daemon for my miscellaneous codebits and thoughts without having to publish them in a public repo. Maybe in the future, I’ll install a GitWeb browser, but right now, these are really considered private thoughts and I don’t think I want to share them.

No Comment.

Add Your Comment