Skip to content

Instantly share code, notes, and snippets.

View irmpow's full-sized avatar

Alexander Bokarev irmpow

View GitHub Profile
@irmpow
irmpow / capybara cheat sheet
Created March 22, 2018 06:36 — forked from zhengjia/capybara cheat sheet
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')
@irmpow
irmpow / screen with sbcl
Last active December 12, 2015 01:28
/etc/init.d/screen
#! /bin/sh
### BEGIN INIT INFO
# Provides: sbcl in screen mode
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@irmpow
irmpow / restas-daemon.lisp
Created February 1, 2013 10:41
/etc/restas/
;;;; restas-daemon.lisp
;;;;
;;;; Usage:
;;;; sbcl --noinform --no-userinit --no-sysinit --load /path/to/restas-daemon.lisp /path/to/daemon.conf COMMAND
;;;; where COMMAND one of: start stop zap kill restart nodaemon
;;;;
;;;; If successful, the exit code is 0, otherwise 1
;;;;
;;;; Error messages look in /var/log/messages (usually, depend on syslog configuration)
;;;;
@irmpow
irmpow / skeleton
Created February 1, 2013 07:48
/etc/init.d/skeleton
#! /bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.