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 *.*
| before_script: | |
| - ./path/to/mongo-php-driver-installer.sh |
| # /etc/logrotate.d/mongod | |
| # http://linuxcommand.org/man_pages/logrotate8.html | |
| /var/log/mongodb/mongodb.log { | |
| weekly | |
| missingok | |
| rotate 30 | |
| compress | |
| dateext | |
| notifempty | |
| sharedscripts |
| # watch files and rerun phpunit on changes | |
| phpunitwait() { | |
| while inotifywait $(find $1 -name '*.php'); | |
| do | |
| clear; | |
| phpunit --colors $2; | |
| done; | |
| } |
| #!/bin/bash | |
| if [ $# -ne 1 ]; then | |
| echo "Usage: $0 CODE-DIRECTORY" | |
| exit 1 | |
| fi | |
| code_directory=$1 | |
| if [ ! -d $code_directory ]; then |
| <?php | |
| namespace MyApp; | |
| use PhpSpec\ObjectBehavior; | |
| use Prophecy\Argument; | |
| class UserSpec extends ObjectBehavior | |
| { | |
| function it_fails_when_using_a_not_valid_email() |
| " Theme | |
| colorscheme railscasts | |
| " Sugar | |
| set showmatch " highlight matching [{()}] | |
| set number " show line numbers | |
| set showcmd " show command in bottom bar | |
| set cursorline " highlight current line | |
| syntax on " Enable syntax highlighting |
| * PHP-based: | |
| ** http://magephp.com/ | |
| ** http://kohkimakimoto.github.io/altax/ | |
| ** http://deployer.in/ | |
| ** http://rocketeer.autopergamene.eu/ | |
| * Ruby | |
| ** http://capistranorb.com/ | |
| * Python |
| package net.armesto.feign; | |
| import feign.Feign; | |
| import feign.Param; | |
| import feign.RequestLine; | |
| import feign.jackson.JacksonDecoder; | |
| import feign.jackson.JacksonEncoder; | |
| import rx.Observable; | |
| import java.util.List; |
| from botocore.credentials import InstanceMetadataProvider, InstanceMetadataFetcher | |
| provider = InstanceMetadataProvider(iam_role_fetcher=InstanceMetadataFetcher(timeout=1000, num_attempts=2)) | |
| credentials = provider.load() | |
| access_key = credentials.access_key | |
| secret_key = credentials.secret_key | |
| print access_key | |
| print secret_key |