Skip to content

Instantly share code, notes, and snippets.

@arubdesu
arubdesu / boxforMac.txt
Created November 26, 2014 20:55
giving box crap for being lame
Them:
"Hi Allister,
At this time, we don't have a built-in silent install option for Mac Sync. Our product and engineering teams are aware of this shortcoming, and may look to prioritize it in the near future. I apologize for the inconvenience here.
Sincerely,"
Hey Support,
I’m not just asking silent, you have no ‘installer’, by which I mean package, at all. Here, we did most of the work for you:
@arubdesu
arubdesu / rotate_key.py
Created December 2, 2014 14:02
mManual rotate process leveraging crypt client tools
#!/usr/bin/env python
import sys
import os
import optparse
import subprocess
import platform
from urllib2 import Request, urlopen, URLError
# TODO: move to NSURL
import urllib
@arubdesu
arubdesu / sonos.download.recipe
Created December 17, 2014 16:24
Autopkg recipe to download the most recent Sonos controller
<?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>Description</key>
<string>Downloads the current release version of Sonos.</string>
<key>Identifier</key>
<string>com.github.autopkg.download.Sonos</string>
<key>Input</key>
<dict>
@arubdesu
arubdesu / DiagnosticMessagesHistory.plist
Created February 6, 2015 15:06
Assumes plist is in a folder called plist, turns ON submission of crash reports to app developers and Apple
<?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>AutoSubmit</key>
<true/>
<key>AutoSubmitVersion</key>
<integer>4</integer>
<key>ThirdPartyDataSubmit</key>
<true/>
@arubdesu
arubdesu / autopkgMacTechArticleMissingParagraphs.txt
Created February 8, 2015 18:14
Missing paragraphs from the bottom of page 27/top of 28
MOTIVATIONAL SPEECH (JUST KIDDING ABOUT NANO)
Now we'll transition into affecting change for the better in our open source world. For any number of reasons, Autopkg isn't seeing contributions from all corners of the world that are taking advantage of it, and I'd like to help clear up what may be some common barriers to entry. Using version control and code-sharing sites can certainly present a challenge to beginners, so I’d like to help folks get past those initial workflow difficulties. In the process, I'd also like to instruct folks using tools like Munki(2) how they might best pitch in to improve and get the most benefit out of others recipes.
I've recently been far too well known for snarkiness, and that extends to my opinions relating to interacting with version control, and in particular on autopkg's home, GitHub. With my lack-of programming savvy in general I'm probably not really one to cast stones, although really, no greps before awks, c'mon people, get with it, and use vi like the cool kids. (Serio
@arubdesu
arubdesu / Makefile
Created February 9, 2015 19:30
Makefile to repackage the currently VISE-installed stata13 for use with theLuggage https://github.com/unixorn/luggage
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=StataSE13
REVERSE_DOMAIN=org.my
PACKAGE_VERSION=13.1.220
PAYLOAD=prep-StataDir \
pack-Stata
prep-StataDir: l_Applications
@arubdesu
arubdesu / case785583.txt
Created February 11, 2015 16:57
Y'know. Box
http://enterprisemac.bruienne.com/2015/02/07/box-cutting-how-i-stumbled-onto-a-serious-security-flaw-in-box-sync-for-mac/
So you rotated your API keys! Congratulations. Forcing a reboot with an auto-update is unacceptable. Especially if you didn't expose a way to turn off auto-updates to begin with. Don't do that.
Oh, and this document is wrong: https://support.box.com/hc/en-us/articles/201084243-What-features-from-Sync-3-x-have-been-removed-in-Sync-4-0-
where it says you cannot disable auto-updates.
$ sudo defaults write /Library/Preferences/com.box.sync.plist auto_update.enabled -bool False
Currently pushing this to my fleet hoping to race your auto-updater. Don't make me do that. It harms everyones productivity.
https://www.dropbox.com/s/2frza77m1il0hfk/baaaaaaad.png
@arubdesu
arubdesu / postinstall
Created February 12, 2015 20:43
Symantec DLP postflight
#!/bin/sh
InstallParentPath=/Library/Manufacturer
InstallPath="$InstallParentPath/Endpoint Agent"
PGPBinaryPath="$InstallPath/Frameworks/PGP.framework/PGP"
AgentPlistPath=/Library/LaunchDaemons/com.symantec.manufacturer.agent.plist
cleanup_and_exist_if_failure() {
if [ $1 -ne 0 ]
then
@arubdesu
arubdesu / Makefile
Created February 17, 2015 19:34
LyncWebApp luggage makefile
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=LyncWebAppPlugin
REVERSE_DOMAIN=org.your
PACKAGE_VERSION=15.8
PAYLOAD=prep-LWAplugin \
pack-LWAplugin
prep-LWAplugin: l_Library
@arubdesu
arubdesu / DiagnosticMessagesHistory.plist
Created February 26, 2015 21:37
Auto-allow apple+3rd party dev to get diag/crash reports
<?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>AutoSubmit</key>
<true/>
<key>AutoSubmitVersion</key>
<integer>4</integer>
<key>ThirdPartyDataSubmit</key>
<true/>