Skip to content

Instantly share code, notes, and snippets.

View jmahlman's full-sized avatar
🍻

John Mahlman jmahlman

🍻
View GitHub Profile
@jmahlman
jmahlman / CUSTOM-com.autodesk.backburner_server.plist
Created November 18, 2016 15:37
This is my customized backburner launchDaemon plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>PathState</key>
<dict>
<key>/usr/discreet/backburner/nrapi.conf</key>
<true/>
#!/bin/sh
sleep 60
/usr/discreet/backburner/backburnerServer
#!/bin/bash
# This script is used to install backburner and create our automount for network directory
# Determine working directory
install_dir=`dirname $0`
# Install backburner
@jmahlman
jmahlman / backburner-automount-server.sh
Last active November 19, 2019 06:48
Automount a shared directory for use with backburner rendering
# make local "server" directory
SERVERDIR="/macsvr1"
if [ ! -e ${SERVERDIR} ]; then
mkdir ${SERVERDIR}
mkdir ${SERVERDIR}/Backburner
chmod -R 777 ${SERVERDIR}
else
echo "${SERVERDIR} already exsits, skipping."
fi
@echo off
REM --------------------------------------------------------------------------------
REM Enable Auto login
REM --------------------------------------------------------------------------------
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /t REG_SZ /d "YOUR WINDOWS USER" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /t REG_SZ /d "USER PASSWORD" /f
#!/bin/sh
#
#
# I wrote this simple script because we wanted to rename our Parallels VMs to the local Mac hostname
# We set the VM to automatically log into an admin account and run a powershell script to get the name
# from this file and rename the machine. It then enables autologin for the student account and reboots
#
#
if [ ! -d /Users/Shared ]; then
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"FirstRun"="c:\\Users\\Public\\firstrun.bat"
powershell.exe -executionpolicy unrestricted -file C:\Users\Public\RenameVMfromMAC.ps1
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit
}
$hostMac = Get-Content \\Mac\Home\Public\hostname
$newName = "vm-$hostMac"
echo "Renaming Compter to $newName"
Rename-Computer -NewName $newName