Skip to content

Instantly share code, notes, and snippets.

@JDHatman
JDHatman / Crypt vmx file
Created April 12, 2014 13:20
This is the vmx file for the VM on which I got Crypt working.
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "10"
numvcpus = "1"
sata0.present = "TRUE"
memsize = "1812"
sata0:0.present = "TRUE"
sata0:0.fileName = "Virtual Disk.vmdk"
sata0:1.present = "TRUE"
sata0:1.autodetect = "TRUE"
@JDHatman
JDHatman / Crypt vmx file faulty
Created April 12, 2014 19:17
This is the vmx file for the VM on which Crypt doesn't working.
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "10"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
@JDHatman
JDHatman / crypt1scsi
Created April 13, 2014 21:07
crypt1scsi - details
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "10"
numvcpus = "2"
sata0.present = "TRUE"
memsize = "2048"
sata0:1.present = "TRUE"
sata0:1.autodetect = "TRUE"
sata0:1.deviceType = "cdrom-raw"
sata0:1.startConnected = "FALSE"
@JDHatman
JDHatman / crypt2sata
Created April 13, 2014 21:09
crypt2sata details
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "10"
numvcpus = "2"
sata0.present = "TRUE"
memsize = "2048"
sata0:0.present = "TRUE"
sata0:0.fileName = "Virtual Disk-000002.vmdk"
sata0:1.present = "TRUE"
sata0:1.autodetect = "TRUE"
@JDHatman
JDHatman / SAL-error1
Created April 14, 2014 15:45
SAL error after adding an additional user using the admin console
ValueError at /
The view server.views.index didn't return an HttpResponse object.
Request Method: GET
Request URL: http://sal1.orchard.fruit.com/
Django Version: 1.5.3
Exception Type: ValueError
Exception Value:
The view server.views.index didn't return an HttpResponse object.
Exception Location: /usr/local/sal_env/lib/python2.7/site-packages/django/core/handlers/base.py in get_response, line 133
Python Executable: /usr/bin/python
@JDHatman
JDHatman / fotl_notify
Created April 17, 2014 16:43
osx_notify example
class osx_management::fotl_notify {
file { '/FOTL/trigger':
ensure => present,
content => "3",
notify => Osx_notify['notify'],
}
osx_notify { 'notify':
subject => 'FOTL',
@JDHatman
JDHatman / sal settings.py
Last active August 29, 2015 14:00
Sal settings.py
# Django settings for sal project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
APPEND_SLASH=False
PROJECT_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.path.pardir))
ADMINS = (
# ('Jason Hatman', 'jason.hatman@fotlinc.com'),
)
@JDHatman
JDHatman / mwa postflight
Created May 2, 2014 19:34
mwa postflight
#!/bin/bash
source "`dirname "${0}"`/munkiwebadmin-config"
REPORTSUBMITURL="${MWA_HOST}/update"
INVENTORYHASHURL="${MWA_HOST}/inventory/hash"
INVENTORYSUBMITURL="${MWA_HOST}/inventory/submit"
RUNTYPE="$1"
MAC=`ifconfig en0 | awk '$1=="ether" {print $2}'`
NAME=`/usr/sbin/scutil --get ComputerName`
@JDHatman
JDHatman / sal-submit
Created May 2, 2014 19:36
sal-submit
#!/usr/bin/python
#
# postflight
# Submits inventory to an instance of Sal
#
# Last Revised - 2014-04-09
import sys
sys.path.append('/usr/local/sal')
@JDHatman
JDHatman / dashboard vhost
Created May 2, 2014 21:37
dashboard vhost
# UPDATE THESE PATHS TO SUIT YOUR ENVIRONMENT
#LoadModule passenger_module /usr/lib/apache2/modules/mod_passenger.so
#PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.11
#PassengerRoot /usr
#PassengerRuby /usr/bin/ruby
# you may want to tune these settings
PassengerHighPerformance on
PassengerMaxPoolSize 12
PassengerPoolIdleTime 1500