- Open the Terminal Application
- Type in
sudo -i
and type in your Mac Administrator account password.sudo
gives you root level or administrator level privileges.
dsconfigad -show
#!/bin/sh | |
########################### About this script ########################## | |
# # | |
# Purpose: Populates user name and email address settings # | |
# for Communicator 2011 for Mac. This script resides # | |
# in /Library/talkingmoose/Scripts and is launched # | |
# by launch agent net.talkingmoose.CommunicatorSetup.plist. # | |
# # | |
# Created by William Smith # |
<?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>Label</key> | |
<string>net.talkingmoose.CommunicatorSetup</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>/Library/talkingmoose/Scripts/CommunicatorSetup-1.0.sh</string> |
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
<?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>10</key> | |
<dict> | |
<key>AVAlert</key> | |
<dict> | |
<key>Checkbox</key> | |
<array> |
#!/bin/sh | |
. /etc/rc.common | |
StartService () | |
{ | |
ConsoleMessage "Starting EnCase Servlet" | |
/usr/local/sbin/enosxintel -d -p /usr/local/sbin | |
} | |
StopService () | |
{ | |
ConsoleMessage "Stopping EnCase Servlet" |
# System | |
# install homebrew: http://mxcl.github.com/homebrew/ | |
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) | |
brew install ack | |
brew install bash-completion | |
# Development Tools |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
#!/bin/bash -e | |
# A SHORT DESCRIPTION OF YOUR SCRIPT GOES HERE | |
# USAGE: | |
# DESCRIPTION OF ENV VARS HERE | |
############################################################################### | |
set -e # exit on command errors (so you MUST handle exit codes properly!) | |
set -o pipefail # capture fail exit codes in piped commands | |
#set -x # execution tracing debug messages | |
# Get command info |
#!/bin/bash | |
# if someone is logged in | |
if who | grep -q console; then | |
# get the logged in user's uid | |
LOGGED_IN_UID=`ls -ln /dev/console | awk '{ print $3 }'` | |
# use the uid and pgrep to find the Finder process id | |
FINDER_PID=`pgrep -U ${LOGGED_IN_UID} Finder` |
sudo -i
and type in your Mac Administrator account password. sudo
gives you root level or administrator level privileges.dsconfigad -show