Skip to content

Instantly share code, notes, and snippets.

View mwohlgemuth's full-sized avatar

Maximilian Wohlgemuth mwohlgemuth

View GitHub Profile
@mwohlgemuth
mwohlgemuth / gist:9531307
Created March 13, 2014 16:06
managedsoftwareupdate with sal
sh-3.2# managedsoftwareupdate
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
http://code.google.com/p/munki
Starting...
Performing preflight tasks...
preflight stdout: Preflight report submmitted for pcm-imp-1.
Checking for available updates...
Retrieving list of software for this machine...
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>description</key>
<string>This package installs the optional US-DE keyboard layout.</string>
<key>display_name</key>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>catalogs</key>
<array>
</array>
<key>included_manifests</key>
<array>
</array>
@mwohlgemuth
mwohlgemuth / gist:11355005
Created April 27, 2014 20:32
stash nginx.conf
server {
listen stash.imp.univie.ac.at:80;
server_name stash.imp.univie.ac.at;
client_max_body_size 100m;
location / {
proxy_read_timeout 120;
proxy_pass https://127.0.0.1:7990;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
root@stash:/etc/nginx/conf.d# cat stash.conf
server {
listen 80;
server_name stash.imp.univie.ac.at;
client_max_body_size 100m;
location / {
proxy_read_timeout 120;
proxy_pass http://127.0.0.1:7990;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
sh-3.2# ./socketfilterfw --getappblocked "/Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/MacOS/LANrev Agent"
Incoming connection to /Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/MacOS/LANrev Agent is blocked
sh-3.2# ./socketfilterfw --unblockapp "/Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/MacOS/LANrev Agent"
Incoming connection to the application is permitted
sh-3.2# ./socketfilterfw --getappblocked "/Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/MacOS/LANrev Agent"
Incoming connection to /Library/Application Support/LANrev Agent/LANrev Agent.app/Contents/MacOS/LANrev Agent is blocked
@mwohlgemuth
mwohlgemuth / gist:098825fb8c342c55cd24
Created May 22, 2014 11:06
reposado preferences.plist
<key>AppleCatalogURLs</key>
<array>
<string>http://swscan.apple.com/content/catalogs/index.sucatalog</string>
<string>http://swscan.apple.com/content/catalogs/index-1.sucatalog</string>
<string>http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string>
<string>http://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string>
</array>
@mwohlgemuth
mwohlgemuth / gist:fbe5d6c6518970a9c6c2
Created May 28, 2014 18:49
terminal softwareupdate -l
Software Update Tool
Copyright 2002-2012 Apple Inc.
Finding available software
Software Update found the following new or updated software:
* OSXUpd10.9.4-10.9.4 (13E9)
Pre-release: OS X Update Seed (10.9.4 (13E9)), 138869K [recommended] [restart]
* Safari7.0.4Mavericks-7.0.4
Safari (7.0.4), 52454K [recommended]
* iTunesXPatch-11.2.2
@mwohlgemuth
mwohlgemuth / gist:f7c6bad88c5e611d9ae3
Created May 28, 2014 18:55
repoutil --products | grep -i iTunes
root@munki:/usr/local/bin# repoutil --products | grep -i iTunes
041-9825 iTunes Producer 3.0.0 2014-02-17 []
zzzz031-02991 iTunes 11.2.2 2014-05-28 []
zzzz031-02989 iTunes 11.2.2 2014-05-28 []
@mwohlgemuth
mwohlgemuth / gist:51ab35b3ed1f82457b76
Created May 28, 2014 18:57
managedsoftwareupdate --applesus
sh-3.2# managedsoftwareupdate --applesus
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
http://code.google.com/p/munki
Starting...
Performing preflight tasks...
preflight stdout: Preflight report submmitted for pcm-imp-1.
NOTE: managedsoftwareupdate is configured to process Apple Software Updates only.
Checking Apple Software Update catalog...