Skip to content

Instantly share code, notes, and snippets.

View GMZwinge's full-sized avatar

Georges M. Zwingelstein GMZwinge

View GitHub Profile
@GMZwinge
GMZwinge / packer.json
Created February 27, 2018 15:59
Sample Packer template for ESXi 6.0 or 6.5 and vCenter 6.5 that shows the entries uuid.bios and vc.uuid diseappearing from the .vmx file around the time the builder "vmware-iso" ends and the post processor "vsphere-template" starts, then reappear with different values some seconds later (10-15 in our case depending on hardware speed)
{
"builders": [
{
"type": "vmware-iso",
"remote_type": "esx5",
"remote_host": "{{user `esxi_host`}}",
"remote_username": "{{user `esxi_username`}}",
"remote_password": "{{user `esxi_password`}}",
"remote_datastore": "{{user `esxi_datastore`}}",
@GMZwinge
GMZwinge / parse_manifest.py
Created December 20, 2016 12:26 — forked from aliou/parse_manifest.py
Manifest.mbdb parsing for iOS 5+.
#!/usr/bin/env python
# From http://stackoverflow.com/questions/3085153/how-to-parse-the-manifest-mbdb-file-in-an-ios-4-0-itunes-backup
import sys
import hashlib
mbdx = {}
def getint(data, offset, intsize):
"""Retrieve an integer (big-endian) and new offset from the current offset"""
value = 0