Tag Archives: git

Git pre-commit hook for checking CFEngine 3 syntax

I was inspired by William Orr’s svn com­mit hook and looked up the magic needed to flesh out the git pre-commit hook I sub­mit­ted to the Design Cen­ter a while back. Now the index is checked out to its own tem­po­rary direc­tory and cf-promises val­i­dates promises.cf and failsafe.cf before allow­ing the com­mit to pro­ceed. Now you

pre-commit hook for git to check CFEngine syntax

Some­times I am not so dis­ci­plined to run cf-promises on my pol­icy before I com­mit it. I make a small change and I think I’m golden, but inevitably that breaks things. I wrote a sim­ple com­mit hook to check pol­icy syn­tax and stop you from shoot­ing your­self in the foot. You can find  the pre-commit

Install git on CentOS cpanel server

I have a love/hate rela­tion­ship with cpanel. On one hand it makes low end host­ing a breeze, on the other its a huge pita if you want to do any­thing “out­side the box”. Per­haps it’s not such a pain if you work with cpanel fre­quently. But I find cpanel ben­e­fi­cial because it aids in tasks

Revision your home directory with git using gibak

Over the last cou­ple days I’ve briefly talked about revi­sion­ing con­figs and mak­ing your home direc­tory portable. It seems to have stirred up a bit of dis­cus­sion over at Matt Sim­mons Stand­alone Sysad­min, and Hugh Browns men­tioned he uses mer­cu­r­ial for this task.. As I noted in the post about man­ag­ing /etc with ver­sion con­trol

Version your /etc

Seems like we are on a bit of a roll with regard to the topic of ver­sion­ing lately. Yes­ter­day Legooolas com­mented about using ver­sion con­trol for your home direc­tory. I do and I’ll cover that in a dif­fer­ent post but I use it for a dif­fer­ent task. Now on to todays topic. Do you keep