Subscribe: TinyApps.Org
http://tinyapps.org/weblog/index.atom
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
app store  app  apple safari  apple  delete  library caches  library  mac  rfv library  rfv  safari  unpin pin app  unpin pin  yahoo 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: TinyApps.Org

TinyApps.Org



TinyApps.Org



Last Build Date: Sat, 18 Feb 2017 07:00:00 GMT

 



Preparing a Mac for resale or donation (Sierra edition)

Sat, 18 Feb 2017 07:00:00 GMT

Securely erase internal storage, install macOS, create temporary admin account (e.g., tempuser), install apps and updates, etc. Log in normally as tempuser and run: $ sudo dscl . -delete /Groups/admin GroupMembership tempuser $ sudo dscl . -delete /Users/tempuser Restart in Single User Mode and run: # fsck -fy # mount -uw / # rm -R /Users/tempuser # rm /var/db/.AppleSetupDone # shutdown -h now Sources mklement0's answer to How would I write a script for OS X 10.9 that removes all users and restarts the initial setup? markbjohnson's answer to Anyone know how to reset Lion to the factory default ? 10.5: How to reset Leopard back to the Setup Assistant How to reset Lion back to the Setup Assistant Regarding iLife and iWork apps This process does not preserve the iLife (iMovie, GarageBand) or iWork (Pages, Numbers, Keynote) apps. If the new owner already owns these apps, s/he can download them free of charge from the App Store. Otherwise, they may need to be purchased. Preserving the iLife and iWork entitlement may be possible by following Apple's instructions in What to do before selling or giving away your Mac, which links to How to reinstall macOS, which advises starting from Internet Recovery (Option-Command-R), formatting the internal storage, and then selecting "Reinstall macOS". According to Apple, "This installs the system that came with your Mac when it was new. It isn't associated with your Apple ID, so the new owner can use the App Store to upgrade to a later version using their Apple ID." In limited testing, this process did not install the iLife and iWork apps, but it did cause them to appear under the Mac App Store "Purchased" tab ("You Have 5 Apps to Accept"). Another possible approach, capturing and installing Mac App Store pkg files, may cause registration and update problems (as well as violate some EULA or other): Downloading Apple's Server.app installer package Save Installer From Mac App Store (Updates and New Apps) 10.9 Deploying Mac App Store Packages Accessing the Packages that underlie Apple's App Store Deploying new iLife and iWork apps Mac App Store .pkg file grabber Downloading installer packages from the Mac App Store with AppStoreExtract AppStore Extractor Script (OS X) Save Mac App Store downloads as .pkgs See also: iLife doesn't appear in "Purchased" after installing ML on a registered MacBook Pro Accept bundled apps using the Mac App Store Up-To-Date Program for Pages, Numbers, and Keynote How To Get iWork Apps On OS X Yosemite For Free On Older Macs [...]



Reset Safari 10 in OS X 10.11 El Capitan

Sat, 11 Feb 2017 07:00:00 GMT

Turn this: into this: #!/bin/bash # Reset Safari 10 for current user. Developed and tested under OS X 10.11.6 El Capitan. # Backup bookmarks to Desktop, exiting if unsuccessful cp -v ~/Library/Safari/Bookmarks.plist ~/Desktop/Bookmarks-`date +%Y%m%d%H%M%S`.plist if [[ $? -ne 0 ]]; then exit 1 fi # Delete main Safari data directory rm -rfv ~/Library/Safari # Delete caches rm -rfv ~/Library/Caches/com.apple.Safari rm -rfv ~/Library/Caches/com.apple.Safari.SearchHelper rm -rfv ~/Library/Caches/com.apple.safaridavclient rm -rfv ~/Library/Caches/com.apple.WebKit.PluginProcess rm -rfv ~/Library/Caches/Metadata/Safari rm -rfv ~/Library/Caches/SafariNotificationAgent rm -rfv ~/Library/Caches/com.apple.commerce.safari/SafariLibrary # Delete cookies rm -rfv ~/Library/Cookies/Cookies.binarycookies rm -rfv ~/Library/Cookies/com.apple.safari.cookies rm -rfv ~/Library/Cookies/com.apple.CaptiveNetworkAssistant.binarycookies rm -rfv ~/Library/Cookies/com.apple.Safari.SafeBrowsing.binarycookies rm -rfv ~/Library/Cookies/com.apple.Safari.SearchHelper.binarycookies # Delete preferences rm -rfv ~/Library/Preferences/com.apple.Safari.LSSharedFileList.plist rm -rfv ~/Library/Preferences/com.apple.Safari.RSS.plist rm -rfv ~/Library/Preferences/com.apple.Safari.plist rm -rfv ~/Library/Preferences/com.apple.Safari.Extensions.plist rm -rfv ~/Library/Preferences/com.apple.WebFoundation.plist rm -rfv ~/Library/Preferences/com.apple.WebKit.PluginHost.plist rm -rfv ~/Library/Preferences/com.apple.WebKit.PluginProcess.plist rm -rfv ~/Library/Preferences/com.apple.commerce.safari.plist # Delete saved state rm -rfv ~/Library/Saved\ Application\ State/com.apple.Safari.savedState # Delete RSS feeds subscribed in Safari or Mail # More info on PubSub database and command: # http://krypted.com/mac-os-x/managing-mail-and-safari-rss-subscriptions-from-the-command-line/ rm -rfv ~/Library/PubSub/Database # Delete yet more Safari data (cannot find any definitive documentation on this directory) rm -rfv ~/Library/WebKit/com.apple.Safari # Delete SharedFileList rm -rfv ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.apple.safari.sfl # Delete LSOs / Flash cookies rm -rfv ~/Library/Caches/Adobe/Flash\ Player # Clear download history from all browsers, including Safari # More info: http://osxdaily.com/2012/07/12/list-download-history-mac-os-x/ sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent' # Delete QuickTime cache rm -rfv ~/Library/Caches/QuickTime # You may wish to check /Library/Internet\ Plug-Ins/ and ~/Library/Internet\ Plug-Ins/ # for any plugins other than the default Quartz Composer.webplugin and Default Browser.plugin. Sources: Testing with fs_usage and File Buddy in a clean VM. completely reset Safari 9 How to reset safari 9.0.3 Reset Safari from command line Reset Safari doesn't really clean all the cookies of Safari web browser History in Safari Aborting a shell script if any command returns a non-zero value? In a bash script, how can I exit the entire script if a certain condition occurs? [...]






