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 | |
| # Set Variables | |
| # Who's the current console user? | |
| LOGGEDIN=`who | grep console | awk '{print $1}'` | |
| # What's the default mail client for the logged in user? | |
| DEFAULTMAIL=`defaults read /Users/$LOGGEDIN/Library/Preferences/com.apple.LaunchServices.plist | perl -e 'while(<>) {push @lines, $_; m~mailto~ and last} $_ = $lines[-2]; s~[^\"]+\"~~;s~\";~~;print'` | |
| # Get the Computer Name | |
| COMPUTER=`hostname` | |
| # The file that sysdiagnose created to add as an attachment |
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 | |
| ######################################################################## | |
| # Originally Created Created By: Andrina Kelly, andrina.kelly@bellmedia.ca | |
| # Modifications from scripts from Bryson Tyrrell | |
| # Final by Ross Derewianko | |
| # Creation Date: April 2015 | |
| # Last modified: April, 18 2015 | |
| # Brief Description: Gather diagnostic logs and submit to the JSS | |
| ######################################################################## |
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/sh | |
| # | |
| # (c) Copyright PaperCut Software, 2007 | |
| # | |
| # Author: Chris Dance (chris.dance <a> papercut.com) | |
| # A simple script to copy printer configuration from one Apple Mac OS X | |
| # system to another. | |
| # | |
| TARGET_HOST=`hostname` |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
NewerOlder