Monthly Archives: November 2012

Wine Notes

I made something. A simple Android app. If you like taking notes of the wines you taste, this app is for you. After you’ve tasted a couple of wines it becomes difficult to remember which ones were good and why. Hopefully this app will help you keep track!

If you live near Paris don’t miss the fantastic annual wine tasting event this week!

http://www.vigneron-independant.com/auxsalons/

Project homepage: /projects/wine-notes/

Google Play page: https://play.google.com/store/apps/details?id=com.winenotes.lite

Android app on Google Play

Send email notification on commits to a git repository

Two things to do: configure the email parameters and enable the hook.

To configure the email parameters, add a section in the config file of the Git repository like this:

[hooks]
    showrev = "git show -C %s; echo"
    emailprefix = "[git-projectname] "
    mailinglist = "jack@example.com,mike@example.com"
    envelopesender = noreply@example.com

Also edit the description file of the project, it should contain a single line with the name of the project, for example ProjectName. This name will appear in both the subject and the message body, it will be UNNAMED PROJECT by default if you don’t customize it.

As a result the subject of emails should look like this:

[git-projectname] ProjectName branch master updated. [the SHA1]

To enable email sending, copy the sample hook script hooks/post-receive.sample to hooks/post-receive and edit it. The last line of the file is usually commented out by default. Remove the comment to enable sending emails. Also make sure the script is executable.