List all files on disk

Mon, 06 Feb 2017 07:00:00 GMT

Even as root, ls and find produced too many errors ("Permission denied", "Not a directory", "directory causes a cycle", "Input/output error", etc) when attempting to list all files on disk. Tree worked a treat:

$ tree -a -i -f / > filesystemlist.txt

 -a All files are listed.
 -i Don't print indentation lines.
 -f Print the full path prefix for each file.
See also Tree for Windows and LINUX Recursively list all files in a directory including files in symlink directories.



Migrating from Mail.app to Thunderbird

Sun, 05 Feb 2017 07:00:00 GMT

  • Mail Exporter Pro - Easiest way to batch/bulk export Mail.app mailboxes/folders (including subfolders) into an easy-to-import format for Thunderbird via:
  • ImportExportTools "adds some tools to import and export folders and messages". Also allows exporting folder indexes to compare contents, etc: ImportExportTools > Export all messages in the folder > just index (CSV).
  • Another handy add-on is Theme Font & Size Changer which "lets you change the global font size and font family used for the user interface". Or go manual with userChrome.css.
  • You can grant Thunderbird access to your Mac contacts if desired.
  • Remove the splash screen/pane: Thunderbird > Preferences > General > uncheck "When Thunderbird launches, show the Start Page in the message area".



Batch remove all tiles from Windows 10 Start Menu

Sat, 04 Feb 2017 07:00:00 GMT

Well, almost all tiles; the few that remain after running the script below (save as unpin.ps1 then right click and "Run with PowerShell") can be removed manually (right click tile > "Unpin from Start").

  • Original script in German by colinardo. Above English version by jackized.
  • Change "-unpin" to "-pin" in the script to replace the tiles.
  • If a blank "Name group" prevents the Start Menu from shrinking after deleting the tiles, pin a tile back and then manually remove it to resolve.



Convert asciidoc to markdown

Tue, 24 Jan 2017 07:00:00 GMT

  1. Install pandoc and asciidoc

    $ sudo apt install pandoc asciidoc

  2. Convert asciidoc to docbook

    $ asciidoc -b docbook foo.adoc

    foo.xml will be output into the same directory as foo.adoc

  3. Convert docbook to markdown

    $ pandoc -f docbook -t markdown_strict foo.xml -o foo.md

  4. Unicode symbols were mangled in foo.md. Quick workaround:

    $ iconv -t utf-8 foo.xml | pandoc -f docbook -t markdown_strict | iconv -f utf-8 > foo.md

  5. Pandoc inserted hard line breaks at 80 characters. Removed like so:

    $ iconv -t utf-8 foo.xml | pandoc -f docbook -t markdown_strict --wrap=none | iconv -f utf-8 > foo.md




3 Mac file-related apps

Mon, 23 Jan 2017 07:15:00 GMT

from a blog post (and related comments) on Robservatory:
  • Little Flocker - Restrict "any application from accessing your files without explicit permission ... prevent silent exfiltration, encryption, or destruction of your data..." $14.99. Think Little Snitch for your filesystem.
  • Suspicious Package - Inspect PKG installer packages. Free. Compare with the venerable Pacifist.
  • UninstallPKG - "Remove unwanted packages from your system." $9.99. The uninstaller for PKG files that Apple forgot.



Objections to veganism

Mon, 23 Jan 2017 07:00:00 GMT

Vegan Sidekick has a handy guide to justifications for harming and exploiting animals. TL;DR: this comic covers much of it.



Direct download of Boot Camp drivers

Sat, 10 Dec 2016 07:00:00 GMT

  1. From within Windows (or OS X) via Timothy Sutton's Brigadier Python script
  2. From within OS X via Boot Camp Assistant > Action > Download Windows Support Software
  3. From within a browser (for Windows 7/Boot Camp 4 & 5.1) via this Apple page