Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
| osascript -e 'tell application "iOS Simulator" to quit' | |
| osascript -e 'tell application "Simulator" to quit' | |
| xcrun simctl erase all |
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
| var AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| accessKeyId: '{AWS_KEY}', | |
| secretAccessKey: '{AWS_SECRET}', | |
| region: '{SNS_REGION}' | |
| }); | |
| var sns = new AWS.SNS(); |
| import UIKit | |
| extension UIViewController { | |
| func setScreeName(name: String) { | |
| self.title = name | |
| self.sendScreenView() | |
| } | |
| # Update Docker | |
| curl -sSL https://get.docker.com/ubuntu/ | sudo sh | |
| sudo docker version | |
| # Run VPN | |
| sudo docker run -d --privileged --name vpn --restart=always -p 1194:1194/udp -p 443:443/tcp --dns=8.8.8.8 jpetazzo/openvpn /bin/sh -c run | |
| sudo docker run -t -i -p 8080:8080 --dns=8.8.8.8 --rm --volumes-from vpn jpetazzo/openvpn serveconfig |
Install the dependencies for the archiso package:
(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git
I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below.
So, grab the most recent version from git and install it:
(user): git clone git://projects.archlinux.org/archiso.git && cd archiso
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: dockercompose | |
| # Required-Start: $docker | |
| # Required-Stop: $docker | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Docker Services | |
| ### END INIT INFO |
| docker-compose up -d | |
| docker attach myapp_web_1 |
| // GSON can parse the data. | |
| // | |
| // Deserialization: | |
| // Note there is a bug in GSON 2.3.1 that can cause it to StackOverflow when working with RealmObjects. | |
| // To work around this, use the ExclusionStrategy below or downgrade to 1.7.1 | |
| // See more here: https://code.google.com/p/google-gson/issues/detail?id=440 | |
| // | |
| // Serialization: | |
| // <Type>RealmProxy objects are created by the Realm annotation processor. They are used to control | |
| // access to the actual data instead of storing them in fields and it is therefore them we need to register a |
caffemodel: age_net.caffemodel
caffemodel_url: https://github.com/GilLevi/AgeGenderDeepLearning/raw/master/models/age_net.caffemodel