start new:
tmux
start new with session name:
tmux new -s myname
# SSH Change Directory | |
function sshcd() { | |
port="" | |
getopts ":p:" opt; | |
if [ ! -z $OPTARG ]; then | |
port="-p $OPTARG" | |
shift 2 | |
fi |
function imgdim() { | |
echo "Image Dimensions copied to the Clipboard." | |
sips -g pixelHeight -g pixelWidth $1 | sed '1 d' | sed 's/ pixelHeight: \(.*\)/height: \1px;/' | sed 's/ pixelWidth: \(.*\)/width: \1px;/' | pbcopy | |
} |
=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') |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example</title> | |
</head> | |
<body> | |
<div id="site-wrapper"> |
Note: This is still in the workings. If you have anything you want to see added into this document please leave some feedback in the comment section below; or mail me at kuroir at gmail dot com