Install PgAudit
docker exec -it postgres sh -c 'apt-get update && apt-get install -y --no-install-recommends \
postgresql-$PG_MAJOR-pgaudit'
$PGDATA/postgresql.conf
docker exec -it postgres sh -c 'apt-get update && apt-get install -y --no-install-recommends \
postgresql-$PG_MAJOR-pgaudit'
$PGDATA/postgresql.conf
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Run
travis encrypt "{account}:{token}#{channel}" --add notifications.slack.rooms
use mydb
db.dropDatabase();
> { "dropped" : "mydb", "ok" : 1 }
select column_name, data_type, character_maximum_length
from INFORMATION_SCHEMA.COLUMNS where table_name = '<name of table>';
echo 'alias myip="curl ipecho.net/plain ; echo"' >> ~/.zshrc && source ~/.zshrc
http://docs.aws.amazon.com/pt_br/AWSCloudFormation/latest/UserGuide/GettingStarted.Walkthrough.html http://docs.aws.amazon.com/pt_br/AWSCloudFormation/latest/UserGuide/quickref-general.html
A template is a JSON or YAML text file that contains the configuration information about the AWS resources you want to create in the stack. For this walkthrough, the sample template includes six top-level sections: AWSTemplateFormatVersion, Description, Parameters, Mappings, Resources, and Outputs; however, only the Resources section is required.
RESOURCES: The Resources section contains the definitions of the AWS resources you want to create with the template.
PARAMETERS: You use the Parameters section to declare values that can be passed to the template when you create the stack. A parameter is an effective way to specify sensitive information, such as user names and passwords, that you don't want to store in the template itself.
PROJECT=$([ "$PROJECT" ] && echo "$PROJECT" || echo "Projects") | |
PROJECT_DIR=$([ "$PROJECT_DIR" ] && echo "$PROJECT_DIR" || echo "/var/www/") | |
PROJECT_PATH=$([ "$PROJECT_PATH" ] && echo "$PROJECT_PATH" || echo "glados") | |
TMP_FILE=/tmp/TODO | |
touch $TMP_FILE | |
files="$(find -L "$PROJECT_DIR/$PROJECT_PATH" -not -path "$PROJECT_DIR/$PROJECT_PATH/node_modules/*" -type f -name "*.js")" | |
echo "$files" | while read file; do | |
GIT_URL="https://github.com/ebanx/$PROJECT/blob/master/$(echo $file | grep -o $PROJECT_PATH'.*')" |
# /etc/ansible/ansible.cfg | |
# | |
# config file for ansible -- http://ansible.com/ | |
# ============================================== | |
# nearly all parameters can be overridden in ansible-playbook | |
# or with command line flags. ansible will read ANSIBLE_CONFIG, | |
# ansible.cfg in the current working directory, .ansible.cfg in | |
# the home directory or /etc/ansible/ansible.cfg, whichever it | |
# finds first |
npm install -g n
npm cache clean -f
sudo n stable