start new:
tmux
start new with session name:
tmux new -s myname
=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') |
if Rails.env.production? | |
module OmniAuth | |
module Strategy | |
def full_host | |
uri = URI.parse(request.url) | |
uri.path = '' | |
uri.query = nil | |
uri.port = (uri.scheme == 'https' ? 443 : 80) | |
uri.to_s | |
end |
[ | |
{ "keys": ["super+m"], "command": "toggle_minimap" }, | |
{ "keys": ["super+d"], "command": "duplicate_line" }, | |
{ "keys": ["super+up"], "command": "swap_line_up" }, | |
{ "keys": ["super+down"], "command": "swap_line_down" } | |
] |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
keypress_script = "var e = $.Event('keyup', { keyCode: 13 }); $('#main-search-input').trigger(e);" | |
page.driver.execute_script(keypress_script) |
#!/bin/sh | |
date=$1 | |
for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$'); do | |
if [[ "$(git log $branch --since $date | wc -l)" -eq 0 ]]; then | |
if [[ "$branch" =~ "origin/" ]]; then | |
local_branch_name=$(echo "$branch" | sed 's/^origin\///') | |
if [[ "$DRY_RUN" -eq 1 ]]; then | |
echo "git push origin :$local_branch_name" |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.