These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
# To enable CORS you should add lines with CORS rules below to your valet.conf file | |
# Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
# of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
# after you edit your valet.conf do not forget to execute `valet restart` | |
server { | |
listen 80 default_server; | |
root /; | |
charset utf-8; | |
client_max_body_size 128M; |
$("link[rel=stylesheet]").each(function(){ | |
var url = $(this).attr('href'); | |
url = url.replace(/\?tcnc=\d+/,'').replace(/\&tcnc=\d+/,''); | |
url += (url.indexOf('?')>0 ? '&' : '?') + 'tcnc=' + (new Date()).getTime(); | |
$(this).attr('href', url); | |
console.log('[UPDATED CSS] '+ url); | |
}); |
# Makes Sinatra support multiple view paths. | |
# Usage: | |
# | |
# class Main < Sinatra::Base | |
# register Sinatra::MultiView | |
# | |
# get '/' do | |
# locals = { :name => current_user.name } | |
# | |
# # Instead of `haml 'home', {}, locals` |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.