Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| # https://www.codewars.com/kata/the-builder-of-things/ruby | |
| # https://www.codewars.com/kata/reviews/5571e09a385f59d95f000063/groups/59426d64e6049310a70006ce | |
| # imported to handle any plural/singular conversions | |
| require 'active_support/core_ext/string' | |
| class Thing | |
| def initialize(name) | |
| @properties = {} | |
| is_the.name.send(name) |
| <?php | |
| #!/usr/bin/env php | |
| //usage: php envato-screenshots-downloader.php /path/to/save/screenshots http://url/to/screenshots/page | |
| set_time_limit(0); | |
| $dir = $argv[1]; | |
| $source = $argv[2]; | |
| print_r($argv); | |
| mkdir ($dir); | |
| $src = file_get_contents($source); | |
| $pattern = '/src="(https:\/\/0.s3[a-zA-Z0-9_\-\.\/%]+)"/i'; |