Skip to content

Instantly share code, notes, and snippets.

View crrollyson's full-sized avatar

CR Rollyson crrollyson

View GitHub Profile

method 1

sudo /usr/local/McAfee/AntiMalware/VSControl stopoas

alternatively

sudo defaults write /Library/Preferences/com.mcafee.ssm.antimalware.plist OAS_Enable -bool False
sudo /usr/local/McAfee/AntiMalware/VSControl stop
sudo /usr/local/McAfee/AntiMalware/VSControl reload
@crrollyson
crrollyson / gist:4c23e494fcb651aa0032ebfb33ac2c89
Created October 22, 2018 13:51 — forked from jguthmiller/gist:6756953
Google Analytics Event Tracking directive in AngularJS
angular.directive('gaTrack', ['$log', 'GoogleAnalyticsService', '$timeout', function ($log, GoogleAnalyticsService, $timeout) {
return {
//should always be defined as an attribute
restrict: 'A',
//make sure it executes before other directives applied to the same scope
priority: 10,
link: function (scope, element, attrs) {
//initialize variables for use later
var fieldFocus = 0;
var fieldSeconds = 0;