Command+s
This method tricks OSX into thinking the computer it’s brand new and leads you through the setup to create a new administrator account.
Mount -uw /
Rm /var/db/.AppleSetupDone
# OSX 10.5 or later Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home | |
# so just export $JAVA_HOME in file ~/.bash_profile or ~/.profile or ~/.zshrc | |
# /usr/libexec/java_home return the Java version specified in Java Preferences for the current user. | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
#specific version | |
#export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) |
package com.company.cq.servlets; | |
import org.apache.felix.scr.annotations.Component; | |
import org.apache.felix.scr.annotations.Properties; | |
import org.apache.felix.scr.annotations.Property; | |
import org.apache.felix.scr.annotations.Service; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.apache.sling.api.servlets.SlingAllMethodsServlet; | |
import org.slf4j.Logger; |
package com.company.cq.services; | |
import org.apache.felix.scr.annotations.Component; | |
import org.apache.felix.scr.annotations.Properties; | |
import org.apache.felix.scr.annotations.Property; | |
import org.apache.felix.scr.annotations.Service; | |
import org.osgi.framework.Constants; | |
/** |
package com.company.cq.taglib; | |
import com.cqblueprints.taglib.CqSimpleTagSupport; | |
import com.squeakysand.jsp.tagext.annotations.JspTag; | |
import com.squeakysand.jsp.tagext.annotations.JspTagAttribute; | |
import com.englishtown.cq.b2c.services.GoodbyeWorldService; | |
import java.io.IOException; |
// This is an example of use. | |
// Here we use the new Bearer Token thats make it possible to get tweets without user login | |
// More info on Bearer here: https://dev.twitter.com/docs/auth/application-only-auth | |
// Full Codebird API is here: https://github.com/mynetx/codebird-js | |
var Codebird = require("codebird"); | |
var cb = new Codebird(); | |
cb.setConsumerKey('CONSUMER_KEY', 'CONSUMER_SECRET_KEY'); | |
var bearerToken = Ti.App.Properties.getString('TwitterBearerToken', null); |
The PATH exposed to GUI apps in OSX is determined by what it's set in ~/.MacOSX/environment.plist
You can see what PATH Sublime is getting from OSX by opening Sublime's console (control-tick) and typing:
import os
os.environ['PATH']
If you don't have that file/folder just create it.
// right navigation button | |
var btn = Ti.UI.createButton({ | |
title:'button' | |
}); | |
// window | |
var win = Ti.UI.createWindow({ | |
rightNavButton:btn, | |
backgroundColor:'blue' | |
}); |
/*************************************************** | |
Titanium mCache | |
Joe Maffia | |
http://about.me/joemaffia | |
A cache module to be used for Titanium app. http://www.appcelerator.com/ | |
It uses the local SQLite database to cache strings and JavaScript objects. | |
Usage: |