Skip to content

Instantly share code, notes, and snippets.

View giacmir's full-sized avatar

Giacomo Mirabassi giacmir

View GitHub Profile
@jamiejackson
jamiejackson / mailcatcher.service
Created January 6, 2016 19:34
MailCatcher Systemd Service / Daemon
[Unit]
Description=MailCatcher Service
After=network.service vagrant.mount
[Service]
Type=simple
ExecStart=/usr/local/bin/mailcatcher --foreground --ip 10.0.2.15
[Install]
WantedBy=multi-user.target
@anentropic
anentropic / gist:5090049
Last active August 25, 2016 16:30
Solved vagrant mount -t vboxsf problem ...nothing to do with guest additions
[redis] Mounting shared folders...
[redis] -- v-root: /vagrant
[redis] -- v-csr-3: /tmp/vagrant-chef-1/chef-solo-3/roles
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csr-3 /tmp/vagrant-chef-1/chef-solo-3/roles
$
and if you ssh in to the vm:
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')