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 | |
# See if item is in SelfServeManifest | |
itemToRemove="R" | |
ssm_items=$(/usr/libexec/PlistBuddy -c "Print managed_installs" /Library/Managed\ Installs/manifests/SelfServeManifest | /usr/bin/grep -n -w $itemToRemove | /usr/bin/awk -F ":" '{print $1}') | |
if [ ! -z "$ssm_items" ]; then | |
# Item to delete is the number minus two | |
itemToDelete=$(($ssm_items-2)) |
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
# django ldap auth | |
USE_LDAP = True | |
# LDAP authentication support | |
if USE_LDAP: | |
import ldap | |
from django_auth_ldap.config import LDAPSearch, LDAPGroupQuery, ActiveDirectoryGroupType | |
# LDAP settings | |
AUTH_LDAP_SERVER_URI = 'ldap://something.ac.uk:389' |
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
#!/usr/bin/python | |
import feedparser | |
# Function to fetch the rss feed and return the parsed RSS | |
def parseRSS( rss_url ): | |
return feedparser.parse( rss_url ) | |
# Function grabs the rss feed headlines (titles) and returns them as a list | |
def getHeadlines( rss_url ): | |
headlines = [] |
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
It is also funny about it’s nginx config as well | |
grahamgilbert [11:09 AM] | |
in case anyone goes mad over the mysterious ‘Error -1001’, putting `add_header Accept-Ranges bytes;` into your nginx config sorts everything out |
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
sudo killall coreaudiod |
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
USE_PKGBUILD=1 | |
include /usr/local/share/luggage/luggage.make | |
PACKAGE_VERSION=1.0.2 | |
TITLE=DockSettingsPKG | |
REVERSE_DOMAIN=com.notverypc.Change_Sidebar_List | |
PAYLOAD=\ | |
pack-GenericDock.sh | |
pack-GenericDock.sh: l_usr_local | |
@sudo mkdir -p ${WORK_D}/usr/local/outset/login-once |
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
USE_PKGBUILD=1 | |
include /usr/local/share/luggage/luggage.make | |
PACKAGE_VERSION=1.0.2 | |
TITLE=DockSettingsPKG | |
REVERSE_DOMAIN=com.notverypc.Change_Sidebar_List | |
PAYLOAD=\ | |
pack-GenericDock.sh | |
pack-GenericDock.sh: l_usr_local_outset | |
@sudo ${CP} ./GenericDock.sh ${WORK_D}/usr/local/outset/login-once/GenericDock.sh |
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
com.adobe.acrobat.DC.viewer.app.pkg.MUI | |
com.adobe.acrobat.DC.viewer.appsupport.pkg.MUI | |
com.adobe.acrobat.DC.viewer.browser.pkg.MUI | |
com.adobe.acrobat.DC.viewer.print_automator.pkg.MUI | |
com.adobe.acrobat.DC.viewer.print_pdf_services.pkg.MUI |
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
Install Ubuntu | |
options - OpenSSH | |
- Virtual Hosts. | |
Ran updates & installed | |
Installed VMWare Tools | |
Ran updates & installed | |
--- SnapShot taken | |
Intsalled Docker | |
Checked docker is working with Hello WOrld. |
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/sh | |
# (c) 2010 Walter Meyer SUNY Purchase College | |
# Script to install and setup printers on a Mac OS X system in a "Munki-Friendly" way. | |
# Make sure to install the required drivers first! | |
# Variables. Edit these. | |
printername="MFD_Colour" | |
location="MFD Colour" |
NewerOlder