forked from rstacruz/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
255 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: Docker on OSX | ||
layout: default | ||
--- | ||
|
||
You'll need these: | ||
|
||
* [boot2docker] - bootstraps a Virtualbox VM to run a docker daemon | ||
* [docker] - docker client | ||
|
||
### Install | ||
|
||
$ brew install boot2docker | ||
$ brew install docker | ||
$ boot2docker init | ||
|
||
### Turning on | ||
|
||
$ boot2docker up | ||
|
||
Waiting for VM to be started...... Started. | ||
To connect the Docker client to the Docker daemon, please set: | ||
|
||
export DOCKER_HOST=tcp://192.168.59.103:2375 | ||
|
||
$ export DOCKER_HOST=tcp://192.168.59.103:2375 | ||
|
||
### Try it | ||
|
||
$ docker search ubuntu | ||
|
||
$ docker pull ubuntu | ||
$ docker start ubuntu | ||
|
||
### Turning off | ||
|
||
$ boot2docker save | ||
# save state to disk | ||
|
||
### Vagrant | ||
|
||
[boot2docker]: https://github.com/boot2docker/boot2docker | ||
[docker]: https://www.docker.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
title: iOS Provisioning Profiles | ||
layout: default | ||
--- | ||
|
||
### Types of profiles | ||
|
||
* __Development__ - deploy to an iPhone via XCode | ||
* __Adhoc__ - deploy via testflightapp.com | ||
* __Appstore__ - only used for submitting to the app store | ||
|
||
### Requirements | ||
|
||
| What | Dev | Adhoc | Appstore | | ||
|-----------------|-----|-------|----------| | ||
| CSR file | | √ | √ | | ||
| Device UDIDs | √ | √ | | | ||
| Developers list | √ | | | | ||
|
||
### Obtaining a CSR file | ||
|
||
Needed for Adhoc & Appstore builds. | ||
|
||
* Open *Keychain Access.app* | ||
* *Keychain Access* menu -> *Certificate Assistant* menu -> *Request a | ||
certificate...* | ||
* User email address is *your email* | ||
* Common name is *your name* | ||
* CA Email address is *blank* | ||
* Request is *Saved to disk* | ||
|
||
### Get the `.cer` files | ||
|
||
Needed for Adhoc & Appstore builds. | ||
|
||
* in the iOS dev portal, go to *Certificates*, and download the certificate. | ||
Install it on the dev machine. | ||
|
||
### Obtaining device UDIDs | ||
|
||
Needed for Dev and Adhoc builds. | ||
|
||
* via iTunes: http://whatsmyudid.com | ||
* via XCode: cmd+shift+2 (Organizer), Devices | ||
|
||
For developers | ||
-------------- | ||
|
||
Don't ever ask Xcode to *Fix issue...* for you. | ||
|
||
### Using a provisioning profile | ||
|
||
No need to use `.mobileprovision` files since XCode 5. | ||
|
||
* Open the `*.mobileprovision` file using Finder | ||
* XCode Project -> *Build settings* tab -> *Code signing* section -> | ||
*Provisioning Profile* section | ||
* Set *Debug* to the *development* profile | ||
* Set *Release* to the *ad-hoc* profile | ||
|
||
### Building an .ipa (Adhoc or Appstore) | ||
|
||
* In the toolbar, select "iOS Device" as the target | ||
* *Product* menu -> *Archive* | ||
* In the Organizer (Cmd+Shift+2) -> *Archives* tab -> *Distribute...* button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: Make for assets | ||
layout: default | ||
--- | ||
|
||
### Basic compiling | ||
|
||
bin := ./node_modules/.bin | ||
|
||
all: build/foo.js | ||
|
||
build/%.js: src/%.coffee | ||
@$(bin)/coffee < $^ > $@ | ||
|
||
### Stylus + Autoprefixer | ||
|
||
bin := ./node_modules/.bin | ||
stylus := $(bin)/stylus | ||
autoprefixer := $(bin)/autoprefixer | ||
styl_files := $(shell find web/ -name "*.styl") | ||
|
||
all: public/app.css | ||
|
||
public/app.css: css/app.styl | ||
|
||
%.css: %.styl $(styl_files) | ||
@$(stylus) $< | $(autoprefixer) -b "> 1%" > $@ | ||
|
||
### Hint | ||
|
||
hint: | ||
$(js_files) | ||
|
||
### Watching | ||
|
||
watch: | ||
@echo "... watching for changes" | ||
@while true; do make -s; sleep 1; done | ||
|
||
### Browserify | ||
|
||
js_files := $(shell find web/ -name "*.js") | ||
|
||
public/app.js: web/app.js | ||
public/vendor.js: web/vendor.js | ||
|
||
public/%.js: web/%.js $(js_files) | ||
$(browserify) -t [ cssify -x .css ] $< > $@ |
Oops, something went wrong.