This file contains hidden or 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
ifconfig | grep ether | awk '{if (NR==1) {print $2}}' |
This file contains hidden or 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
ifconfig en0 | awk '/ether/ {print $2}' |
This file contains hidden or 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
#Full output of system_profiler | |
system_profiler -xml -detailLevel full > ~/Desktop/full.spx | |
#Network and Hardware specific data found in system_profiler | |
system_profiler -xml SPNetworkDataType SPHardwareDataType > ~/Desktop/network_hardware.spx | |
#Only software registered on the system | |
system_profiler -detailLevel full -xml SPApplicationsDataType > ~/Desktop/software.spx |
This file contains hidden or 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 ruby | |
# | |
# File: Warranty.rb | |
# | |
# Decription: Contact's Apple's selfserve servers to capture warranty information | |
# about your product. Accepts arguments of machine serial numbers. | |
# Contributed by Gary Larizza | |
require 'open-uri' | |
require 'openssl' |
This file contains hidden or 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
Computer.all.each{|c| | |
if c.hostname == "" | |
c.hostname = c.name | |
end | |
if !c.valid? | |
c.hostname.downcase! | |
c.hostname.strip! | |
c.hostname.sub! /[_\s]/, '-' |
This file contains hidden or 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
#Make Secure Munki Directory | |
sudo mkdir -p /var/munki/Managed\ Installs | |
sudo chown root:wheel /var/munki/Managed\ Installs | |
sudo chmod 750 /var/munki/Managed\ Installs | |
#Setup secure Munki Directory | |
sudo defaults write /Library/Preferences/ManagedInstalls ManagedInstallDir "/var/munki/Managed Installs" |
This file contains hidden or 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
<xml> | |
</xml> |
This file contains hidden or 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
ActiveAdmin.register User, :as => "Customer" do | |
filter :username | |
filter :email | |
filter :created_at | |
index do | |
id_column | |
column :username | |
column :email |
This file contains hidden or 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
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | |
<title>Munki Server: index</title> | |
<link href="/assets/blueprint/reset.css?body=1" media="screen" rel="stylesheet" type="text/css" /> | |
<link href="/assets/blueprint/grid.css?body=1" media="screen" rel="stylesheet" type="text/css" /> | |
<link href="/assets/blueprint/typography.css?body=1" media="screen" rel="stylesheet" type="text/css" /> | |
<link href="/assets/blueprint/forms.css?body=1" media="screen" rel="stylesheet" type="text/css" /> | |
<link href="/assets/blueprint/index.css?body=1" media="screen" rel="stylesheet" type="text/css" /> |
This file contains hidden or 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 | |
PRODUCT=Maya | |
YEAR=2012 | |
LIC=/private/var/flexlm/${PRODUCT}${YEAR}.lic | |
PRODCODE=657D1 | |
SERIAL=123-4567890 | |
SERVER=server.domain.com | |
LICENSEENV=/Applications/Autodesk/maya${YEAR}/${PRODUCT}.app/Contents/License.env |
OlderNewer