This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See https://github.com/project-imas/mdm-server#setup for starting point. | |
Assuming you have virtualenv installed.... | |
bash-3.2$ virtualenv mdm-server-env | |
New python executable in mdm-server-env/bin/python | |
Installing setuptools, pip...cd mdone. | |
bash-3.2$ cd mdm-server-env/ | |
bash-3.2$ source bin/activate | |
(mdm-server-env)bash-3.2$ easy_install web.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Put a background in the same directory as this .py file and name it | |
backdrop_filename = "backdrop.jpg" | |
# http://wallreborn.com/wp-content/uploads/2015/05/cool-desktop-backgrounds-8-Cool-Wallpaper.jpg | |
# is a pretty sweet example to try with | |
# Then run this script from the Terminal :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 1 = VMware Tools ISO is mounted from vSphere | |
# 2 = Download VMware Tools (assumes you can connect to internet) | |
INSTALL_METHOD=2 | |
# Thanks to Rich Trouton for tip on Tools being available online | |
VMWARE_TOOLS_DOWNLOAD_URL=http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/7.1.2/2779224/packages/com.vmware.fusion.tools.darwin.zip.tar | |
# DO NOT MODIFY BEYOND HERE # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request | |
app = Flask(__name__) | |
@app.route('/', methods=['POST']) | |
def get_post_data(): | |
if request.method == 'POST': | |
data = request.values | |
print "%s: %s: %s" % (data['serial'], data['status'], data['message']) | |
return "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello <sales person>! | |
Judging by the "To:" field, you are using a commercial marketing database to contact me. The reason that I can tell that you are using a database is that it's not actually an email address I (or anyone I actually know on a first-name base) use. It seems to have been clumsily stitched together using first and last name records and the domain of my employer. Fairly sloppy work in my opinion and I hope such a database didn't cost you too much. I hate it when people try to take shortcuts. | |
This brings us to the overly familiar greeting in your message which further suggest there's some miscommunication here. We don't actually know each other, nor have we ever spoken before. | |
Having established both the "Unsolicited" and "Commercial" nature of your message I think we can agree that it qualifies as UCE. As such you should probably have included an opt-out link as required by CAN-SPAM. You provided a link to easily schedule a call but sadly no opt-out link. I understand, it's easy to overlook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# As written, this requires the following: | |
# - OS X 10.6+ (may not work in 10.10, haven't tested) | |
# - python 2.6 or 2.7 (for collections.namedtuple usage, should be fine as default python in 10.6 is 2.6) | |
# - pyObjC (as such, recommended to be used with native OS X python install) | |
# Only tested and confirmed to work against 10.9.5 | |
# Run with root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# reposado_auto_munkiimport_aswupd_configdata_items | |
# | |
# automatically create apple_update_metadata pkginfo files for Munki: XProtectPlistConfigData, Gatekeeper Configuration Data | |
# | |
# path to your Munki repo (local or mounted share) | |
munkiRepoDir="/Users/Shared/munki/repo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import ctypes, ctypes.util | |
# Import CoreGraphics as a C library, so we can call some private functions | |
c_CoreGraphics = ctypes.CDLL(ctypes.util.find_library('CoreGraphics')) | |
def disable_beam_sync(doDisable): | |
if doDisable: | |
# Disabling beam sync: | |
# 1st: Enable Quartz debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# encoding: utf-8 | |
# | |
# Arjen van Bochoven Oct 2014 | |
# Script to rebrand/customize Managed Software Center | |
# | |
# Prerequisites: You need Xcode (5/6) installed | |
# For Xcode 6 you need to add the 10.8 SDK | |
# See: https://github.com/munki/munki/wiki/Building%20Munki2%20Pkgs | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
This script sets dns servers and search domains for all | |
Ethernet adapters and Wi-fi interfaces. | |
Requirements | |
------------ | |
+ OS X 10.9.x | |
+ python 2.7 |