Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8" ?>
<ProxySetting>
<Context InitContext="[WSCONTEXT]" />
<PACFile URL="[PACFILE]" />
<UPDATE URL="http://download.global.blackspider.com/epud/" />
</ProxySetting>
@ftiff
ftiff / NetworkChangeNotifier.swift
Created March 30, 2016 14:42
OS X / Swift: Trigger function when network configuration changes
/**
* Network Change Notifier
*
* Made by François 'ftiff' Levaux-Tiffreau - fti@me.com
*
*
* Simply modify "changed"
*
*/
@ftiff
ftiff / tmp
Created November 9, 2015 13:29
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS array" ~/Library/Preferences/com.github.autopkg.plist
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0 dict" ~/Library/Preferences/com.github.autopkg.plist
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:name string local" ~/Library/Preferences/com.github.autopkg.plist
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:type string Local" ~/Library/Preferences/com.github.autopkg.plist
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:mount_point string /Users/Shared/JAMFDistrib" ~/Library/Preferences/com.github.autopkg.plist
/usr/libexec/PlistBuddy -c "Add :JSS_REPOS:0:share_name string JAMFDistrib" ~/Library/Preferences/com.github.autopkg.plist
autopkg run /Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/MalwarebytesAntiMalware.jss.recipe