Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MiqViq
MiqViq / set_boot_recovery_hd.sh
Created August 5, 2016 08:57
Tries to find the first internal Recovery HD and set the computer to boot from it on the next boot
#!/bin/bash
#
# set_boot_recovery_hd.sh
#
# tries to find the first internal Recovery HD and set the computer to boot from it on the next boot
#
#
# actions
@MiqViq
MiqViq / postinstall_for_edocker_indy_plugins.sh
Last active August 29, 2016 11:28
postinstall for eDocker InDesign plugins
#!/bin/bash
# postinstall script for eDocker3_CREATE_silent
#
# created by MiqViq on 2015.10.2
#
# version: 3.3.3.20151002
#
# installer environment variables:
# $0 path to This Script
@MiqViq
MiqViq / remove_configdata_from_selected.sh
Created February 1, 2015 11:33
For Reposado: Removes config-data attribute from selected update types: XProtectPlistConfigData, Gatekeeper Configuration Data
#!/bin/bash
# remove_configdata_from_selected
#
# removes config-data attribute from selected update types: XProtectPlistConfigData, Gatekeeper Configuration Data
reposadoUser=reposado
reposadoGroup=admin
reposadoDir="/path/to/your/reposado"
@MiqViq
MiqViq / reposado_auto_munkiimport_aswupd_configdata_items.sh
Last active May 15, 2017 20:45
For Munki: automatically create apple_update_metadata pkginfo files for XProtectPlistConfigData, Gatekeeper Configuration Data
#!/bin/bash
# reposado_auto_munkiimport_aswupd_configdata_items
#
# automatically create apple_update_metadata pkginfo files for Munki: XProtectPlistConfigData, Gatekeeper Configuration Data
#
# path to your Munki repo (local or mounted share)
munkiRepoDir="/Users/Shared/munki/repo"
@MiqViq
MiqViq / check_warranty.sh
Last active April 18, 2024 18:49
This script tries to get warranty information for Apple product. This script has not been tested with all Apple devices, only with Mac computers and some iPhone models.
#!/bin/bash
# check_warranty.sh
#
# This script tries to get warranty information for Apple product
#
# This script has not been tested with all Apple devices, only with Mac computers and some iPhone models
#
# Script accepts a valid serial as argument $1
# If argument $1 is not provided then the serial of current computer is used
@MiqViq
MiqViq / firefox_enable_ntlm_v1_auth_common
Last active August 29, 2015 14:04
For Munki; Enables insecure NTLM v1 authentication protocol in Firefox, applies settings on Firefox.app instances found in /Applications
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>