Wednesday, September 30, 2015

hudson hate me

hudson hates me.

in husdon-security.xml , change:


voila!  everyone and their brother can go whatever.

not good enough?


mv initSetup.xml to initSetup.xml.o
and now you're at state zero.  go ahead hudson.  hate me.

This could be interesting...

2 NORMAL true class=""> hudson.model.Hudson.Administer:foo-jenkins hudson.model.Hudson.Administer:foo-ma-admins hudson.model.Hudson.Read:anonymous hudson.model.Item.Read:anonymous hudson.model.View.Read:anonymous

Friday, September 18, 2015

vmware vm file extensions revealed

what are all those files in a vmware vm's directory?

File Name





This is the file that keeps a log of key VMware Workstation activity. This file can be useful in troubleshooting if you encounter problems. This file is stored in the directory that holds the configuration (.vmx) file of the virtual machine.





This is the file that stores the state of the virtual machine's BIOS.



This is a virtual disk file, which stores the contents of the virtual machine's hard disk drive.

A virtual disk is made up of one or more .vmdk files. If you have specified that the virtual disk should be split into 2GB chunks, the number of .vmdk files depends on the size of the virtual disk. As data is added to a virtual disk, the .vmdk files grow in size, to a maximum of 2GB each. (If you specify that all space should be allocated when you create the disk, these files start at the maximum size and do not grow.) Almost all of a .vmdk file's content is the virtual machine's data, with a small portion allotted to virtual machine overhead.

If the virtual machine is connected directly to a physical disk, rather than to a virtual disk, the .vmdk file stores information about the partitions the virtual machine is allowed to access.

Earlier VMware products used the extension .dsk for virtual disk files.


This is a redo-log file, created automatically when a virtual machine has one or more snapshots. This file stores changes made to a virtual disk while the virtual machine is running. There may be more than one such file. The ### indicates a unique suffix added automatically by VMware Workstation to avoid duplicate file names.



This is a centralized file for storing information and metadata about snapshots.



This is the snapshot state file, which stores the running state of a virtual machine at the time you take that snapshot


This is the file which stores the state of a snapshot



This is the suspended state file, which stores the state of a suspended virtual machine

.Some earlier VMware products used the extension .std for suspended state files



This is the configuration file containing team data.



This is the primary configuration file, which stores settings chosen in the New Virtual Machine Wizard or virtual machine settings editor. If you created the virtual machine under an earlier version of VMware Workstation on a Linux host, this file may have a .cfg extension

This may be edited by hand (or programmatically).



This is a supplemental configuration file for virtual machines that are in a team. Note that the .vmxf file remains if a virtual machine is removed from the team.

Wednesday, September 9, 2015

libpst and ost conversion

crap. i have an ost file and i need to pick through it for messages.

i could go to one of those creepy websites and pay for some application to convert my ost to pst and have a nice day. or. i could use something on my centos 6 linux box to do the same.

linux solution it is! let's install libpst. it has something called readpst which can convert an
ost to mbox (eml) format... perfect for grepping or importing into mailarchiva. oh yes.

 [natas@hell ~]# cd /usr/local/src/  
 [natas@hell ~]# wget  
 [natas@hell ~]# wget  
 [natas@hell ~]# wget  
 [natas@hell ~]# wget  
 [natas@hell ~]# wget  
 [natas@hell ~]# wget  
 [natas@hell ~]# wget  
 [natas@hell ~]# wget  
 [natas@hell ~]# yum install ImageMagick  
 [natas@hell ~]# yum install libgsf  
 [natas@hell ~]# yum install libgd  
 [natas@hell ~]# yum install libgsf  
 [natas@hell ~]# yum install boost-python-1.41.0  
 [natas@hell ~]# readpst -D -M -e thedamned\   
 [natas@hell ~]# cd thedamned\  
 [natas@hell ~]# ls  
 Inbox   Calendar Deleted Items   Sent Items  
 [natas@hell ~/thedamned\ ]# grep -r Nortel *  
 Calendar/423.ics:DESCRIPTION:When: Friday\, November 06\, 2009 11:00 AM-11:30 AM (GMT-05:00) Eastern Time (US & Canada).  
 \nWhere: purgatory \n\n*~*~*~*~*~*~*~*~*~*\n\nthedamned – Avaya has purchased Nortel (and our   
 Meridian phone system). This person says our phone system will no longer be supported in a few months and is coming in   
 to discuss this. I’d like you to be in the meeting with me to discuss options.\n\n  

Friday, September 4, 2015

vmware esxi 4.0 i barf on you.

 1. Run this command to set the IP address:  
 [root@server root]# esxcfg-vswif -i a.b.c.d -n w.x.y.z vswif0  
 where a.b.c.d is the IP address and w.x.y.z is the subnet mask.  
 Note: In this example, vswif0 is the Service Console adapter that is the interface to which you are applying the IP address change.  
 2. Open the /etc/hosts file with a text editor and modify it so that it reflects the correct IP address and hostname.  
 Note: You are required to edit files on an ESX host. For more information, see Editing files on an ESX host using vi or nano (1020302).  
 Note: You may also need to verify and change the file /etc/vmware/esx.conf file for the hostname and IP address.  
 3. To change the default gateway address and the hostname, edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.  
 For the changes to take effect, restart the network service with the command:  
 [root@server root]# service network restart  

Thursday, September 3, 2015

copy of an svn hotcopy

after your nightly svn hotcopy issue an rsync to plop data someplace else quick fast.
 repos=( repo1 repo2 repo3 )  
 suffix=$(date +%Y-%m-%d)  
 options= --verbose -c --update --recursive --ignore-existing --delete --exclude lost+found --perms --owner --group --times  
 for (( i = 0 ; i < ${#repos[@]} ; i++ ))  
 rsync $options user@svnserver:${opath}/${repos[$i]}_$suffix.hotcopy/ $dpath/${repos[$i]}