Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#####################################
#
# Keychain Repair
#
# Removes a User's login keychain, creates a new login keychain, sets it
# as the default keychain, deletes any Local Items keychain folders,
# then reboots the system interactively
#
# University of North Carolina Asheville ITS
<PrinterDefinitions>
<Printer>
<Name>Example Printer</Name>
<Server>print.org.edu</Server>
<ShareName>ExamplePrinter</ShareName>
<SMBURI>smb://print.org.edu/ExamplePrinter</SMBURI>
<LPDURI>lpd://print.org.edu/ExamplePrinter</LPDURI>
<Location>Lobby</Location>
<Option>option_one=value</Option>
<Option>second_opt=something</Option>
<adf>
<adware name="Genieo">
<item type="loginItem">Genieo</item>
<item type="extensionName" havingContent="(genieo)|(installmac)">omnibar</item>
<item type="path" unload="true" restart="true">/Users/*/Library/LaunchAgents/com.genieo.completer.download.plist</item>
<item type="path" unload="true" restart="true">/Users/*/Library/LaunchAgents/com.genieo.completer.update.plist</item>
<item type="path" unload="true" restart="true">/Users/*/Library/LaunchAgents/com.genieo.completer.ltvbit.plist</item>
<item type="path" unload="true" restart="true">/Library/LaunchAgents/com.genieoinnovation.macextension.plist</item>
<item type="path" unload="true" restart="true">/Library/LaunchAgents/com.genieoinnovation.macextension.client.plist</item>
<item type="path" unload="true" restart="true">/Library/LaunchAgents/com.genieo.engine.plist</item>
<adf>
<adware name="Yontoo">
<item type="extensionName">(yontoo)|(torrenthandler)</item>
<item type="path">/Users/*/Library/Application Support/Google/Chrome/YontooLayers.crx</item>
<item type="FirefoxJS" aggressive="true">user.js</item>
</adware>
</adf>
<adf>
<adware name="FkCodec">
<item type="extensionName">codec-?m</item>
<item type="path">Library/Application Support/Codec-M</item>
<item type="path" unload="true">/Users/*/Library/LaunchAgents/com.codecm.uploader.plist</item>
<item type="path">/Applications/Codec-M.app</item>
<item type="process">Codec-M</item>
</adware>
</adf>
@haircut
haircut / SavingThrow-Extensions.adf
Last active August 29, 2015 14:18
Example extensions adf for SavingThrow
EXTENSION: codec-?m
EXTENSION: (yontoo)|(torrenthandler)
EXTENSION: (flash ?player)|(clickagent)
EXTENSION: chatzum
EXTENSION: (searchme)|(slick ?savings)|(amazon ?shopping ?assistant)|(ebay ?shopping ?assistant)|(domain ?error ?assistant)
EXTENSION: jollywallet
EXTENSION: (conduit)|(searchext)|(mybrand)|( Community Toolbar)|(search ?protect)|(trovi)
EXTENSION: (gophoto[-\.]?it)|(freehdsport)
EXTENSION: (genieo)|(installmac)
EXTENSION: (vi+[aeiou]*d+[aeiou]*x+)|(macv[aeiou]?x[aeiou]?)|(mac ?captain)|(mac ?price ?cut)|(save ?on ?mac)|(mac ?global ?deals)|(^macster)|(macdeals)|(s+hop ?bra+i+n)
EXTENSION: jollywallet
EXTENSION: su?ave ?k+e+p(o|a)*
EXTENSION: (extended ?protection)|(video ?download ?helper)
@haircut
haircut / SavingThrow-supplement.adf
Created April 3, 2015 18:39
SavingThrow supplemental adf gathered from AdwareMedic
# FkCodec
# INCOMPLETE: Browser extension components
# codec-?m
/Users/*/Library/Application Support/Codec-M
/Users/*/Library/LaunchAgents/com.codecm.uploader.plist
/Applications/Codec-M.app
####################
# Yontoo
Import-Module MSOnline
write-host Licensing Office 365 . . .
$user = Get-Content "OfficeCredU.txt"
$password = Get-Content "OfficeCredP.txt" | ConvertTo-SecureString
$credential = New-Object System.Management.Automation.PsCredential -ArgumentList $user,$password
Connect-MsolService -Credential $credential
$lg = import-clixml OfficeLicense.xml