###Useful OS X commands
-
App Store Debug menu
Show
defaults write com.apple.appstore ShowDebugMenu -bool true
Hide
# ~/.osx — http://mths.be/osx | |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Set computer name (as done via System Preferences → Sharing) | |
scutil --set ComputerName "MathBook Pro" | |
scutil --set HostName "MathBook Pro" | |
scutil --set LocalHostName "MathBook-Pro" |
#!/bin/sh | |
## The first part filters the XML file on Apple's Update Server that iTunes checks with when looking for iOS and iPod software updates, filtering and displaying only the URLs and saving them to a text file in /var/tmp/firmwhere.txt | |
curl http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version | grep ipsw | grep -v protected | grep -v Recovery | sort -u | sed 's/<string>//g' | awk '{$1=$1}1' | sed 's/<\/string>//g' > /var/tmp/firmwhere.txt | |
## If necessary, you can download *all* available software updates by uncommenting the command below. Make sure to change directory to the one you want to download to first or edit the command appropriately. It will just loop through the text file and using cURL, will download all iOS and iPod software updates. | |
##If you have wget installed, uncomment the second line instead to use wget and it will skip any updates downloaded. Again, change directory to the one you want to download to or ed |
# App Store playing | |
import urllib, urllib2, json, plistlib | |
### | |
# Utility function for performing an iTunes-style search | |
def perform_itunes_search(api_url, query_list=[]): | |
query_str = urllib.urlencode(query_list) | |
response_handle = urllib2.urlopen('https://itunes.apple.com/%s?%s' % (api_url, query_str)) |
#include <stdio.h> | |
void DumpHex(const void* data, size_t size) { | |
char ascii[17]; | |
size_t i, j; | |
ascii[16] = '\0'; | |
for (i = 0; i < size; ++i) { | |
printf("%02X ", ((unsigned char*)data)[i]); | |
if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') { | |
ascii[i % 16] = ((unsigned char*)data)[i]; |
IGNORE_CC_MISMATCH=1 bash NVIDIA-Linux-x86_64-337.12.run -a | |
System specs: | |
- macbook pro 15 inch retina 11,3 | |
- ubuntu 14.04 beta x64 |
#!/bin/sh | |
# BuildDmg.sh | |
# Build OS X .dmg install file | |
# Author maojiajun | |
set -eu | |
################################################################################### | |
# config, change for you app. |
###Useful OS X commands
App Store Debug menu
Show
defaults write com.apple.appstore ShowDebugMenu -bool true
Hide
#!/bin/sh | |
# Create a bootable ISO from the OS X Mavericks app | |
# http://thezinx.com/misc/trend/create-bootable-dmg-iso-mavericks-app/ | |
if [ ! -f /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg ]; then | |
echo "Download the OS X Mavericks App and then rerun this script." | |
open "https://itunes.apple.com/us/app/os-x-mavericks/id675248567" | |
exit 1 | |
fi |
The Macbook Pro 11,3 (late 2013, Retina) is equipped with two GPUs:
Currently under Linux the Intel GPU can only be used with the help of:
Update: https://github.com/phracker/MacOSX-SDKs hosts the direct SDK folders already extracted.
Xcode 4.3.3
Show Package Content
/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs