Magic words:
psql -U postgres
If 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 *.*
* PHP-based: | |
** http://magephp.com/ | |
** http://kohkimakimoto.github.io/altax/ | |
** http://deployer.in/ | |
** http://rocketeer.autopergamene.eu/ | |
* Ruby | |
** http://capistranorb.com/ | |
* Python |
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 |
### Keybase proof | |
I hereby claim: | |
* I am fiunchinho on github. | |
* I am fiunchinho (https://keybase.io/fiunchinho) on keybase. | |
* I have a public key whose fingerprint is 7835 2286 73D6 3CA1 2FFE AC8A 8162 5EDD B10E 8F93 | |
To claim this, I am signing this object: |
curl -L $URL | tar xz - -C $TARGET
wget -qO- http://example.org/file.zip | bsdtar -xvf-
wget -qO- http://example.org/file.zip | jar xvf /dev/stdin
wget http://www.vim.org/scripts/download_script.php?src_id=11834 -O temp.zip; unzip temp.zip; rm temp.zip
wget -qO- -O tmp.zip http://downloads.wordpress.org/plugin/akismet.2.5.3.zip && unzip tmp.zip && rm tmp.zip