- Install XCode from App Store.
- Open XCode and agree to terms and conditions.
xcode-select --install
tell application "System Events" to tell process "Mail" | |
set mainWindow to a reference to the first window | |
set rootSplitter to a reference to the first splitter group of the mainWindow | |
set firstSplitter to a reference to the last splitter group of the rootSplitter | |
set scrollArea to a reference to the last scroll area of the firstSplitter | |
set scrollGroup to a reference to the first group of the scrollArea | |
if number of groups of the scrollGroup is greater than 1 then | |
set maybeRemoteContentGroup to a reference to the first group of the scrollGroup | |
{} |
#!/bin/sh | |
# Config for SSL. | |
echo "--- Making SSL Directory ---" | |
mkdir /etc/nginx/ssl | |
echo "--- Copying $i SSL crt and key ---" | |
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com" | |
echo "--- Turning SSL on in nginx.conf. ---" |
Mac OS X 10.9.2, Vagrant 1.5.1, VMWare Fusion 6.0.2 | |
I had some intense difficulties getting this all to work. The VMs would boot | |
fine with gui=true, but then would fail as soon as I turned that off. Yet when | |
they failed, they were actually running just fine! I could ssh in, but neither | |
vagrant nor vmrun could find the running VMs! You would think that it would | |
give better errors, but no. | |
First off, most boxes you find online will be using the VMWare configuration 9, | |
which will only boot if you have gui=true the first boot, so you can upgrade it |
<snippet> | |
<content><![CDATA[ | |
/** | |
* Set ${1:property} | |
* | |
* @param ${2:type} \$$1 | |
* | |
* @return ${3:Type} | |
*/ | |
public function set${1/^([a-z])/\u$1/g}(\$$1) |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var notify = require('gulp-notify'); | |
var sass = require('gulp-ruby-sass'); | |
var autoprefix = require('gulp-autoprefixer'); | |
var minifyCSS = require('gulp-minify-css') | |
var coffee = require('gulp-coffee'); | |
var exec = require('child_process').exec; | |
var sys = require('sys'); |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
You can get a refund for any app on the App Store by following this process: | |
1. Visit https://reportaproblem.apple.com | |
2. Sign In with your Apple ID. | |
3. Click “Report a Problem” on the offending app. | |
4. Choose “Problem is not listed here” and be sure to mention that you are asking for a refund because it doesn’t work as expected. |
exec { "change_httpd_user": | |
command => "sed -i 's/www-data/vagrant/g' /etc/apache2/envvars", | |
onlyif => "/bin/grep -q 'www-data' '/etc/apache2/envvars'", | |
notify => Service['apache2'], | |
require => Package['apache2'], | |
} | |
file { "/var/lock/apache2": | |
ensure => "directory", | |
owner => "vagrant", |