Der Flounder
Virtually Ghetto
Installing OSX in Fusion
Create VMware OSX Install DMG
VMware Volume Deployment Package
Setting the license key from the command line
Using vmrun
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/python3 | |
''' | |
Display CPU usage for a given process | |
emoji ref: https://github.com/sheagcraig/Spruce/blob/master/spruce.py | |
''' | |
import subprocess | |
import time | |
import argparse |
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 | |
''' | |
Playing around with CoreWLAN to return information about the wi-fi connection | |
Documentation: | |
https://developer.apple.com/library/mac/documentation/CoreWLAN/Reference/CWInterface_reference/translated_content/CWInterface.html | |
''' | |
import objc |
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
import Foundation | |
import ServiceManagement | |
func printStatus(plistPath: String) -> String { | |
let plistURL = URL(fileURLWithPath: plistPath) | |
let status = SMAppService.statusForLegacyPlist(at: plistURL) | |
switch status { | |
case .notRegistered: | |
return plistPath + " is not registered" |
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 |
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
AnsibleFest notes | |
============== | |
Keynote | |
------- | |
1.7.1 | |
- enable windows powershell remoting modules in PowerShell | |
- can push raw powershell scripts |
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 sys, datetime, time, subprocess | |
def apple_year_offset(dateobj, years=0): | |
# Convert to a maleable format | |
mod_time = dateobj.timetuple() | |
# Offset year by number of years | |
mod_time = time.struct_time(tuple([mod_time[0]+years]) + mod_time[1:]) | |
# Convert back to a datetime obj | |
return datetime.datetime.fromtimestamp(int(time.mktime(mod_time))) |
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 | |
until [[ -d "/Volumes/Deploy Studio Test" ]]; do | |
sleep 5 | |
done | |
cp -r "/Volumes/Deploy Studio Test/Deploy/Workflows/High Sierra Install/Macintosh HD/copy" "~/Desktop" | |
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 sys, os | |
import urllib, urllib2 | |
import base64 | |
import json | |
import requests | |
import xml.etree.ElementTree as ET | |
def requests_xml(jss_user, jss_pass, jss_url, category): |
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 | |
''' | |
download macsysadmin videos | |
requires: | |
pip install requests | |
pip install beautifulsoup4 | |
''' |
NewerOlder