Bath download photos

First install tgrab by pip:

Then create a script to run it in bath:

The script will go through the array then download all photos for the first 100 pages back.
Each tgrab job will running at background, the downloads will be under each folder.

Appreciate the works on tgrab.
And Pythong Rocks!

Move Rebuild the Gitolite server

Here is how I moved or rebuild the gitolite server.

My old gitolite version is 1.x.
Mark IP:[]
Clone your old gitolite-admin repo to somewhere.

The new gitolite I install on Debian 7 Wheezy through backports.
Mark IP:[]

  1. Make sure generate ssh key before you install gitolite3.
  2. Install gitolite3.
  3. It will asking you for the public key.

  4. Clone the gitolite-admin somewhere.
  5. copy the gitolite-adminconfgitolite.conf from old gitolite-admin repo to new gitolite-admin repo.
  6. Be careful of the admin for repo gitolite-admin.
    Make sure you have the key for the permission.

  7. copy the keys gitolite-adminkeydir* from old gitolite-admin repo to new gitolite-admin repo.
  8. copy all the repos from the old server to new server into a temp folder:.
  9. Drop the gitolite-admin and any other retired repo, then move them into the new gitolite3 repository folder:.
  10. Make sure the files end up with the right ownership and permissions; if not, chown/chmod them..
  11. I found most easy way to do it run scp by gitolite3 user.

  12. Push the changes on the new gitolite-admin repo:.

  13. And you are all set.

Redmine Log rotation

Just upgrade to Redmine 3.0.0
Finds of that the Log rotation and level did not work anymore.

I tried both old and new way:

The old config:

The new config:

I have to use logrotate at the end:

Here is my config file:

To test run: