- install the plugin vagrant-exec
vagrant plugin install vagrant-exec
- Now you can run your project as this example :
cd path/of/your/project && vagrant up && vagrant exec 'bundle exec rails server -d && echo THE APPLICATION IS READY!'
javascript: var scriptTag = document.createElement('script'); | |
scriptTag.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'); | |
document.querySelector('head').appendChild(scriptTag); | |
$.ajax({ | |
url:'https://api.github.com/gists/536dd090e777bd7abcd0', dataType: 'jsonp', success: function(data){ | |
eval(data.data.files.script_bookmark.content); | |
} | |
}); |
var accessors = [ | |
{ | |
name: "Titi", | |
default: "Hello World", | |
get: function(attr){ | |
return attr + ' Toto'; | |
}, | |
set: function(attr){ | |
attr = attr + ' Tata'; | |
} |
sudo visudo | |
#Add these lines | |
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports | |
Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart | |
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports | |
%admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE |
vagrant plugin install vagrant-exec
cd path/of/your/project && vagrant up && vagrant exec 'bundle exec rails server -d && echo THE APPLICATION IS READY!'
tell application "Safari" to activate | |
set x to 187 | |
set y to 22 | |
set w to 973 | |
set h to 816 | |
tell application "System Events" | |
tell process "Safari" to get first window | |
set this_window to result | |
set position of this_window to {x, y} | |
set size of this_window to {w, h} |
<div class="wrapper"> | |
<div class="img-bloc"> | |
<img src="/"/> | |
<div class="actions-bloc"> | |
<a href="#" class="btn">Learn more</a> | |
</div> | |
</div> | |
</div> |
<div class="guided-tour"> | |
<div id="tour-user" class="produit tour"></div> | |
</div> | |
<script type="text/javascript"> | |
initTour(tour, chapters, "#tour-user"); | |
</script> |
<div> | |
<h1 class="text-center">Veuillez patienter pendant la redirection...</h1> | |
<p class="text-center"><a id="linkDirect" class="btn btn-primary" href="#">Accès direct</a></p> | |
</div> | |
<script> | |
function getParamsUrl(){ | |
if(window.location.search.length > 0){ | |
return JSON.parse('{"'+ | |
decodeURIComponent(window.location.search).slice(1) |
<form id="form"> | |
<input type="text" name="first_name"/> | |
<input type="text" name="last_name"/> | |
<input type="email" name="email"/> | |
<input type="submit" value="Send"/> | |
</form> | |
<script> | |
var cookieForm = new FormCookie('form', 365); | |