Mac OS
12 Notes
Darwin Image for VMware Tools for Mac OS X: http://www.insanelymac.com/forum/files/file/31-vmware-tools-for-os-x-darwiniso/
1-Turn off your Mac (choose Apple > Shut Down). 2-Press the power button while holding down Command-R. The Mac will boot into Recovery mode. ... 3-Select Disk Utility and press Continue. 4-Choose Utilities > Terminal. 5-Enter resetpassword (all one word, lowercase letters) and press Return. 6-Select the volume containing the account (normally this will be your Main hard drive). 7-Choose the account to change with Select the User Account. 8-Enter a new password and re-enter it into the password fields. 9-Enter a new password hint related to the password. 10-Click Save. 11-A warning will appear that the password has changed, but not the Keychain Password. Click OK. 12-Click Apple > Shut Down. Now start up the Mac. You can login using the new password.
brew install npm sudo npm install -g cordova ionic npm install -g ios-sim npm install -g ios-deploy ----------------------------- ionic platfrom add ios ionic resources ----------------------------- ionic build ios
Disable Open/Close Window Animations defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false ------------------------------------- Disable Quick Look Animations defaults write -g QLPanelAnimationDuration -float 0 ------------------------------------- Disable Window Size Adjustment Animations defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 ------------------------------------- Disable Dock Animations defaults write com.apple.dock launchanim -bool false ------------------------------------- Disable the “Get Info” Animation defaults write com.apple.finder DisableAllAnimations -bool true ------------------------------------- Get rid of Dashboard defaults write com.apple.dashboard mcx-disabled -boolean YES killall Dock ------------------------------------- Speed Up Window Resizing Animation Speed defaults write -g NSWindowResizeTime -float 0.003 ------------------------------------- Disable The Eye Candy Transparent Windows & Effects System Preferences -> Accessibility -> Display Check the box for “Reduce Transparency” ------------------------------------- Disable Unnecessary Widgets & Extensions in Notifications Center System Preferences -> Extensions -> Today Uncheck all options you don’t need or care about -------------------------------------
csrutil status csrutil disable reboot
1- diskutil list You will get the partition list, note that the Recovery Partition is obviously named "Recovery HD" 2- Create a folder in Volumes folder for Recovery HD and mount it there: sudo mkdir /Volumes/Recovery\ HD sudo mount -t hfs /dev/disk0s3 /Volumes/Recovery\ HD 3- Remove the file `prelinkedkernel`from the directory `com.apple.recovery.boot` sudo rm -rf /Volumes/Recovery\ HD/com.apple.recovery.boot/prelinkedkernel 4- Copy your working `prelinkedkernel` there: sudo cp /System/Library/PrelinkedKernels/prelinkedkernel /Volumes/Recovery\ HD/com.apple.recovery.boot/ 5- Reboot
vboxmanage modifyvm "Mac OS X 10.11" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 VBoxManage setextradata "Mac OS X 10.11" "VBoxInternal2/EfiBootArgs" " "
You need to run these commands on a Mac OS X: # Mount the installer image hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app # Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J # Mount the ElCapitan Blank ISO Image hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build # Restore the Base System into the ElCapitan Blank ISO Image asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase # Remove Package link and replace with actual files rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ # Copy El Capitan installer dependencies cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg # Unmount the installer image hdiutil detach /Volumes/install_app # Unmount the ElCapitan ISO Image hdiutil detach /Volumes/OS\ X\ Base\ System/ # Convert the ElCapitan ISO Image to ISO/CD master (Optional) hdiutil convert /tmp/ElCapitan.cdr.dmg -format UDTO -o /tmp/ElCapitan.iso # Rename the ElCapitan ISO Image and move it to the desktop mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso
Locate command: To create the database for using `locate` command, run the following command: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist updatedb ==> sudo /usr/libexec/locate.updatedb ----------------------------------------------------------------------
For downloading Xcode or other development tools, you need to log into apple.com using your Apple ID account and then open the following link: https://developer.apple.com/downloads/ Download Xcode and Command Line Tools!
brew install proxychains-ng sudo nano /usr/local/Cellar/proxychains-ng/4.11/etc/proxychains.conf ---------------------------------------------------------------- brew install npm ---------------------------------------------------------------- brew install ssh-copy-id ---------------------------------------------------------------- brew install tmux ----------------------------------------------------------------
Reference Site: http://brew.sh/ ------------------------------------------------ 1-You need to install Developer Tools first. Using the `gcc --version` command check if you have the tools first. If the tools were not installed, a dialog will be opened asking you if you want to install the tools. You choose Install. 2-The website says you only need to use the following command to install brew. (But it might be blocked for us in Iran, as of the time writing this tutorial): /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" If it was still blocked, for installing it you need to open the following URL in a proxy activated browser, and save the script in your Mac OS: https://raw.githubusercontent.com/Homebrew/install/master/install Install it using this command: ruby brew.sh