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
source 'https://rubygems.org' | |
group :development do | |
gem 'guard' | |
gem 'rb-readline' | |
gem 'foodcritic', '~> 6.2' | |
gem 'guard-foodcritic' | |
gem 'guard-rubocop' | |
gem 'terminal-notifier-guard' | |
gem 'guard-rspec' |
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
# Cookbook Rakefile | |
# 06/03/2016 | |
# Created by Ryan Moon | |
## | |
# Requires | |
## | |
require 'rspec/core/rake_task' | |
require 'rubocop/rake_task' |
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
<?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> | |
<true/> | |
<key>Label</key> | |
<string>com.nheinric.hubot</string> | |
<!-- LSEnvironment does not work for PATH. I don't know why. | |
https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/20001431-106825 |
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 | |
# Copy the com.avid.bsd.DigiShoeTool Helper Tool | |
PHT_DIGISHOETOOL="/Library/PrivilegedHelperTools/com.avid.bsd.DigiShoeTool" | |
/bin/cp "/Applications/Pro Tools.app/Contents/Library/LaunchServices/com.avid.bsd.DigiShoeTool" $PHT_DIGISHOETOOL | |
/usr/sbin/chown root:wheel $PHT_DIGISHOETOOL | |
/bin/chmod 544 $PHT_DIGISHOETOOL | |
# Create the Launch Deamon Plist for com.avid.bsd.DigiShoeTool |
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
admin_user = `dscl . -list /Users UniqueID | grep "501" | awk '{print $1}'` | |
node.default['base_config']['admin_user'] = admin_user.to_s | |
log admin_user.to_s | |
template '/tmp/message_test' do | |
source 'message_test.erb' | |
owner node['base_config']['admin_user'] | |
mode '0644' | |
end |
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 | |
######################################### | |
# Outset Xsan Mount | |
# Ryan Moon | |
# Created on 02/18/2016 | |
# Version 0.3.0 on 02/20/2016 | |
######################################### | |
# Ran into an issue with ATTO Drivers and El Capitan | |
# Created this script as a workaround. | |
# Outset script to run at everyboot-scripts and mount the |
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 | |
# encode.sh | |
# | |
# Copyright (c) 2013 Don Melton | |
# | |
# This version published on June 7, 2013. | |
# | |
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3, | |
# iOS, OS X, etc. |
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 | |
######################################### | |
# Adobe CC 2015 Version Finder | |
# Ryan Moon | |
# Created on 2016-02-04 | |
# Version 1.0.0 on 2016-02-04 | |
######################################### | |
# This script gets the CFBundleShortVersionString | |
# of the Adobe CC 2015 Applications. | |
# Handy for reference when looking at multiple |
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
find . -name \*.rb -exec perl -p -i -e 's/([^:]):(\w+)\s*=>/\1\2:/g' {} \; |
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
httpd::default | |
Command "curl http://localhost" | |
stdout | |
should match /WARNING/ (FAILED - 1) | |
Failures: | |
1) httpd::default Command "curl http://localhost" stdout should match /WARNING/ | |
Failure/Error: its(:stdout) { should match (/WARNING/) } | |
ttp://www.centos.org/\"><img src=\"/icons/poweredby.png\" alt=\"[ Powered by CentOS Linux ]\" width=\"88\" height=\"31\" /></a></p>\n\t\t\t\t</div>\n\t\t\t</div>\n </div>\n <div class=\"content\">\n<div class=\"content-middle\"><h2>About CentOS:</h2><b>The Community ENTerprise Operating System</b> (CentOS) Linux is a community-supported enterprise distribution derived from sources freely provided to the public by Red Hat. As such, CentOS Linux aims to be functionally compatible with Red Hat Enterprise Linux. The CentOS Project is the organization that builds CentOS. We mainly change packages to remove upstream vendor branding and artwork.</p> <p>For information on CentOS please |