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  library  mac  menu  reset  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: Sun, 05 Mar 2017 07:00:00 GMT

 



Saving colorized output from Bash

Sun, 05 Mar 2017 07:00:00 GMT

even from programs like testdisk, in which output may span many separate screens:

Text-based output:

  1. Install aha: $ sudo apt install aha
  2. $ sudo testdisk | tee >(aha --black>output.html)
  3. After quiting testdisk, type exit on the command line. Find output.html in the current directory.

Graphic-based output:

  1. $ sudo apt install imagemagick ttyrec gcc x11-apps
  2. $ git clone https://github.com/icholy/ttygif.git
  3. $ cd ttygif
  4. $ make && sudo make install
  5. $ ttyrec
  6. Run desired command(s), e.g., $ sudo testdisk
  7. Type exit when finished
  8. Convert ttyrec's output file (ttyrecord by default) to tty.gif in the current directory: $ ttygif ttyrecord

Sources & More




Resetting an HP OfficeJet 5740

Sat, 04 Mar 2017 07:00:00 GMT

Basic method: Tap Setup > Printer Maintenance > Restore > Restore Factory Defaults > Restore The dialog box warns: All configured settings in the printer will be deleted and the original factory settings will be restored. This includes the administrator password for the embedded web server (EWS), Address Book entries for scan, and Phone Book entries for fax. Also, Web Services account information will be removed, you will need to setup Web Services again on this printer. Until Web Services is set up again, HP Instant Ink will not work properly. Do you want to continue? Cancel | Restore Undocumented methods: Press Back/Return arrow 4 times > Support Menu > Resets Menu > Country & Language reset, Partial reset, and Semi-full reset Press Home, Back/Return arrow, Home, Home > Engineering Menu > Services Menu > Resets Menu > Country & Language reset, Partial reset, Semi-full reset, and OOBE reset (Out Of Box Experience) Press Home, Back/Return arrow, Home, Home > Engineering Menu > Underwear Menu > system menu > clear nvm, clear firms, clear scan list, and clear derivative Notes According to Three Types of Resets for your HP Officejet 6110, Partially resetting it will return the printer to a responsive state without erasing the settings that you may have set on the printer. The semi-full reset is applicable on issues where the printer has gone haywire and does not perform as expected. This process requires all settings and data saved in the printer to be erased. [Full Reset] is rarely used. Usually the semi-full reset will do the job. . . . [T]here have been instances in the past where doing this reset procedure has cause permanent damage to the printer. Proceed at your own risk. A post by Jay4096 states that none of these worked to reset the administrator password on a HP Photosmart 7510 e-All-in-One: Partial Reset Semi-Full Reset OOBE Reset Full Reset Clear derivatives However, he was able to reset the administrator password by resetting the network settings (Wi-Fi icon on LCD > settings icon > Restore Network Settings). On the OfficeJet 5740, the prompt states: Network settings (including proxy settings), and the administrator password for the embedded web server (EWS), will be reset. The clear nmv option returned It is not default serial number Failed to reset NVM. Changed the serial number to all zeros on a whim to no avail. However, angerion explained how to dump and overwrite the NVM on an HP Photosmart C4480; the options are located under Engineering Menu > Underwear Menu > photo menu: dump nvm=>file and dump file=>nvm. While I was able to dump the NVM to an SD card, attempting to write back a zero-filled NVM2_RAW.DMP returned error 0: unsupported. Renaming to any other filename (including NVM_RAW.DMP, which angerion used) would return error: bad file /fs/sda1/NVM2/NVM2_RAW.DMP. Support and Engineering main menu entries Support Menu (Press Back/Return 4 times) Support (Displays current firmware version) Information Menu Resets Menu System Configuration Menu Fax Diagnostic Menu Print Diagnostic Menu Connectivity Diagnostics Menu Reports Menu Scan Diagnostics Menu Enable/Disable Menu Some potentially useful/interesting options: System Configuration Menu > Hardware failure status > OK to clear hardware failure status Enable/Disable Menu > disable Fax, Fax reprint, Color fax (incoming), or Webscan features Engineering Menu (Press Home, Back, Home, Home) Manufacturing Menu Underwear Menu Services Menu Fax Regulatory Menu Extended Self Test Country & Language Some potentially useful/interesting options: Manufacturing Menu > product usage menu > page counters Underwear Menu > boot code menu > set to mfg_mode and set to user_mode (Booting into mfg_mode displays a grid pattern on the LCD. Pressing the power button returns the printer to user mode.) Services Menu > System Configuration > Change serial number, Ethernet MAC address, and wireless MAC address Services Menu > Ser[...]



Windows keeps reverting to high contrast mode

Wed, 01 Mar 2017 07:00:00 GMT

If Windows keeps changing back to high contrast mode despite repeated attempts to change in Control Panel > All Control Panel Items > Personalization and disabling all options under "Choose a High Contrast theme" in Control Panel > All Control Panel Items > Ease of Access Center > "Make the computer easier to see", head to the Lock Screen > Ease of Access icon at bottom left > and turn off High Contrast.



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 file quarantine database (i.e., list of downloaded files) # 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 printf "\n\n\033[1;32mSafari cleanup complete.\n\n\033[1;31mThe contens of /Library/Internet Plug-Ins and ~/Library/Internet Plug-Ins\nwill appear below after pressing Enter. Check output for unwated plugins.\nPreserve Quartz Composer.webplugin & Default Browser.plugin at a minimum.\033[0m\n\n" read -p "Press Enter to continue." # List contents of /Library/Internet Plug-Ins and ~/Library/Internet Plug-Ins ls -A /Library/Internet\ Plug-Ins ~/Library/Internet\ Plug-Ins 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? guapolo's answer to How to get osx shell script to show colors in echo [...]






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