#!/bin/bash | |
# curl -skL https://gist.github.com/khsing/6697187/raw/mactips.sh | bash | |
# "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)" | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
# Allow Finder quit. | |
defaults write com.apple.finder QuitMenuItem -bool true | |
#!/usr/bin/env bash | |
# ~/.osx — http://mths.be/osx | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
# Most of these are from: | |
# https://github.com/paulirish/dotfiles/blob/master/.osx | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# To check a value use `read`: | |
# | |
# defaults read com.apple.LaunchServices LSQuarantine | |
# | |
# If value does not exist, then it has been manually set. | |
# |
alias airport='sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport' |
Exporting password + one-time code data from iCloud Keychain is now officially supported in macOS Monterey and Safari 15 (for Monterey, Big Sur, and Catalina). You can access it in the Password Manager’s “gear” icon (System Preferences > Passwords on Monterey, and Safari > Passwords everywhere else), or via the File > Export > Passwords... menu item). You shouldn't need to hack up your own exporter anymore.
After my dad died, I wanted to be able to have access any of his online accounts going forward. My dad was a Safari user and used iCloud Keychain to sync his credentials across his devices. I don’t want to have to keep an OS X user account around just to access his accounts, so I wanted to export his credentials to a portable file.
Most things should work in newer versions of macOs with slight tweaks.
Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
#!/usr/bin/env python3 | |
'''amfid_patch.py - Pedro José Pereira Vieito © 2016 | |
This script can patch macOS 10.12.2 amfid daemon on memory | |
to allow arbitrary entitlements in Developer ID signed binaries. | |
Killing amfid will make the patch disapear: | |
$ sudo kill -9 `pgrep amfid` | |
You must run the script as a root (sudo) and with SIP disabled. | |