Search Ali's Blog

Tuesday, October 26, 2010

GIT Tips

While looking for GIT configuration for "signed-off-by" line, I found this nice link for GIT tips.
It has nice git-config commands that you might find useful in general.


Specifically, to automaticaly add the "signed-off-by: NAME " line into your git commits, run the following two commands:


git config user.name 'Your name'
git config user.email 'my@email.com'


I also found this nice link while searching for git cherry-pick, thanks for sharing.

Tuesday, October 05, 2010

Extract vSphere Installation Bundle

If you happen to need to extract vSphere Installation Bundle (vib), this can be done by running the following:
- Extract the zip archive:
  unzip BUNDLE.zip
Two files will be created, metada.zip and VIB.vib
- Extract the vib archive
  ar -x VIB.vib
The following files will be created:
  control.tar.gz
  data.tar.gz
  debian-binary
  descriptor.xml
  short.rpm sig.pkcs7
- Extract data.tar.gz
  tar -xzvf data.tar.gz
  The result would be the files you are looking for. enjoy!

Note:
- ar command is normally not available on ESX Server, run this command on Linux.
- I added support to this script to recognize vib extension.