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
# Unload all Parallels kernel extensions | |
for kext in $(kextstat | grep parallels | awk '{print $6}'); do kextunload -v 1 -b $kext; done | |
# Delete all Parallels kernel extensions | |
rm -v /System/Library/Extensions/prl* | |
# Delete all other Parallels files | |
rm -vr \ | |
/Applications/Parallels\ Desktop.app \ | |
/Library/Parallels/Parallels\ Service.app \ |
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
openssl s_client -crlf -connect imap.gmail.com:993 |
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
pdftk original.pdf output uncompressed.pdf uncompress | |
LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf | |
pdftk stripped.pdf output final.pdf compress |
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
# e.g. ProductName: Mac OS X / ProductVersion: 10.8.3 / BuildVersion: 12D78 | |
sw_vers | |
# e.g. $FreeBSD: src/usr.bin/script/script.c,v 1.24 2004/02/15 17:30:13 cperciva Exp $ | |
strings /usr/bin/script | grep FreeBSD |
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
# English language edition | |
curl -s http://fpdownload2.macromedia.com/get/flashplayer/update/current/xml/version_de_mac_pl.xml | xml sel -t -m /XML/update -v "@version" | |
# German language edition | |
curl -s http://fpdownload2.macromedia.com/get/flashplayer/update/current/xml/version_de_mac_pl.xml | xml sel -t -m /XML/update -v "@version" |
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
FLASH_URL="http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_player_12_osx.dmg" | |
FLASH_DMG=$(mktemp -d -t flash_dmg)/flash.dmg | |
FLASH_MOUNTPOINT=$(mktemp -d -t flash_mountpoint) | |
FLASH_PKG="$FLASH_MOUNTPOINT/Install Adobe Flash Player.app/Contents/Resources/Adobe Flash Player.pkg" | |
FLASH_PLIST="$FLASH_PKG/Contents/Info.plist" | |
curl -o $FLASH_DMG $FLASH_URL | |
hdiutil attach -mountpoint $FLASH_MOUNTPOINT -nobrowse $FLASH_DMG | |
echo "Current Flash version is $(defaults read "$FLASH_PLIST" CFBundleShortVersionString)" | |
sudo installer -verbose -pkg "$FLASH_PKG" -target / |
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
brew tap WyseNynja/bitcoin && brew install bitcoind |
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 softwareupdate --install --all |
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
# Show all thirdparty kernel extensions | |
kextstat -kl | awk '!/com\.apple/ {print $6 $7}' | |
# Show all thirdparty launch services (root) | |
sudo launchctl list | sed 1d | awk '!/0x|com\.apple/ {print $3}' | |
# Show all thirdparty launch services (user) | |
launchctl list | sed 1d | awk '!/0x|com\.apple/ {print $3}' | |
# Show all extensions in the library folders |