As a developer, sometimes we need to recover from a fresh installed OS X to previous development state.
Modern OS X system has three components:
- kext--the kernel extension
- CLI app
- GUI app
##Generate and Install IPA's file in device through Command Line
###Thanks to Mattt and phonegap's scripts
Take a note: all this steps can be automatized in a single script, if you know how to write it. (Bash or Ruby will be fine)
1.- Install your Provisioning Profile and Developer Certificate
2.- Install Shenzhen and ios-deploy: the firstone will generate the IPA file and the secondone will install it onto your device
| #!/bin/bash | |
| # | |
| # Implementation of BASH + NCAT chat server | |
| # | |
| # Author: Anastas Dancha <[email protected]> | |
| # Contact: [email protected] | |
| # | |
| #debug="true" |
Fix for installing MediaTek USB(RT2870/RT2770/RT3X7X/RT537X) driver in OS X Mavericks
Absolutely no warranties! Proceed at your own risk!
Download driver from here: http://www.mediatek.com/_en/07_downloads/01_windows.php?sn=502
You will need Pacifist: http://www.charlessoft.com
| #!/usr/bin/env bash | |
| TEMP_PLIST=/tmp/metadata.plist | |
| for i in "$@"; do | |
| if unzip -p "$i" iTunesMetadata.plist >"$TEMP_PLIST"; then | |
| name=$(/usr/libexec/PlistBuddy -c 'Print :itemName' "$TEMP_PLIST") | |
| id=$(/usr/libexec/PlistBuddy -c 'Print :itemId' "$TEMP_PLIST") | |
| appleid=$(/usr/libexec/PlistBuddy -c 'Print :appleId' "$TEMP_PLIST" 2>/dev/null || | |
| /usr/libexec/PlistBuddy -c 'Print :com.apple.iTunesStore.downloadInfo:accountInfo:AppleID' "$TEMP_PLIST" 2>/dev/null || |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # Public Domain, i.e. feel free to copy/paste | |
| # Considered a hack in Python 2 | |
| import inspect | |
| def caller_name(skip=2): | |
| """Get a name of a caller in the format module.class.method | |
| `skip` specifies how many levels of stack to skip while getting caller | |
| name. skip=1 means "who calls me", skip=2 "who calls my caller" etc. |