Uses
by Yurui Zhang (@yuruiology) Last updated: Jan 13, 2020
by Yurui Zhang (@yuruiology) Last updated: Jan 13, 2020
create or replace function | |
count_rows(schema text, tablename text) returns integer | |
as | |
$body$ | |
declare | |
result integer; | |
query varchar; | |
begin | |
query := 'SELECT count(1) FROM ' || schema || '.' || tablename; | |
execute query into result; |
awk -F, 'NR==1{hdr=$0;next}!($5 in files){files[$5]=1;print hdr >$5".csv"}{print>$5".csv”}’ input.csv |
scp -r [!.]* username@server:/path/to/destination/folder |
tail -f ~/Library/Application\ Support/Postgres93/var/pg_log/* |
bundle install --path .bundle --binstubs .bundle/bin |
=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') |