Archive for October, 2008
Proper email form (specifically top vs bottom posting) is something that has been on my mind lately. I am trying to share the benefits of trimming and bottom posting with my co-workers. They don’t seem to be taking kindly to it.
I would say my largest pet peeve when trying to teach good email habits is the “It takes to long” comment. In a business setting this sends shooting pains through my bones. Essentially you are saying the customer is not deserving or worth the time to take a few extra seconds when crafting a response.
If your interested in what my thoughts on top vs bottom posting read on.
(more…)
We will eventually go crazy without some rest. Looks like solaris cluster may have saved the day. Us Linux admins unfortunately do not have ZFS.
I recently found a vim plug-in for Wordpress. Vimpress allows your to write and edit your blog posts directly from vim. Sure it has its limitations. There does not appear to be support for future data publishing or drafts. But overall its a much better experience to write in vim than the built in editor.
(more…)
I hope you are already using ssh keys, but just in case your not go ahead and generate one with ssh-keygen -t rsa (you should do this on your local box)
You may as well go ahead and copy your publick key to your git server now as well.
scp ~/.ssh/id_rsa.pub gitserver:/tmp/
Log into your gitosis server
ssh gitserver
* Make sure setuptools is installed
sudo aptitude install python-setuptools git clone git://eagain.net/gitosis.git cd gitosis sudo python setup.py install sudo adduser --system --shell /bin/bash --gecos 'git version control' --group --disabled-password --/home/git git sudo -H -u git gitosis-init < /tmp/id_rsa.pub
We need to fix up a few things that don’t seem to get proper permissions.
sudo -H -u git chmod 600 ~/.ssh/authorized_keys sudo -H -u git chmod 755 ~/repositories/gitosis-admin.git/hooks/post-update sudo rm /tmp/id_rsa.pub
Thats all for now on your git server. You manage gitosis with git of course and you can do that from your local machine or any machine that you have the match to the public key you installed with gitosis.
git clone git@gitserver:gitosis-admin.git cd gitosis-admin.git
Creating new repositories
New repositories are created by authorizing a user to write and pushing to it.
[group someproject] members = jack jill writeable = someproject
This definition would create the group someproject and allow jack and jill write access to the repository someproject (which you would reference as someproject.git)
For a bit more explination …
[group developers] members = jack john frank writable = project1 project2 project3
This definition would create the group developers, and allow jack, john, and frank write access to the repositories project1, project2, and project3
Once you have defined your repositories commit and push your changes to gitosis admin.
git commit -a -m "Created inital gitosis config" git push
Now if you have an existing repository that you would like to add to your git server simply change into the repository and do
git remote add origin git@gitserver:repo.git git push
That will push the current branch of the repo over to the repo you set up on your git server. So thats about it.
Anonymous access
To allow anonymous read access touch git-daemon-export-ok inside ~/repositories/repo.git of each repo you wish to allow anonymous access (read only) to.
Once you have done that launch git-daemon with base path /home/git/repositories.
This is just a test post from vimpress. Vimpress is a vim plugin to post to wordpress. Seems there is an issue with not supporting the more tag, but it is much easier to write a post in vim than it is to use the builtin editor.
Hopefully you know how to undo and redo in vim using u and Ctrl-R. But with newer versions of vim you get point in time recovery. with :earlier. Give it a shot, make some changes to a script and then try :earlier 1m. Very cool and an easy way to undo a bunch of changes.
Python seems to keep growing on me. By no means am I a Python master, nor am I a vim guru but I do prefer to use vim over a gui editor. Sure there are some niceties with using a gui but getting comfortable using a tool that is almost always at your disposal has something to be said for it. Adding a few things to your vim environment will make writing python much more pleasurable. (more…)








